Files
mue/src/components/helpers/tooltip/tooltip.scss
2021-04-23 16:47:48 +01:00

38 lines
687 B
SCSS

// todo: possibly add tooltip placement option
.tooltip {
position: relative;
display: inline-block;
.tooltipTitle {
width: 60px;
background-color: rgba(255, 255, 255, 0.89);
color: #000000;
text-align: center;
font-size: 0.6rem;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
top: 100%;
left: 50%;
margin-left: -30px;
visibility: hidden;
cursor: initial;
user-select: none;
opacity: 0;
transition: opacity 0.8s;
}
&:hover {
.tooltipTitle {
visibility: visible;
opacity: 1;
}
}
}
.dark .tooltipTitle {
background-color: rgba(0, 0, 0, 0.79);
color: #ffffff;
}