mirror of
https://github.com/mue/mue.git
synced 2026-07-05 23:51:12 +02:00
38 lines
687 B
SCSS
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;
|
|
}
|