Skip to content

Commit 2fc7aa5

Browse files
byseif21Miodec
andauthored
fix(themes): clipped logo letters in some themes (@byseif21) (monkeytypegame#6745)
### Description all themes that use `background-clip: text` should have the `padding-bottom: 0.1em` to prevent the cut logo letters. --------- Co-authored-by: Miodec <[email protected]>
1 parent 4a14ae4 commit 2fc7aa5

File tree

4 files changed

+47
-1
lines changed

4 files changed

+47
-1
lines changed

frontend/static/themes/incognito.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ header #logo .icon svg path {
2626
fill: var(--text-color);
2727
}
2828

29+
/* fix logo clipping */
2930
header #logo .icon {
30-
padding-bottom: 0.1em;
31+
padding-bottom: 0.05em;
32+
}
33+
nav {
34+
padding-bottom: 0.2em;
35+
}
36+
header {
37+
margin-bottom: -0.1em;
3138
}
39+
/* */

frontend/static/themes/rainbow_trail.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,22 @@ header #logo .text {
2727
-webkit-background-clip: text;
2828
-webkit-text-fill-color: transparent;
2929
animation: rainbow-gradient 30s alternate ease-in-out infinite;
30+
padding-bottom: 0.1em;
3031
}
3132

33+
/* fix logo clipping */
34+
header #logo .icon {
35+
padding-bottom: 0.05em;
36+
}
37+
nav {
38+
padding-bottom: 0.2em;
39+
}
40+
41+
header {
42+
margin-bottom: -0.1em;
43+
}
44+
/* */
45+
3246
header #logo .top,
3347
.view-account .levelAndBar .level,
3448
[aria-label][data-balloon-pos]::after {

frontend/static/themes/sewing_tin_light.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,22 @@ header #logo .text {
3434
background-clip: text;
3535
-webkit-background-clip: text;
3636
-webkit-text-fill-color: transparent;
37+
padding-bottom: 0.1em;
3738
}
3839

40+
/* fix logo clipping */
41+
header #logo .icon {
42+
padding-bottom: 0.05em;
43+
}
44+
nav {
45+
padding-bottom: 0.2em;
46+
}
47+
48+
header {
49+
margin-bottom: -0.1em;
50+
}
51+
/* */
52+
3953
header #logo .text .top {
4054
/* prevent it from being transparent */
4155
-webkit-text-fill-color: #385eca;

frontend/static/themes/suisei.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ header #logo .text {
3030
color: transparent;
3131
padding-bottom: 0.1em;
3232
}
33+
34+
/* fix logo clipping */
35+
header #logo .icon {
36+
padding-bottom: 0.05em;
37+
}
38+
header {
39+
margin-bottom: -0.1em;
40+
}
41+
/* */
42+
3343
header #logo .text .top {
3444
color: var(--main-color);
3545
}

0 commit comments

Comments
 (0)