2019-06-14 17:27:37 +00:00
|
|
|
%tooltip {
|
|
|
|
position: relative;
|
|
|
|
display: inline-flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
vertical-align: text-top;
|
|
|
|
}
|
|
|
|
%tooltip-bubble,
|
|
|
|
%tooltip-tail {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
%tooltip-bubble {
|
|
|
|
padding: 12px;
|
|
|
|
white-space: nowrap;
|
|
|
|
content: attr(data-tooltip);
|
|
|
|
text-indent: 0;
|
|
|
|
min-width: 192px;
|
|
|
|
}
|
|
|
|
%tooltip-bubble {
|
|
|
|
/* TODO: structure says left aligned, check this is correct */
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
%tooltip-tail {
|
|
|
|
content: '';
|
|
|
|
transform: scale(1, 0.5);
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
/* TODO: positioning */
|
|
|
|
%tooltip-bubble {
|
|
|
|
bottom: calc(100% + 5px);
|
|
|
|
}
|
|
|
|
%tooltip-tail {
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -9px;
|
|
|
|
bottom: -13px;
|
|
|
|
}
|
|
|
|
/* TODO: Try and use the same vertical positioning all tooltips */
|
|
|
|
/* this is only for pseudo tooltips be want to avoid */
|
2019-11-25 18:45:10 +00:00
|
|
|
/* specifying pseudo in this file */
|
2019-06-14 17:27:37 +00:00
|
|
|
%tooltip::after {
|
2020-05-12 12:36:03 +00:00
|
|
|
bottom: calc(100% - 8px);
|
2019-06-14 17:27:37 +00:00
|
|
|
}
|
2019-11-25 18:45:10 +00:00
|
|
|
%tooltip-bottom::before {
|
|
|
|
bottom: auto;
|
2020-05-12 12:36:03 +00:00
|
|
|
top: calc(100% + 8px);
|
2019-11-25 18:45:10 +00:00
|
|
|
}
|
|
|
|
%tooltip-bottom::after {
|
|
|
|
bottom: -12px;
|
|
|
|
}
|
2020-05-20 16:43:25 +00:00
|
|
|
|
|
|
|
// Ember Tooltips
|
|
|
|
.ember-tooltip {
|
|
|
|
padding: 12px;
|
2020-06-12 13:35:52 +00:00
|
|
|
max-width: 192px;
|
2020-05-20 16:43:25 +00:00
|
|
|
}
|