mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-24 20:41:57 +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 {
|
||||
z-index: 9999;
|
||||
content: attr(tooltip);
|
||||
position: absolute;
|
||||
min-width: 50px;
|
||||
top: -10px;
|
||||
left: 50%;
|
||||
transform: translateX(calc(-50%));
|
||||
padding: 0 5px;
|
||||
border-radius: 4px;
|
||||
text-align: center;
|
||||
color: spiceColor("sidebar-text");
|
||||
background-color: spiceColor("button");
|
||||
transition: opacity 0.25s ease;
|
||||
opacity: 0;
|
||||
}
|
||||
&[tooltip] {
|
||||
&::after {
|
||||
z-index: 9999;
|
||||
content: attr(tooltip);
|
||||
position: absolute;
|
||||
min-width: 50px;
|
||||
top: -22px;
|
||||
left: 50%;
|
||||
transform: translateX(calc(-50%));
|
||||
padding: 0 5px;
|
||||
border-radius: 4px;
|
||||
text-align: center;
|
||||
color: spiceColor("sidebar-text");
|
||||
background-color: spiceColor("button");
|
||||
transition: opacity 0.25s ease;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
&:hover::after,
|
||||
&:active::after {
|
||||
opacity: 1;
|
||||
&:hover::after,
|
||||
&:active::after {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&:focus {
|
||||
|
|
|
|||
Loading…
Reference in a new issue