2018-09-21 10:13:21 +00:00
|
|
|
%tooltip {
|
2018-09-12 19:23:39 +00:00
|
|
|
position: relative;
|
|
|
|
display: inline-flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2018-09-21 10:13:21 +00:00
|
|
|
%tooltip-bubble,
|
|
|
|
%tooltip-tail {
|
2018-09-12 19:23:39 +00:00
|
|
|
position: absolute;
|
2018-10-19 15:17:02 +00:00
|
|
|
z-index: 1;
|
2018-09-12 19:23:39 +00:00
|
|
|
}
|
2018-09-21 10:13:21 +00:00
|
|
|
%tooltip-bubble {
|
2018-09-12 19:23:39 +00:00
|
|
|
padding: 10px;
|
|
|
|
bottom: calc(100% + 5px);
|
|
|
|
text-align: center;
|
|
|
|
white-space: nowrap;
|
|
|
|
content: attr(data-tooltip);
|
|
|
|
// incase you are using text-indent to hide the
|
|
|
|
// text of the element %with-tooltip
|
|
|
|
text-indent: 0;
|
|
|
|
}
|
2018-09-21 10:13:21 +00:00
|
|
|
%tooltip-tail {
|
2018-09-12 19:23:39 +00:00
|
|
|
content: '';
|
|
|
|
left: 50%;
|
2018-09-21 10:13:21 +00:00
|
|
|
margin-left: -10px;
|
2018-09-12 19:23:39 +00:00
|
|
|
top: -10px;
|
2018-09-21 10:13:21 +00:00
|
|
|
transform: scale(1, 0.5);
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
background-color: transparent !important;
|
|
|
|
border-left: 9px solid transparent;
|
|
|
|
border-right: 9px solid transparent;
|
2018-11-09 15:28:26 +00:00
|
|
|
border-top: 18px solid $gray-800;
|
2018-09-12 19:23:39 +00:00
|
|
|
}
|