|
|
@ -1,10 +1,12 @@ |
|
|
|
/* Tooltips */ |
|
|
|
[data-hint] { |
|
|
|
position: relative; |
|
|
|
/*display: inline-block;*/ |
|
|
|
|
|
|
|
// display: inline-block; |
|
|
|
} |
|
|
|
[data-hint]:before, |
|
|
|
[data-hint]:after { |
|
|
|
|
|
|
|
[data-hint]::before, |
|
|
|
[data-hint]::after { |
|
|
|
position: absolute; |
|
|
|
will-change: transform; |
|
|
|
visibility: hidden; |
|
|
@ -14,19 +16,16 @@ |
|
|
|
transition: 0.2s ease; |
|
|
|
transition-delay: 0ms; |
|
|
|
} |
|
|
|
[data-hint]:hover:before, |
|
|
|
[data-hint]:hover:after { |
|
|
|
visibility: visible; |
|
|
|
opacity: 1; |
|
|
|
} |
|
|
|
[data-hint]:before { |
|
|
|
|
|
|
|
[data-hint]::before { |
|
|
|
content: ''; |
|
|
|
position: absolute; |
|
|
|
background: transparent; |
|
|
|
border: 6px solid transparent; |
|
|
|
z-index: 900006; |
|
|
|
} |
|
|
|
[data-hint]:after { |
|
|
|
|
|
|
|
[data-hint]::after { |
|
|
|
content: attr(data-hint); |
|
|
|
background: #404040; |
|
|
|
color: #e0e0e0; |
|
|
@ -40,94 +39,122 @@ |
|
|
|
font-size: 12px; |
|
|
|
font-weight: normal; |
|
|
|
font-style: inherit; |
|
|
|
font-family: 'Noto Sans','Lucida Grande','Lucida Sans Unicode',Geneva,Verdana,Sans-Serif; |
|
|
|
font-family: 'Noto Sans', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, Sans-Serif; |
|
|
|
} |
|
|
|
|
|
|
|
[data-hint]:hover::before, |
|
|
|
[data-hint]:hover::after { |
|
|
|
visibility: visible; |
|
|
|
opacity: 1; |
|
|
|
} |
|
|
|
.hint--bottom:before, |
|
|
|
.hint--bottom-left:before { |
|
|
|
|
|
|
|
.hint--bottom::before, |
|
|
|
.hint--bottom-left::before { |
|
|
|
border-bottom-color: #404040; |
|
|
|
} |
|
|
|
.hint--top:before, |
|
|
|
.hint--top-left:before { |
|
|
|
|
|
|
|
.hint--top::before, |
|
|
|
.hint--top-left::before { |
|
|
|
border-top-color: #404040; |
|
|
|
} |
|
|
|
.hint--bottom:before { |
|
|
|
|
|
|
|
.hint--bottom::before { |
|
|
|
margin-top: -12px; |
|
|
|
} |
|
|
|
.hint--bottom:after { |
|
|
|
|
|
|
|
.hint--bottom::after { |
|
|
|
margin-left: -18px; |
|
|
|
} |
|
|
|
.hint--bottom:before, |
|
|
|
.hint--bottom:after { |
|
|
|
|
|
|
|
.hint--bottom::before, |
|
|
|
.hint--bottom::after { |
|
|
|
top: 100%; |
|
|
|
left: 50%; |
|
|
|
} |
|
|
|
.hint--bottom:hover:after, |
|
|
|
.hint--bottom:hover:before { |
|
|
|
|
|
|
|
.hint--bottom:hover::after, |
|
|
|
.hint--bottom:hover::before { |
|
|
|
-webkit-transform: translateY(8px); |
|
|
|
transform: translateY(8px); |
|
|
|
} |
|
|
|
.hint--top:before { |
|
|
|
|
|
|
|
.hint--top::before { |
|
|
|
margin-bottom: -12px; |
|
|
|
} |
|
|
|
.hint--top:after { |
|
|
|
|
|
|
|
.hint--top::after { |
|
|
|
margin-left: -18px; |
|
|
|
} |
|
|
|
.hint--top:before, |
|
|
|
.hint--top:after { |
|
|
|
|
|
|
|
.hint--top::before, |
|
|
|
.hint--top::after { |
|
|
|
bottom: 100%; |
|
|
|
left: 50%; |
|
|
|
} |
|
|
|
.hint--top:hover:after, |
|
|
|
.hint--top:hover:before { |
|
|
|
|
|
|
|
.hint--top:hover::after, |
|
|
|
.hint--top:hover::before { |
|
|
|
-webkit-transform: translateY(-8px); |
|
|
|
transform: translateY(-8px); |
|
|
|
} |
|
|
|
.hint--top-left:before { |
|
|
|
|
|
|
|
.hint--top-left::before { |
|
|
|
margin-bottom: -12px; |
|
|
|
} |
|
|
|
.hint--top-left:after { |
|
|
|
|
|
|
|
.hint--top-left::after { |
|
|
|
margin-right: -6px; |
|
|
|
} |
|
|
|
.hint--top-left:before, |
|
|
|
.hint--top-left:after { |
|
|
|
|
|
|
|
.hint--top-left::before, |
|
|
|
.hint--top-left::after { |
|
|
|
bottom: 100%; |
|
|
|
right: 30%; |
|
|
|
} |
|
|
|
.hint--top-left:hover:after, |
|
|
|
.hint--top-left:hover:before { |
|
|
|
|
|
|
|
.hint--top-left:hover::after, |
|
|
|
.hint--top-left:hover::before { |
|
|
|
-webkit-transform: translateY(-8px); |
|
|
|
transform: translateY(-8px); |
|
|
|
} |
|
|
|
.hint--bottom-left:before { |
|
|
|
|
|
|
|
.hint--bottom-left::before { |
|
|
|
margin-top: -12px; |
|
|
|
} |
|
|
|
.hint--bottom-left:after { |
|
|
|
|
|
|
|
.hint--bottom-left::after { |
|
|
|
margin-right: -6px; |
|
|
|
} |
|
|
|
.hint--bottom-left:before, |
|
|
|
.hint--bottom-left:after { |
|
|
|
|
|
|
|
.hint--bottom-left::before, |
|
|
|
.hint--bottom-left::after { |
|
|
|
top: 100%; |
|
|
|
right: 30%; |
|
|
|
} |
|
|
|
.hint--bottom-left:hover:after, |
|
|
|
.hint--bottom-left:hover:before { |
|
|
|
|
|
|
|
.hint--bottom-left:hover::after, |
|
|
|
.hint--bottom-left:hover::before { |
|
|
|
-webkit-transform: translateY(8px); |
|
|
|
transform: translateY(8px); |
|
|
|
} |
|
|
|
.hint--left:before { |
|
|
|
|
|
|
|
.hint--left::before { |
|
|
|
margin-right: -12px; |
|
|
|
margin-top: -6px; |
|
|
|
} |
|
|
|
.hint--left:after { |
|
|
|
|
|
|
|
.hint--left::after { |
|
|
|
margin-right: -14px; |
|
|
|
} |
|
|
|
.hint--left:before, |
|
|
|
.hint--left:after { |
|
|
|
|
|
|
|
.hint--left::before, |
|
|
|
.hint--left::after { |
|
|
|
right: 100%; |
|
|
|
bottom: 50%; |
|
|
|
} |
|
|
|
.hint--left:hover:after, |
|
|
|
.hint--left:hover:before { |
|
|
|
|
|
|
|
.hint--left:hover::after, |
|
|
|
.hint--left:hover::before { |
|
|
|
-webkit-transform: translateX(-8px); |
|
|
|
transform: translateX(-8px); |
|
|
|
} |
|
|
|