| 1 |
svg text { |
| 2 |
font-family: var(--font-family); |
| 3 |
fill: var(--text-color-lightest); |
| 4 |
} |
| 5 |
|
| 6 |
.tooltip { |
| 7 |
position: absolute; |
| 8 |
z-index: var(--z-index-floating-ui); |
| 9 |
min-width: 5em; |
| 10 |
padding: 0.5em; |
| 11 |
font-family: var(--font-family-monospaced); |
| 12 |
text-align: center; |
| 13 |
pointer-events: none; |
| 14 |
background: var(--background); |
| 15 |
border: 1px solid var(--border); |
| 16 |
box-shadow: var(--box-shadow-button); |
| 17 |
opacity: 0; |
| 18 |
transform: translate(-50%, -100%); |
| 19 |
} |
| 20 |
|
| 21 |
.tooltip::before { |
| 22 |
position: absolute; |
| 23 |
top: 100%; |
| 24 |
left: 50%; |
| 25 |
width: 0; |
| 26 |
height: 0; |
| 27 |
margin-left: -15px; |
| 28 |
content: ""; |
| 29 |
border: 15px solid transparent; |
| 30 |
border-top-color: var(--border); |
| 31 |
} |
| 32 |
|
| 33 |
.tooltip em { |
| 34 |
display: block; |
| 35 |
margin-top: 5px; |
| 36 |
font-family: var(--font-family); |
| 37 |
color: var(--text-color-lightest); |
| 38 |
} |