2018-04-24 09:49:24 -07:00
|
|
|
.nacho-tooltip {
|
|
|
|
|
@mixin tooltip-transition() {
|
|
|
|
|
transition-duration: 167ms;
|
|
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
|
|
transition-delay: 0s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
z-index: 2;
|
|
|
|
|
position: relative;
|
|
|
|
|
min-width: item-spacing(1) / 2;
|
|
|
|
|
min-height: item-spacing(1) / 2;
|
|
|
|
|
|
|
|
|
|
&::before,
|
|
|
|
|
&::after {
|
|
|
|
|
@include tooltip-transition;
|
|
|
|
|
white-space: normal;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 150%;
|
|
|
|
|
left: 50%;
|
|
|
|
|
margin-bottom: item-spacing(1);
|
2018-05-02 09:45:26 -07:00
|
|
|
margin-left: -(item-spacing(7));
|
2018-04-24 09:49:24 -07:00
|
|
|
padding: item-spacing(2);
|
2018-05-02 09:45:26 -07:00
|
|
|
width: item-spacing(7) * 2;
|
2018-04-24 09:49:24 -07:00
|
|
|
border-radius: item-spacing(1);
|
|
|
|
|
background-color: get-color(black, 0.9);
|
|
|
|
|
color: white;
|
2018-07-19 18:22:42 -07:00
|
|
|
content: attr(data-title);
|
2018-04-24 09:49:24 -07:00
|
|
|
text-align: center;
|
|
|
|
|
line-height: 1.2;
|
|
|
|
|
font-size: item-spacing(3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 150%;
|
|
|
|
|
left: 50%;
|
|
|
|
|
margin-left: -(item-spacing(1));
|
|
|
|
|
width: 0;
|
|
|
|
|
border-top: item-spacing(1) solid get-color(black, 0.9);
|
|
|
|
|
border-right: item-spacing(1) solid transparent;
|
|
|
|
|
border-left: item-spacing(1) solid transparent;
|
|
|
|
|
content: ' ';
|
|
|
|
|
font-size: 0;
|
|
|
|
|
line-height: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
&::before,
|
|
|
|
|
&::after {
|
|
|
|
|
@include tooltip-transition;
|
|
|
|
|
visibility: visible;
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|