Improved tooltips

This commit is contained in:
2018-04-18 12:33:19 +02:00
parent 6e697dba98
commit 0913b18239
7 changed files with 12 additions and 11 deletions

View File

@ -1,3 +1,5 @@
const tip-opacity = 0.94
.tip
position relative
@ -38,9 +40,9 @@
:hover
:before
opacity 1
opacity tip-opacity
transform translateX(-50%) translateY(calc(-100% - 10px))
:after
opacity 1
opacity tip-opacity
transform translateX(-50%) translateY(calc(-100% - 4px))