52 lines
909 B
SCSS
52 lines
909 B
SCSS
.slider {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
user-select: none;
|
|
touch-action: none;
|
|
width: $unit-20x;
|
|
height: 20px;
|
|
|
|
.track {
|
|
background-color: var(--button-bg);
|
|
position: relative;
|
|
flex-grow: 1;
|
|
border-radius: 9999px;
|
|
height: 3px;
|
|
}
|
|
|
|
&.table {
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
|
|
.range {
|
|
position: absolute;
|
|
background-color: var(--accent-blue);
|
|
border-radius: 9999px;
|
|
height: 100%;
|
|
}
|
|
|
|
.thumb {
|
|
display: block;
|
|
width: 20px;
|
|
height: 20px;
|
|
background-color: var(--slider-thumb-bg);
|
|
box-shadow: 0 2px 10px var(--slider-thumb-shadow);
|
|
border-radius: 10px;
|
|
|
|
&:hover {
|
|
background-color: var(--slider-thumb-bg-hover);
|
|
box-shadow: 0 2px 10px var(--slider-thumb-shadow-hover);
|
|
cursor: grab;
|
|
}
|
|
|
|
&:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
&:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 0 5px rgba($accent--blue--light, 0.6);
|
|
}
|
|
}
|