forked from FoundKeyGang/FoundKey
make webkit style range slider the same
This commit is contained in:
parent
8a267c5cdc
commit
6b7f13e8ef
1 changed files with 5 additions and 1 deletions
|
@ -276,6 +276,7 @@ function display() {
|
||||||
width: 90px;
|
width: 90px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 4px 8px;
|
margin: 4px 8px;
|
||||||
|
overflow-x: hidden;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
|
@ -297,6 +298,7 @@ function display() {
|
||||||
animate: 0.2s;
|
animate: 0.2s;
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
border: 1px solid var(--fg);
|
border: 1px solid var(--fg);
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-slider-thumb {
|
&::-webkit-slider-thumb {
|
||||||
|
@ -307,7 +309,9 @@ function display() {
|
||||||
background: var(--accentLighten);
|
background: var(--accentLighten);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
margin-top: -0.5px;
|
box-shadow: calc(-100vw - 14px) 0 0 100vw var(--accent);
|
||||||
|
clip-path: polygon(1px 0, 100% 0, 100% 100%, 1px 100%, 1px calc(50% + 10.5px), -100vw calc(50% + 10.5px), -100vw calc(50% - 10.5px), 0 calc(50% - 10.5px));
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-moz-range-track {
|
&::-moz-range-track {
|
||||||
|
|
Loading…
Reference in a new issue