diff options
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); + } +} |
