mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-06 08:11:39 +00:00
fix slider tooltip being too low
This commit is contained in:
parent
6de1a4e9e0
commit
4aa0998924
1 changed files with 21 additions and 19 deletions
|
|
@ -42,26 +42,28 @@ textarea {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&::after {
|
&[tooltip] {
|
||||||
z-index: 9999;
|
&::after {
|
||||||
content: attr(tooltip);
|
z-index: 9999;
|
||||||
position: absolute;
|
content: attr(tooltip);
|
||||||
min-width: 50px;
|
position: absolute;
|
||||||
top: -10px;
|
min-width: 50px;
|
||||||
left: 50%;
|
top: -22px;
|
||||||
transform: translateX(calc(-50%));
|
left: 50%;
|
||||||
padding: 0 5px;
|
transform: translateX(calc(-50%));
|
||||||
border-radius: 4px;
|
padding: 0 5px;
|
||||||
text-align: center;
|
border-radius: 4px;
|
||||||
color: spiceColor("sidebar-text");
|
text-align: center;
|
||||||
background-color: spiceColor("button");
|
color: spiceColor("sidebar-text");
|
||||||
transition: opacity 0.25s ease;
|
background-color: spiceColor("button");
|
||||||
opacity: 0;
|
transition: opacity 0.25s ease;
|
||||||
}
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover::after,
|
&:hover::after,
|
||||||
&:active::after {
|
&:active::after {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue