theme: Make things degrade gracefully on mobile

This commit is contained in:
jaseg 2023-10-14 17:40:05 +02:00
parent 096ffb8c4e
commit 588b0a9e10

View file

@ -224,7 +224,7 @@ main::before {
top: 0;
width: 100%;
height: 100%;
backdrop-filter: brightness(100%) blur(10px);
backdrop-filter: blur(10px);
z-index: -1;
}
@ -284,7 +284,7 @@ body > header > h1 {
-webkit-background-clip: text;
color: transparent;
filter: drop-shadow(0 0 10px rgba(0, 0, 0, var(--shadow-opacity)));
font-size: 120px;
font-size: clamp(20px, 120px, min(10vw, 10vh));
/* Padding to avoid the first character getting cut off in firefox */
padding-left: 40px;
padding-right: 40px;
@ -656,3 +656,19 @@ body .il { color: var(--c-text); font-weight: 600 } /* Literal.Number.Integer.L
}
}
@media print, (max-width: 60em) {
main::before {
backdrop-filter: none;
}
main {
background-color: hsl(230 10% 15%);
}
}
@media print, (max-width: 60em) and (prefers-color-scheme: light) {
main {
background-color: hsl(260 5% 90%);
}
}