|
|
|
@ -125,19 +125,35 @@ footer { |
|
|
|
z-index: 2; |
|
|
|
} |
|
|
|
|
|
|
|
@keyframes slide-in { from { transform: translateY(100dvh); } to { transform: translateY(0); } } |
|
|
|
@keyframes slide-out { from { transform: translateY(0); } to { transform: translateY(-100dvh); } } |
|
|
|
@keyframes slide-in { |
|
|
|
from { |
|
|
|
transform: translateY(100dvh); |
|
|
|
} |
|
|
|
|
|
|
|
to { |
|
|
|
transform: translateY(0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@keyframes slide-out { |
|
|
|
from { |
|
|
|
transform: translateY(0); |
|
|
|
} |
|
|
|
|
|
|
|
to { |
|
|
|
transform: translateY(-100dvh); |
|
|
|
} |
|
|
|
} |
|
|
|
/* Forward nav (normal clicks) */ |
|
|
|
html[data-turbo-visit-direction="forward"] { |
|
|
|
&::view-transition-new(main) { animation: slide-in .4s ease-out both; } |
|
|
|
&::view-transition-old(main) { animation: slide-out .4s ease-in both; } |
|
|
|
&::view-transition-new(main) { animation: slide-in .3s ease-out both; } |
|
|
|
&::view-transition-old(main) { animation: slide-out .3s ease-in both; } |
|
|
|
} |
|
|
|
|
|
|
|
/* Back button reverses the sense */ |
|
|
|
html[data-turbo-visit-direction="back"] { |
|
|
|
&::view-transition-new(main), |
|
|
|
&::view-transition-old(main) { animation: slide-in .4s ease-out both reverse; } |
|
|
|
&::view-transition-new(main) { animation: none } |
|
|
|
&::view-transition-old(main) { animation: none } |
|
|
|
} |
|
|
|
|
|
|
|
body { |
|
|
|
@ -151,8 +167,14 @@ body { |
|
|
|
-webkit-font-smoothing: antialiased; |
|
|
|
touch-action: manipulation; |
|
|
|
|
|
|
|
&:has(main .background-container) { |
|
|
|
background-color: var(--clr-black); |
|
|
|
background-image: var(--bg-landscape); |
|
|
|
background-position: center center; |
|
|
|
background-attachment: fixed; |
|
|
|
background-repeat: no-repeat; |
|
|
|
background-size: cover; |
|
|
|
|
|
|
|
@media (orientation: portrait) { |
|
|
|
background-image: var(--bg-portrait); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -176,15 +198,16 @@ header { |
|
|
|
} |
|
|
|
|
|
|
|
path.logo-text { |
|
|
|
fill: var(--clr-black); |
|
|
|
fill: var(--clr-white); |
|
|
|
} |
|
|
|
|
|
|
|
:has(main .background-container) { |
|
|
|
|
|
|
|
:has(main .with-backdrop) { |
|
|
|
& header path.logo-text { |
|
|
|
fill: var(--clr-white); |
|
|
|
fill: var(--clr-black); |
|
|
|
} |
|
|
|
& footer { |
|
|
|
color: var(--clr-white); |
|
|
|
color: var(--clr-black); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -197,7 +220,8 @@ footer { |
|
|
|
font-family: var(--ff-ikea); |
|
|
|
writing-mode: vertical-rl; |
|
|
|
text-orientation: mixed; |
|
|
|
z-index: 10 |
|
|
|
z-index: 10; |
|
|
|
color: var(--clr-white); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -265,10 +289,13 @@ footer { |
|
|
|
justify-content: center; |
|
|
|
padding: 0 1em; |
|
|
|
box-sizing: border-box; |
|
|
|
transition: scale 0.08s ease-in-out; |
|
|
|
transition: transform 0.08s ease-in-out; |
|
|
|
user-select: none; |
|
|
|
-webkit-user-select: none; |
|
|
|
-webkit-tap-highlight-color: transparent; |
|
|
|
|
|
|
|
&:not(.wiggle):active { |
|
|
|
scale: 0.96; |
|
|
|
&:not(.wiggle):active { |
|
|
|
transform: scale(0.96); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
@ -293,13 +320,16 @@ footer { |
|
|
|
|
|
|
|
|
|
|
|
main { |
|
|
|
margin: 0 1.2rem 1.6rem 1.2rem; |
|
|
|
padding: 50px 1.2rem 1.6rem 1.2rem; |
|
|
|
flex-grow: 1; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
justify-content: end; |
|
|
|
|
|
|
|
|
|
|
|
&:has(.with-backdrop) { |
|
|
|
background-color: var(--clr-dark-yellow); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|