Add doc, tooltip offset and css cleanup

This commit is contained in:
2025-04-28 14:31:56 +02:00
parent 68b1a96270
commit 9bd3c618a4
2 changed files with 10 additions and 30 deletions

View File

@ -45,35 +45,6 @@ body {
}
}
@mixin tooltip {
@include shadow;
z-index: 1;
pointer-events: none;
background-color: #333;
color: #fff;
border: 0.5px solid hsl(0, 0%, 50%);
border-radius: 5px;
padding: 5px 10px;
position: absolute;
white-space: nowrap;
opacity: 0;
transition: opacity 500ms ease-in;
}
.tooltip {
@include tooltip;
position: absolute;
width: max-content;
left: 0;
top: 0;
}
.tooltip[tooltip-status=open] {
opacity: 1;
transition: opacity 500ms ease-in;
}
.ib {
display: inline-block;
padding: 1px;