mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
fixed css for bold text in react tabs (#3943)
This commit is contained in:
parent
80960e47f8
commit
fabd71c75c
1 changed files with 15 additions and 1 deletions
|
|
@ -13,13 +13,27 @@
|
|||
margin-right: $pad-xxlarge;
|
||||
font-size: $x-small;
|
||||
border: none;
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
&:focus {
|
||||
box-shadow: none;
|
||||
outline: 0;
|
||||
}
|
||||
// Bolding text when the button is active causes a layout shift
|
||||
// so we add a hidden pseudo element with the same text string
|
||||
&:before {
|
||||
content: attr(data-text);
|
||||
height: 0;
|
||||
visibility: hidden;
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
font-weight: $bold;
|
||||
}
|
||||
&--selected {
|
||||
text-shadow: -0.3px 0 #192147, 0.3px 0 #192147;
|
||||
font-weight: $bold;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
|
|
|
|||
Loading…
Reference in a new issue