Vanessa 2025-02-14 16:45:40 +08:00
parent ab5bb7d56c
commit 7728e937bf
2 changed files with 30 additions and 4 deletions

View file

@ -5,15 +5,19 @@
background-color: transparent;
padding: 0 4px;
&::-webkit-slider-runnable-track,
&::-webkit-slider-runnable-track {
-webkit-appearance: none;
height: 2px;
background-color: var(--b3-theme-primary-lighter);
}
&::-moz-range-track {
-webkit-appearance: none;
height: 2px;
background-color: var(--b3-theme-primary-lighter);
}
&::-webkit-slider-thumb,
&::-moz-range-thumb {
&::-webkit-slider-thumb {
-webkit-appearance: none;
width: 10px;
height: 10px;
@ -25,11 +29,27 @@
transition: transform 100ms ease-out;
}
&::-moz-range-thumb {
-webkit-appearance: none;
width: 10px;
height: 10px;
border-radius: var(--b3-border-radius-b);
cursor: pointer;
background-color: var(--b3-theme-primary);
margin-top: -4px;
box-shadow: var(--b3-point-shadow);
transition: transform 100ms ease-out;
border: 0;
}
&:focus,
&:hover {
outline: none;
&::-webkit-slider-thumb,
&::-webkit-slider-thumb {
transform: scale(1.5);
}
&::-moz-range-thumb {
transform: scale(1.5);
}

View file

@ -61,6 +61,12 @@
background-color: var(--b3-border-color);
box-shadow: none;
}
&::-moz-range-track,
&::-moz-range-thumb {
background-color: var(--b3-border-color);
box-shadow: none;
}
}
}
}