website: redesign part 3

This commit is contained in:
nym21
2026-06-03 16:26:55 +02:00
parent a2fd1e03ad
commit 07734b8bab
17 changed files with 623 additions and 12 deletions
+3 -1
View File
@@ -42,7 +42,9 @@ html {
font-family: var(--font-mono);
}
h1 {
h1,
h2,
h3 {
font-family: var(--font-serif);
}
+38
View File
@@ -0,0 +1,38 @@
[hidden] {
display: none !important;
}
html,
body {
background: var(--black);
}
body {
> main {
position: fixed;
inset: 0;
overflow: auto;
opacity: 0;
pointer-events: none;
transition: opacity 180ms ease;
}
> main[data-active] {
opacity: 1;
pointer-events: auto;
}
}
html {
scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
body > main {
transition: none;
}
html {
scroll-behavior: auto;
}
}
-5
View File
@@ -49,8 +49,3 @@
--font-weight-base: 400;
--max-main-width: 70dvw;
}
html,
body {
background: var(--black);
}