primevue-mirror/apps/labs/assets/styles/primevue/slider.css

43 lines
1.1 KiB
CSS

.p-slider {
@apply relative bg-surface-200 dark:bg-surface-700 rounded-sm
}
.p-slider-handle {
@apply cursor-grab touch-none flex items-center justify-center h-[20px] w-[20px]
bg-surface-200 dark:bg-surface-700 rounded-full
transition-colors duration-200
focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary
before:w-[16px] before:h-[16px] before:block before:rounded-full
before:bg-surface-0 dark:before:bg-surface-950
before:shadow-[0px_0.5px_0px_0px_rgba(0,0,0,0.08),0px_1px_1px_0px_rgba(0,0,0,0.14)]
before:transition-colors before:duration-200
}
.p-slider-range {
@apply block bg-primary rounded-sm
}
.p-slider.p-slider-horizontal {
@apply h-[3px]
}
.p-slider-horizontal .p-slider-range {
@apply top-0 start-0 h-full
}
.p-slider-horizontal .p-slider-handle {
@apply top-1/2 -mt-[10px] -ms-[10px]
}
.p-slider-vertical {
@apply min-h-[100px] w-[3px]
}
.p-slider-vertical .p-slider-handle {
@apply start-1/2 -mb-[10px] -ms-[10px]
}
.p-slider-vertical .p-slider-range {
@apply bottom-0 start-0 w-full
}