Skip to content

Commit 4fe11ac

Browse files
authored
fix(theme): dark note and reduced-motion not replacing letters with circles (@fehmer) (monkeytypegame#6589)
1 parent a9fb72d commit 4fe11ac

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

frontend/static/themes/dark_note.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,18 @@ hint {
142142
opacity: 0;
143143
}
144144

145+
@media (prefers-reduced-motion) {
146+
#words .word:has(~ .active) letter {
147+
animation: none !important;
148+
transform: scale(0.4);
149+
color: transparent;
150+
}
151+
#words .word:has(~ .active) letter::after {
152+
animation: none !important;
153+
opacity: 1;
154+
}
155+
}
156+
145157
@keyframes fadeIn {
146158
0% {
147159
opacity: 0;

0 commit comments

Comments
 (0)