mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 09:20:00 +00:00
7f7943d2fc
* feat(dark mode): set up first set of colors * feat(dark mode): define state colours * 🧹 * feat(dark mode): variablify all teh wordz * feat(dark mode): set colors on body * feat(dark mode): replace hard coded color value * feat(dark mode): 🌑 * feat(a11y): update link focus styles - restores visible focus in windows high contrast mode - increases visibility in boxes with bg colour * feat(dark mode): enable postcss * 💅 * feat(dark mode): add user control * chore: use generic headline name * feat(dark mode): hide switch until script loads * feat(dark mode): increase link contrast * add content warning to footer nav partial * feat(dark mode): replace hard coded colour value in alertbox * feat(dark mode): tone down text colour * feat(dark mode): properly invert code elements * 🧹 move box styles into own partial * feat(dark mode): use darker colour as background for links
72 lines
1.2 KiB
SCSS
72 lines
1.2 KiB
SCSS
h1 {
|
|
font-family: $ext-sans;
|
|
font-weight: $bold;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
margin-bottom: 0.5em;
|
|
margin-top: 1em;
|
|
word-break: break-word;
|
|
}
|
|
|
|
p {
|
|
font-size: 1.25rem;
|
|
line-height: 1.25;
|
|
margin: 0.75rem 0;
|
|
}
|
|
|
|
.thicc-headline {
|
|
// a sensible base font size
|
|
font-size: 3rem;
|
|
line-height: 0.75;
|
|
margin: 0.5rem 0rem;
|
|
padding: 0;
|
|
}
|
|
|
|
@media (min-width: 51rem) and (min-height: 400px) {
|
|
// a dramatic font size
|
|
.thicc-headline {
|
|
font-size: 12vh;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 51rem) and (min-height: 850px) {
|
|
// cap the maximum font size of the title
|
|
// at the same size that 12vh computes to
|
|
// when the viewport is 850px high
|
|
// One day we can use CSS clamp https://caniuse.com/#feat=mdn-css_types_clamp
|
|
.thicc-headline {
|
|
font-size: 6.75rem;
|
|
}
|
|
}
|
|
|
|
.main-headline {
|
|
font-family: orpheuspro, Palatino, Times, serif;
|
|
font-size: 3.5rem;
|
|
line-height: 1.2;
|
|
margin: 0;
|
|
}
|
|
|
|
.sub-headline {
|
|
font-family: $ext-sans;
|
|
font-size: 1.25rem;
|
|
font-weight: $bold;
|
|
letter-spacing: 0.1;
|
|
margin: 0.75rem 0;
|
|
}
|
|
|
|
.smcp-headline {
|
|
font-size: 1rem;
|
|
font-variant-caps: all-small-caps;
|
|
letter-spacing: 0.01em;
|
|
margin-top: 0;
|
|
word-spacing: 0.01em;
|
|
}
|
|
|
|
.small {
|
|
font-size: 0.75em;
|
|
}
|