mobile fixes
This commit is contained in:
parent
1e2cee8644
commit
60201e27aa
2 changed files with 14 additions and 6 deletions
|
@ -1,5 +1,7 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
|
||||||
|
<meta name=viewport content='width=device-width, initial-scale=0.5'>
|
||||||
|
|
||||||
<title>rainbow quox</title>
|
<title>rainbow quox</title>
|
||||||
|
|
||||||
<link rel=stylesheet href=style.css>
|
<link rel=stylesheet href=style.css>
|
||||||
|
|
|
@ -25,13 +25,16 @@
|
||||||
font-family: var(--font);
|
font-family: var(--font);
|
||||||
|
|
||||||
color-scheme: light dark;
|
color-scheme: light dark;
|
||||||
background:
|
background: oklch(0.9 0.08 var(--hue));
|
||||||
light-dark(oklch(0.9 0.08 var(--hue)),
|
|
||||||
oklch(0.3 0.12 var(--hue)));
|
|
||||||
|
|
||||||
|
width: 100vw;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root { background: oklch(0.3 0.12 var(--hue)); }
|
||||||
|
}
|
||||||
|
|
||||||
#pic {
|
#pic {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: min(1000px, 75vw);
|
width: min(1000px, 75vw);
|
||||||
|
@ -48,7 +51,7 @@
|
||||||
transition: all 0.45s cubic-bezier(.23,-0.03,.68,1.11);
|
transition: all 0.45s cubic-bezier(.23,-0.03,.68,1.11);
|
||||||
}
|
}
|
||||||
|
|
||||||
.back > #front { translate: 125vw; }
|
.back > #front { translate: -125vw; }
|
||||||
:not(.back) > #back { translate: -125vw; }
|
:not(.back) > #back { translate: -125vw; }
|
||||||
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
@ -157,9 +160,12 @@ nav {
|
||||||
}
|
}
|
||||||
|
|
||||||
nav a {
|
nav a {
|
||||||
color: light-dark(oklch(0.4 0.15 var(--c-hue)),
|
color: oklch(0.4 0.15 var(--c-hue));
|
||||||
oklch(0.9 0.19 var(--c-hue)));
|
|
||||||
text-decoration: 3px solid underline;
|
text-decoration: 3px solid underline;
|
||||||
text-decoration-color:
|
text-decoration-color:
|
||||||
oklch(0.6 0.1 var(--c-hue));
|
oklch(0.6 0.1 var(--c-hue));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
nav a { color: oklch(0.9 0.19 var(--c-hue)); }
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue