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:
Seif Soliman 2025-07-25 15:32:24 +03:00 committed by GitHub
parent 4a14ae45eb
commit 2fc7aa5981
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 47 additions and 1 deletions

View file

@ -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;
}
/* */

View file

@ -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 {

View file

@ -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;

View file

@ -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);
}