.dx-slider {
position: relative;
display: flex;
min-width: 200px;
align-items: center;
padding: 0.5rem 0;
touch-action: none;
}
.dx-slider[data-orientation="vertical"] {
width: auto;
height: 200px;
flex-direction: column;
}
.dx-slider-track {
position: relative;
height: 0.5rem;
box-sizing: border-box;
flex-grow: 1;
border-radius: 9999px;
background: var(--primary-color-5);
}
.dx-slider[data-orientation="vertical"] .dx-slider-track {
width: 4px;
height: 100%;
}
.dx-slider-range {
position: absolute;
height: 100%;
border-radius: 9999px;
background-color: var(--secondary-color-2);
}
.dx-slider[data-orientation="vertical"] .dx-slider-range {
width: 100%;
}
.dx-slider-thumb {
all: unset;
position: absolute;
top: 50%;
display: block;
width: 16px;
height: 16px;
box-sizing: border-box;
border: 0;
border-radius: 50%;
background-color: var(--primary-color-1);
box-shadow: inset 0 0 0 1px var(--secondary-color-2);
cursor: pointer;
transform: translate3d(-50%, -50%, 0);
transition: box-shadow 150ms;
will-change: left, bottom, transform;
}
.dx-slider[data-orientation="vertical"] .dx-slider-thumb {
left: 50%;
transform: translate3d(-50%, 50%, 0);
}
.dx-slider-thumb:focus-visible[data-dragging="true"],
.dx-slider-thumb:focus-visible,
.dx-slider-thumb:hover {
box-shadow: inset 0 0 0 1px var(--secondary-color-2),
0 0 0 4px color-mix(in oklab, var(--primary-color-7) 50%, transparent);
transition: box-shadow 150ms;
}
.dx-slider[data-disabled="true"] {
cursor: not-allowed;
opacity: 0.5;
}
.dx-slider[data-disabled="true"] .dx-slider-thumb {
cursor: not-allowed;
}