Skip to content

Commit 644c59c

Browse files
authored
fix(theme): inconsistent/unreadable styling on settings page when using phantom theme (@fehmer) (monkeytypegame#6446)
1. Some buttons have the color animation set like funboxes on the settings page while others have not: ![image](https://github.com/user-attachments/assets/6c4f1ecc-6a94-4e0f-9643-6dde901f8506) 2. On the active theme button the effects overlap making it unreadable: ![image](https://github.com/user-attachments/assets/d2784c9c-34c2-40c6-8e30-5d47a39ff5f4) 3. On the footer color effect was applied to the `textButton` (like github, discord links) but not `button` (like contract and support). This applies to all animated themes.
1 parent fd75dd8 commit 644c59c

File tree

7 files changed

+15
-7
lines changed

7 files changed

+15
-7
lines changed

frontend/static/themes/aurora.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ header .config .group .buttons .textButton.active,
6666
nav .textButton:hover,
6767
nav button.text:hover,
6868
header .config .group .buttons .textButton:hover,
69+
footer .textButton:hover,
70+
footer button.text:hover,
6971
a:not(.button):hover {
7072
animation: aurora 5s linear infinite;
7173
}

frontend/static/themes/fire.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ header .config .group .buttons .textButton.active,
6666
nav .textButton:hover,
6767
nav button.text:hover,
6868
header .config .group .buttons .textButton:hover,
69+
footer .textButton:hover,
70+
footer button.text:hover,
6971
a:not(.button):hover {
7072
animation: fire 5s linear infinite;
7173
}

frontend/static/themes/grape.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ header .config .group .buttons .textButton.active,
6666
nav .textButton:hover,
6767
nav button.text:hover,
6868
header .config .group .buttons .textButton:hover,
69+
footer .textButton:hover,
70+
footer button.text:hover,
6971
a:not(.button):hover {
7072
animation: pastel 5s linear infinite;
7173
}

frontend/static/themes/phantom.css

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@ input[type="submit"]:hover {
104104
color: var(--bg-color);
105105
}
106106

107-
#caret,
108-
.pageSettings .section .buttons .button.active,
109-
.pageSettings .section.languages .buttons .language.active,
110-
.pageAccount .group.filterButtons .buttons .button.active {
107+
#caret {
111108
animation: tokyo-bg 3s linear infinite;
112109
}
113110

@@ -117,13 +114,12 @@ header .config .group .buttons .textButton.active,
117114
nav .textButton:hover,
118115
nav button.text:hover,
119116
header .config .group .buttons .textButton:hover,
117+
footer .textButton:hover,
118+
footer button.text:hover,
120119
a:not(.button):hover {
121120
animation: tokyo-glow 3s linear infinite;
122121
}
123122

124-
.textButton.active {
125-
animation: tokyo-glow 3s linear infinite;
126-
}
127123
.afk,
128124
.timeToday,
129125
#words .word letter.correct,

frontend/static/themes/rgb.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ header .config .group .buttons .textButton.active,
9696
nav .textButton:hover,
9797
nav button.text:hover,
9898
header .config .group .buttons .textButton:hover,
99+
footer .textButton:hover,
100+
footer button.text:hover,
99101
a:not(.button):hover,
100102
#words.flipped .word {
101103
animation: rgb 5s linear infinite;

frontend/static/themes/shadow.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ header .config .group .buttons .textButton.active,
4444
nav .textButton:hover,
4545
nav button.text:hover,
4646
header .config .group .buttons .textButton:hover,
47+
footer .textButton:hover,
48+
footer button.text:hover,
4749
a:not(.button):hover {
4850
animation: shadow-repeat 3s linear infinite forwards;
4951
}

frontend/static/themes/trance.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ header .config .group .buttons .textButton.active,
5454
nav .textButton:hover,
5555
nav button.text:hover,
5656
header .config .group .buttons .textButton:hover,
57+
footer .textButton:hover,
58+
footer button.text:hover,
5759
a:not(.button):hover {
5860
animation: trance 5s linear infinite;
5961
}

0 commit comments

Comments
 (0)