From 3e4a3e7f9e54247aaec9c0440e477adc8a341941 Mon Sep 17 00:00:00 2001 From: Donato Capitella Date: Sat, 9 Aug 2025 15:58:29 +0100 Subject: [PATCH] Updated slider --- docs/index.html | 181 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 134 insertions(+), 47 deletions(-) diff --git a/docs/index.html b/docs/index.html index ff1aedd..f9e3011 100644 --- a/docs/index.html +++ b/docs/index.html @@ -92,6 +92,75 @@ align-items: center; } + + .range-wrap { + position: relative; + height: 30px; + } + + .range-wrap input[type="range"] { + position: absolute; + inset: 0; + width: 100%; + margin: 0; + background: transparent; + pointer-events: none; + appearance: none; + } + + .range-wrap input[type="range"]::-webkit-slider-thumb { + pointer-events: auto; + appearance: none; + height: 16px; + width: 16px; + border-radius: 50%; + background: var(--accent); + border: 2px solid #fff; + box-shadow: 0 0 2px rgba(0, 0, 0, 0.3); + cursor: pointer; + transition: background 0.2s, transform 0.2s; + } + + .range-wrap input[type="range"]::-webkit-slider-thumb:hover { + background: #0451cc; + transform: scale(1.1); + } + + .range-wrap input[type="range"]::-moz-range-thumb { + pointer-events: auto; + height: 16px; + width: 16px; + border-radius: 50%; + background: var(--accent); + border: 2px solid #fff; + box-shadow: 0 0 2px rgba(0, 0, 0, 0.3); + cursor: pointer; + transition: background 0.2s, transform 0.2s; + } + + .range-wrap input[type="range"]::-moz-range-thumb:hover { + background: #0451cc; + transform: scale(1.1); + } + + .range-track { + position: absolute; + top: 50%; + height: 6px; + width: 100%; + transform: translateY(-50%); + border-radius: 999px; + background: #e5e5e5; + } + + .range-values { + margin-top: 4px; + font-size: 12px; + color: var(--muted); + text-align: center; + } + + input[type="range"] { width: 100%; } @@ -311,13 +380,22 @@
-
- - + +
+ + +
+
+ +
+ 4B50B96B143B189B235B +
+ +
+ 4B235B
-
-
+