Move all the home styles to inline CSS

This commit is contained in:
Eryn Wells 2023-05-20 08:28:38 -07:00
parent 1713d5f849
commit 4f63fab916
3 changed files with 232 additions and 185 deletions

View file

@ -23,7 +23,6 @@
--heading-line-height: 1;
/* A little extra line height so the descenders don't get clipped */
--site-heading-line-height: 1.1;
--landing-line-height: 1.85;
--color: rgba(var(--black), 0.8);
--a-color: rgb(var(--mid-blue));
@ -46,7 +45,6 @@
body {
font-size: var(--font-size);
line-height: var(--line-height);
}
code { font-family: var(--font-family-monospace); }
@ -88,7 +86,7 @@
line-height: var(--heading-line-height);
}
header.site h1 {
h1.site {
--site-title-color1: rgb(103, 128, 229);
--site-title-color2: rgb(130, 90, 227);
--site-title-color3: rgb(135, 101, 228);
@ -102,27 +100,24 @@
color: rgb(var(--mid-blue));
font-family: var(--font-family-site-heading);
font-size: var(--site-header-font-size);
line-height: var(--site-heading-line-height);
white-space: nowrap;
}
header.site h1 > a { color: inherit; }
h1.site > a { color: inherit; }
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
header.site h1 span:nth-child(10n + 1) { color: var(--site-title-color1); }
header.site h1 span:nth-child(10n + 2) { color: var(--site-title-color2); }
header.site h1 span:nth-child(10n + 3) { color: var(--site-title-color3); }
header.site h1 span:nth-child(10n + 4) { color: var(--site-title-color4); }
header.site h1 span:nth-child(10n + 5) { color: var(--site-title-color5); }
header.site h1 span:nth-child(10n + 6) { color: var(--site-title-color6); }
header.site h1 span:nth-child(10n + 7) { color: var(--site-title-color7); }
header.site h1 span:nth-child(10n + 8) { color: var(--site-title-color8); }
header.site h1 span:nth-child(10n + 9) { color: var(--site-title-color9); }
header.site h1 span:nth-child(10n) { color: var(--site-title-color10); }
h1.site span:nth-child(10n + 1) { color: var(--site-title-color1); }
h1.site span:nth-child(10n + 2) { color: var(--site-title-color2); }
h1.site span:nth-child(10n + 3) { color: var(--site-title-color3); }
h1.site span:nth-child(10n + 4) { color: var(--site-title-color4); }
h1.site span:nth-child(10n + 5) { color: var(--site-title-color5); }
h1.site span:nth-child(10n + 6) { color: var(--site-title-color6); }
h1.site span:nth-child(10n + 7) { color: var(--site-title-color7); }
h1.site span:nth-child(10n + 8) { color: var(--site-title-color8); }
h1.site span:nth-child(10n + 9) { color: var(--site-title-color9); }
h1.site span:nth-child(10n) { color: var(--site-title-color10); }
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
header.site h1 {
h1.site {
background:
radial-gradient(circle at 20% 70%, rgb(var(--purple)), transparent 40%),
radial-gradient(circle at 30% 30%, rgb(var(--lt-blue)), rgb(var(--mid-blue)) 20%, transparent 80%),
@ -136,6 +131,12 @@
}
}
header.site h1.site {
font-size: var(--site-header-font-size);
line-height: var(--site-heading-line-height);
white-space: nowrap;
}
header.site nav {
font-size: max(1.5rem, 80%);
letter-spacing: 0.10em;