Files
fedizinefest/styles/main.css

181 lines
3.4 KiB
CSS
Raw Normal View History

/* Our default values set as CSS variables */
:root {
color-scheme: light dark;
--color-bg-light: #f0f0f0;
--color-text-light: #640054;
--color-header-light: #185370;
--color-warn-light: #fbcc0a;
--color-bg-dark: #1f1f1f;
--color-text-dark: #91c73b;
--color-header-dark: #ff9b37;
--color-warn-dark: #540033;
--color-text-main: #640054;
--color-text-header: #185370;
--font-family: "HK Grotesk";
}
/* Basic page style resets */
* {
box-sizing: border-box;
}
[hidden] {
display: none !important;
}
/* Import fonts */
@font-face {
font-family: HK Grotesk;
src: url("https://cdn.glitch.me/605e2a51-d45f-4d87-a285-9410ad350515%2FHKGrotesk-Regular.otf?v=1603136326027")
format("opentype");
}
@font-face {
font-family: HK Grotesk;
font-weight: bold;
src: url("https://cdn.glitch.me/605e2a51-d45f-4d87-a285-9410ad350515%2FHKGrotesk-Bold.otf?v=1603136323437")
format("opentype");
}
/* Navigation */
#top-nav {
position: sticky;
top: 0px;
width: 100%;
display: flex;
flex-flow: row wrap;
align-items: stretch;
background: light-dark(var(--color-bg-light), var(--color-bg-dark));
border-bottom: 4px solid light-dark(var(--color-header-light), var(--color-header-dark));
justify-content: center;
}
.nav-item {
margin: .5rem .5rem;
font-size: 1.1rem;
}
#footer {
display: flex;
justify-content: space-between;
margin: 1rem auto 0;
padding: 1rem 0 0.75rem 0;
width: 100%;
flex-wrap: wrap;
border-top: 4px solid light-dark(var(--color-header-light), var(--color-header-dark));
}
.divider {
padding: 0 1rem;
}
/* Body */
body {
font-family: var(--font-family);
background-color: light-dark(var(--color-bg-light), var(--color-bg-dark));
color: light-dark(var(--color-text-light), var(--color-text-dark));
}
/* Links */
a:link,
a:visited {
background-color: light-dark(var(--color-text-light), var(--color-text-dark));
color: light-dark(var(--color-bg-light), var(--color-bg-dark));
font-weight: bold;
padding: 0 .2rem;
text-decoration: none;
border-radius: 3px;
}
2025-05-24 10:02:03 -07:00
/* Focus */
*:focus,
a:focus {
outline: 3px solid light-dark(var(--color-header-light), var(--color-header-dark));
outline-offset: 2px;
background-color: light-dark(var(--color-header-light), var(--color-header-dark));
}
/* makes the years page prettier */
h3 a:link,
h3 a:visited {
background-color: light-dark(var(--color-header-light), var(--color-header-dark));
}
h3 *:focus,
2025-05-24 10:02:28 -07:00
h3 a:focus {
2025-05-24 10:02:03 -07:00
outline: 3px solid light-dark(var(--color-text-light), var(--color-text-dark));
background-color: light-dark(var(--color-text-light), var(--color-text-dark));
}
/* Images */
img {
width: 100%;
}
#logo {
display: block;
max-width: 500px;
margin-right: auto;
margin-left: auto;
}
/* Page structure */
.wrapper {
display: grid;
place-items: center;
margin: 0 1rem;
}
#main {
width: 100%;
}
@media (min-width: 650px) {
#main {
width: 60%;
}
}
/* Headings */
h1, h2, h3 {
color: light-dark(var(--color-header-light), var(--color-header-dark));
font-weight: bold;
line-height: 105%;
}
h1 {
font-size: 3rem;
2025-09-12 20:50:51 -07:00
margin: 2rem 0;
text-align: center;
}
2025-09-12 20:50:51 -07:00
@media (min-width: 650px) {
h1 {
margin: 5rem 0 2rem 0;
}
}
h2 {
font-size: 2rem;
padding: 3rem 0 0 0;
border-top: solid;
}
h3 {
font-size: 1.4rem;
margin: 1rem 0 0 0;
}
/* dl/dt/dd */
dt {
font-weight: bold;
}
dd {
margin-bottom: .5rem;
}
li {
padding: .1rem;
2025-09-12 20:44:35 -07:00
}