51 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-04-18 10:33:19 +00:00
const tip-opacity = 0.94
2018-04-18 11:09:13 +00:00
const tip-transform-hidden = rotate(0.02deg) translateX(-50%) translateY(-80%)
const tip-transform-visible = rotate(0.02deg) translateX(-50%) translateY(-100%)
2018-04-18 10:33:19 +00:00
2018-04-18 09:26:40 +00:00
.tip
position relative
:before
content attr(aria-label)
position absolute
2018-04-18 11:09:13 +00:00
top -10px
2018-04-18 09:26:40 +00:00
left 50%
z-index 100000
pointer-events none
opacity 0
2018-04-18 11:09:13 +00:00
transform tip-transform-hidden
2018-04-18 11:42:38 +00:00
font-size 0.92rem
2018-04-18 09:26:40 +00:00
color text-color
text-shadow none
padding 0.2rem 0.7rem
background ui-background
border 1px solid ui-border-color
border-radius ui-element-border-radius
box-shadow shadow-light
white-space nowrap
default-transition
:after
content ""
position absolute
2018-04-18 11:09:13 +00:00
top -4px
2018-04-18 09:26:40 +00:00
left 50%
z-index 100001
pointer-events none
opacity 0
width 0
height 0
border-style solid
border-width 8px 8px 0 8px
border-color ui-background transparent transparent transparent
2018-04-18 11:09:13 +00:00
transform tip-transform-hidden
2018-04-18 09:26:40 +00:00
default-transition
:hover
:before
2018-04-18 10:33:19 +00:00
opacity tip-opacity
2018-04-18 11:09:13 +00:00
transform tip-transform-visible
2018-04-18 09:26:40 +00:00
:after
2018-04-18 10:33:19 +00:00
opacity tip-opacity
2018-04-18 11:09:13 +00:00
transform tip-transform-visible