99070f2983
- Adds full set of svg icons as CSS/Sass variables to the source - Starts picking out some frame-grays, whilst commenting in possibles - Remove color prefixing The prefixes `ui-` and `brand-` for colors hav been removed. This makes colors slightly easier to type. In order to differentiate between brand colors and 'normal' colors, normal colors are named as 'true colors' i.e. blue, red, green etc etc whereas the brand colors used a more premium sounding name such as 'steel' for vault gray, 'magenta' for consul, 'cobalt' for vagrant etc etc.
35 lines
720 B
SCSS
35 lines
720 B
SCSS
%tooltip {
|
|
position: relative;
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
%tooltip-bubble,
|
|
%tooltip-tail {
|
|
position: absolute;
|
|
z-index: 1;
|
|
}
|
|
%tooltip-bubble {
|
|
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;
|
|
}
|
|
%tooltip-tail {
|
|
content: '';
|
|
left: 50%;
|
|
margin-left: -10px;
|
|
top: -10px;
|
|
transform: scale(1, 0.5);
|
|
width: 0;
|
|
height: 0;
|
|
background-color: transparent !important;
|
|
border-left: 9px solid transparent;
|
|
border-right: 9px solid transparent;
|
|
border-top: 18px solid $gray-800;
|
|
}
|