diff options
| author | kj_sh604 | 2026-03-15 16:19:35 -0400 |
|---|---|---|
| committer | kj_sh604 | 2026-03-15 16:19:35 -0400 |
| commit | 6ec259a0e71174651bae95d4628138bf6fd68742 (patch) | |
| tree | 5e33c6a5ec091ecabfcb257fdc7b6a88ed8754ac /packages/excalidraw/components/Range.scss | |
| parent | 16c8578b15c727f22921f8a80a56ee4d4e7f2272 (diff) | |
refactor: packages/
Diffstat (limited to 'packages/excalidraw/components/Range.scss')
| -rw-r--r-- | packages/excalidraw/components/Range.scss | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/packages/excalidraw/components/Range.scss b/packages/excalidraw/components/Range.scss new file mode 100644 index 0000000..01cb916 --- /dev/null +++ b/packages/excalidraw/components/Range.scss @@ -0,0 +1,56 @@ +@import "../css/variables.module.scss"; + +.excalidraw { + --slider-thumb-size: 16px; + + .range-wrapper { + position: relative; + padding-top: 10px; + padding-bottom: 30px; + } + + .range-input { + width: 100%; + height: 4px; + -webkit-appearance: none; + background: var(--color-slider-track); + border-radius: 2px; + outline: none; + } + + .range-input::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + width: var(--slider-thumb-size); + height: var(--slider-thumb-size); + background: var(--color-slider-thumb); + border-radius: 50%; + cursor: pointer; + border: none; + } + + .range-input::-moz-range-thumb { + width: var(--slider-thumb-size); + height: var(--slider-thumb-size); + background: var(--color-slider-thumb); + border-radius: 50%; + cursor: pointer; + border: none; + } + + .value-bubble { + position: absolute; + bottom: 0; + transform: translateX(-50%); + font-size: 12px; + color: var(--text-primary-color); + } + + .zero-label { + position: absolute; + bottom: 0; + left: 4px; + font-size: 12px; + color: var(--text-primary-color); + } +} |
