Files
Iris/src/scss/components/_tooltip.scss

72 lines
1.1 KiB
SCSS
Raw Normal View History

.has-tooltip {
position: relative;
.tooltip {
@include animate();
2018-02-16 08:52:43 +13:00
display: inline-block;
position: absolute;
bottom: 37px;
left: 1px;
2018-02-16 08:52:43 +13:00
right: auto;
opacity: 0;
padding: 8px 10px 6px;
border-radius: 3px;
2018-02-16 08:52:43 +13:00
pointer-events: none;
background: $white;
color: $black;
font-size: 11px;
z-index: 97;
white-space: nowrap;
text-align: left;
&:first-letter {
text-transform: uppercase;
}
&:after {
content: '';
display: block;
width: 6px;
height: 6px;
2018-02-16 08:52:43 +13:00
background: $white;
-ms-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
position: absolute;
bottom: -3px;
left: 9px;
}
}
&:hover {
.tooltip {
opacity: 1;
bottom: 35px;
}
}
2018-02-16 08:52:43 +13:00
&.right-tooltip {
.tooltip {
left: auto;
right: -5px;
&:after {
right: 9px;
left: auto;
}
2018-01-15 16:58:08 +13:00
}
}
&.large-tooltip {
.tooltip {
padding: 8px 12px;
font-size: 12px;
line-height: 14px;
bottom: 50px;
2018-02-16 08:52:43 +13:00
white-space: wrap;
max-width: 200px;
}
}
2018-01-15 16:58:08 +13:00
}