mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-16 18:46:26 +08:00
fix(themes): clipped logo letters in some themes (@byseif21) (#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 <jack@monkeytype.com>
This commit is contained in:
parent
4a14ae45eb
commit
2fc7aa5981
4 changed files with 47 additions and 1 deletions
|
@ -26,6 +26,14 @@ header #logo .icon svg path {
|
|||
fill: var(--text-color);
|
||||
}
|
||||
|
||||
/* fix logo clipping */
|
||||
header #logo .icon {
|
||||
padding-bottom: 0.1em;
|
||||
padding-bottom: 0.05em;
|
||||
}
|
||||
nav {
|
||||
padding-bottom: 0.2em;
|
||||
}
|
||||
header {
|
||||
margin-bottom: -0.1em;
|
||||
}
|
||||
/* */
|
||||
|
|
|
@ -27,8 +27,22 @@ header #logo .text {
|
|||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
animation: rainbow-gradient 30s alternate ease-in-out infinite;
|
||||
padding-bottom: 0.1em;
|
||||
}
|
||||
|
||||
/* fix logo clipping */
|
||||
header #logo .icon {
|
||||
padding-bottom: 0.05em;
|
||||
}
|
||||
nav {
|
||||
padding-bottom: 0.2em;
|
||||
}
|
||||
|
||||
header {
|
||||
margin-bottom: -0.1em;
|
||||
}
|
||||
/* */
|
||||
|
||||
header #logo .top,
|
||||
.view-account .levelAndBar .level,
|
||||
[aria-label][data-balloon-pos]::after {
|
||||
|
|
|
@ -34,8 +34,22 @@ header #logo .text {
|
|||
background-clip: text;
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
padding-bottom: 0.1em;
|
||||
}
|
||||
|
||||
/* fix logo clipping */
|
||||
header #logo .icon {
|
||||
padding-bottom: 0.05em;
|
||||
}
|
||||
nav {
|
||||
padding-bottom: 0.2em;
|
||||
}
|
||||
|
||||
header {
|
||||
margin-bottom: -0.1em;
|
||||
}
|
||||
/* */
|
||||
|
||||
header #logo .text .top {
|
||||
/* prevent it from being transparent */
|
||||
-webkit-text-fill-color: #385eca;
|
||||
|
|
|
@ -30,6 +30,16 @@ header #logo .text {
|
|||
color: transparent;
|
||||
padding-bottom: 0.1em;
|
||||
}
|
||||
|
||||
/* fix logo clipping */
|
||||
header #logo .icon {
|
||||
padding-bottom: 0.05em;
|
||||
}
|
||||
header {
|
||||
margin-bottom: -0.1em;
|
||||
}
|
||||
/* */
|
||||
|
||||
header #logo .text .top {
|
||||
color: var(--main-color);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue