Files
fedizinefest/styles/main.css

156 lines
2.5 KiB
CSS
Raw Normal View History

/* Our default values set as CSS variables */
:root {
--color-bg: #f0f0f0;
--color-text-main: #640054;
--color-text-header: #185370;
--color-warn: #FBCC0A;
--font-family: "HK Grotesk";
--font-family-header: "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: var(--color-bg);
border-bottom: 4px solid var(--color-text-header);
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 var(--color-text-header);
}
.divider {
padding: 0 1rem;
}
/* WIP banner */
.wip {
background-color: var(--color-warn);
color: var(--color-text-main);
font-family: var(--font-family);
padding: 0.05rem 1rem;
width: 100%;
border: solid var(--color-text-header);
border-radius: 3px;
margin-top: 1rem;
text-align: center;
}
/* Body */
body {
font-family: HK Grotesk;
background-color: var(--color-bg);
color: var(--color-text-main);
}
/* Links */
a:link,
a:visited {
background-color: var(--color-text-main);
color: var(--color-bg);
font-weight: bold;
padding: 0 .2rem;
text-decoration: none;
border-radius: 3px;
}
/* Images */
img {
width: 100%;
}
#logo {
max-width: 500px;
}
/* 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: var(--color-text-header);
font-weight: bold;
line-height: 105%;
}
h1 {
font-size: 3rem;
margin: 1rem 0;
}
h2 {
font-size: 2rem;
margin: .5rem 0 0 0;
}
h3 {
font-size: 1.4rem;
margin: .5rem 0 0 0;
}
/* dl/dt/dd */
dt {
font-weight: bold;
}
dd {
margin-bottom: .5rem;
}
/* Focus */
*:focus,
a:focus {
outline: 3px solid var(--color-text-header);
outline-offset: 2px;
background-color: var(--color-text-header);
}