Skip to content

Commit

Permalink
fix #22 while I'm at it
Browse files Browse the repository at this point in the history
  • Loading branch information
iamawatermelo committed Nov 7, 2024
1 parent 5b71496 commit 6ae3315
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@
@media (min-width: style.$size_md) {
--transform: translate(calc(50% - 8em), calc(50% - 2em));
}
@media (prefers-reduced-motion) {
animation: none;
transform: var(--transform);
}
}
.wall-top {
Expand Down
9 changes: 5 additions & 4 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@
background: no-repeat space url('$lib/images/train.svg') left/149em;
animation: 30s linear infinite train;
animation-delay: var(--animation-delay);
@media (prefers-reduced-motion) {
display: none;
}
}
&.reverse::after {
Expand All @@ -172,10 +176,6 @@
background-position-x: 550%;
}
}
@media (prefers-reduced-motion) {
display: none;
}
}
.gear {
Expand Down Expand Up @@ -226,6 +226,7 @@
@media (prefers-reduced-motion) {
animation: none;
transform: var(--transform);
}
}
}
Expand Down

0 comments on commit 6ae3315

Please sign in to comment.