A web-based drawing app
git clone git://soophie.de/outline
blob: 70320537ce9f6950aada293834f1f8ee161d222d (1147 bytes)[doc][blame][raw]
1
.tooltip {2
position: relative;3
display: flex;4
justify-content: center;5
align-items: center;7
&:hover {9
&::before {10
opacity: 0.95;11
transition-delay: 0.6s;12
}14
&::after {15
opacity: 0.95;16
transition-delay: 0.6s;17
}18
}20
&::after {21
display: flex;22
opacity: 0;23
content: attr(data-title);24
justify-content: center;25
align-items: center;26
position: absolute;27
background: @brand-black;28
color: white;29
min-height: 24px;30
padding: 0 12px;31
border-radius: 999px;32
font-size: 12px;33
top: auto;34
bottom: -70%;35
white-space: nowrap;36
z-index: 9999;37
pointer-events: none;38
}40
&.up {42
&::before {43
top: ~'calc(-90% + 26px)';44
bottom: auto;45
border-left: 6px solid transparent;46
border-right: 6px solid transparent;47
border-top: 6px solid @brand-black;48
border-bottom: none;49
}51
&::after {52
top: -60%;53
bottom: auto;54
}55
}57
&.down {59
&::before {60
top: auto;61
bottom: ~'calc(-90% + 26px)';62
border-left: 6px solid transparent;63
border-right: 6px solid transparent;64
border-top: none;65
border-bottom: 6px solid @brand-black;66
}68
&::after {69
top: auto;70
bottom: -60%;71
}72
}73
}