center badge labels
This commit is contained in:
parent
c8dd0919be
commit
02b56b6534
1 changed files with 4 additions and 1 deletions
|
|
@ -559,7 +559,10 @@ select {
|
||||||
}
|
}
|
||||||
.badge {
|
.badge {
|
||||||
font-size: 0.72rem;
|
font-size: 0.72rem;
|
||||||
padding: 0.1rem 0.5rem;
|
/* Nunito keeps a lot of air above the caps, so a line box centred by its
|
||||||
|
font metrics reads as "text sits high" (clearest on "Portable"); bias the
|
||||||
|
padding downwards, keeping the same overall height, to centre the label */
|
||||||
|
padding: 0.25em 0.7em 0.03em;
|
||||||
border-radius: 0.6rem;
|
border-radius: 0.6rem;
|
||||||
border: var(--border-width) solid var(--light-border-color);
|
border: var(--border-width) solid var(--light-border-color);
|
||||||
color: var(--darker-text-color);
|
color: var(--darker-text-color);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue