Files
fedizinefest-deprecated/styles/main.css
T

187 lines
3.7 KiB
CSS
Raw Normal View History

2021-04-12 21:32:32 +00:00
/* Our default values set as CSS variables */
2020-10-14 18:31:47 +00:00
:root {
2024-12-12 23:04:28 +00:00
color-scheme: light dark;
--color-bg-light: #f0f0f0;
--color-text-light: #640054;
--color-header-light: #185370;
2024-12-13 01:38:18 +00:00
--color-warn-light: #fbcc0a;
2024-12-12 23:04:28 +00:00
--color-bg-dark: #1f1f1f;
2024-12-13 01:26:43 +00:00
--color-text-dark: #91c73b;
2024-12-13 01:38:18 +00:00
--color-header-dark: #ff9b37;
--color-warn-dark: #540033;
2024-12-12 23:04:28 +00:00
2024-12-11 23:45:47 +00:00
--color-text-main: #640054;
--color-text-header: #185370;
2021-04-12 21:32:32 +00:00
--font-family: "HK Grotesk";
2020-11-05 18:10:17 +00:00
}
2021-04-12 21:32:32 +00:00
/* Basic page style resets */
* {
box-sizing: border-box;
2020-11-05 18:10:17 +00:00
}
2021-04-12 21:32:32 +00:00
[hidden] {
display: none !important;
2020-10-14 18:31:47 +00:00
}
2021-04-12 21:32:32 +00:00
/* Import fonts */
2020-10-15 17:23:03 +00:00
@font-face {
2020-11-05 18:10:17 +00:00
font-family: HK Grotesk;
src: url("https://cdn.glitch.me/605e2a51-d45f-4d87-a285-9410ad350515%2FHKGrotesk-Regular.otf?v=1603136326027")
2020-11-05 18:10:17 +00:00
format("opentype");
2020-10-15 17:23:03 +00:00
}
@font-face {
2020-11-05 18:10:17 +00:00
font-family: HK Grotesk;
font-weight: bold;
src: url("https://cdn.glitch.me/605e2a51-d45f-4d87-a285-9410ad350515%2FHKGrotesk-Bold.otf?v=1603136323437")
2020-11-05 18:10:17 +00:00
format("opentype");
2020-10-15 17:23:03 +00:00
}
2024-12-12 04:38:42 +00:00
/* Navigation */
#top-nav {
position: sticky;
top: 0px;
width: 100%;
display: flex;
2024-12-12 17:02:14 +00:00
flex-flow: row wrap;
2024-12-12 04:38:42 +00:00
align-items: stretch;
2024-12-12 23:04:28 +00:00
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));
2024-12-12 04:38:42 +00:00
justify-content: center;
}
.nav-item {
2024-12-12 17:02:14 +00:00
margin: .5rem .5rem;
2024-12-12 18:10:49 +00:00
font-size: 1.1rem;
2024-12-12 04:38:42 +00:00
}
2024-12-12 03:53:34 +00:00
#footer {
2021-04-12 21:32:32 +00:00
display: flex;
justify-content: space-between;
margin: 1rem auto 0;
padding: 1rem 0 0.75rem 0;
width: 100%;
2021-04-14 23:05:54 +00:00
flex-wrap: wrap;
2024-12-12 23:04:28 +00:00
border-top: 4px solid light-dark(var(--color-header-light), var(--color-header-dark));
2021-04-12 21:32:32 +00:00
}
.divider {
padding: 0 1rem;
}
2024-12-12 03:53:34 +00:00
2025-05-21 23:34:31 +00:00
/* WIP banner */
#wip {
background-color: light-dark(var(--color-warn-light), var(--color-warn-dark));
color: light-dark(var(--color-text-light), var(--color-text-dark));
font-family: var(--font-family);
padding: 0.05rem 1rem;
border: solid light-dark(var(--color-text-light), var(--color-text-dark));
border-radius: 3px;
margin-top: 1rem;
text-align: center;
}
2021-04-12 21:32:32 +00:00
2024-12-12 16:12:27 +00:00
/* Body */
2018-03-19 20:01:30 +00:00
body {
2024-12-12 23:04:28 +00:00
font-family: var(--font-family);
background-color: light-dark(var(--color-bg-light), var(--color-bg-dark));
2024-12-12 23:14:54 +00:00
color: light-dark(var(--color-text-light), var(--color-text-dark));
2018-03-19 20:01:30 +00:00
}
2024-12-11 23:53:48 +00:00
/* Links */
a:link,
a:visited {
2024-12-12 23:14:54 +00:00
background-color: light-dark(var(--color-text-light), var(--color-text-dark));
2024-12-12 23:04:28 +00:00
color: light-dark(var(--color-bg-light), var(--color-bg-dark));
2024-12-11 23:53:48 +00:00
font-weight: bold;
2024-12-12 04:04:47 +00:00
padding: 0 .2rem;
2024-12-12 04:27:30 +00:00
text-decoration: none;
2024-12-12 18:45:22 +00:00
border-radius: 3px;
2024-12-11 23:53:48 +00:00
}
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,
h3 a:focus
{
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));
}
2024-12-12 05:43:30 +00:00
/* Images */
img {
width: 100%;
}
2024-12-14 00:32:36 +00:00
2024-12-12 20:49:41 +00:00
#logo {
2024-12-14 00:32:36 +00:00
display: block;
2024-12-12 20:49:41 +00:00
max-width: 500px;
2024-12-14 00:32:36 +00:00
margin-right: auto;
margin-left: auto;
2024-12-12 20:49:41 +00:00
}
2024-12-12 05:43:30 +00:00
2021-04-12 21:32:32 +00:00
/* Page structure */
2020-10-14 18:31:47 +00:00
.wrapper {
2020-10-15 16:59:57 +00:00
display: grid;
2020-10-15 17:34:52 +00:00
place-items: center;
2021-04-14 15:05:00 +00:00
margin: 0 1rem;
2020-10-14 18:31:47 +00:00
}
2020-11-05 18:10:17 +00:00
2024-12-12 17:41:46 +00:00
#main {
width: 100%;
}
@media (min-width: 650px) {
2024-12-12 16:00:51 +00:00
#main {
width: 60%;
}
}
2024-12-11 23:34:44 +00:00
/* Headings */
h1, h2, h3 {
2024-12-12 23:04:28 +00:00
color: light-dark(var(--color-header-light), var(--color-header-dark));
2021-04-12 21:32:32 +00:00
font-weight: bold;
line-height: 105%;
2020-11-05 18:10:17 +00:00
}
2024-12-11 23:34:44 +00:00
h1 {
font-size: 3rem;
margin: 1rem 0;
2024-12-14 00:32:36 +00:00
text-align: center;
2024-12-11 23:34:44 +00:00
}
h2 {
font-size: 2rem;
2024-12-13 23:16:33 +00:00
padding: 3rem 0 0 0;
border-top: solid;
2024-12-11 23:34:44 +00:00
}
h3 {
2024-12-12 16:00:51 +00:00
font-size: 1.4rem;
2024-12-13 22:52:51 +00:00
margin: 1rem 0 0 0;
2021-05-26 21:53:06 +00:00
}
2024-12-12 17:41:46 +00:00
/* dl/dt/dd */
dt {
font-weight: bold;
}
dd {
margin-bottom: .5rem;
}
2024-12-12 18:33:31 +00:00
2025-05-21 23:45:33 +00:00
li {
padding: .1rem;
2024-12-12 18:33:31 +00:00
}