diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-25 22:44:22 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-25 22:45:20 +0800 |
| commit | 67d80b593839a29cfccdc541469a39f57e98bca2 (patch) | |
| tree | d4e66f1ab8abdf88aed48014a0715c433dd30821 /docs/play/style.css | |
| parent | 17217317eaaf57dd5c39538c115e35ddccb8666d (diff) | |
Add click and drag support to progress bar
Diffstat (limited to 'docs/play/style.css')
| -rw-r--r-- | docs/play/style.css | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/play/style.css b/docs/play/style.css index 7a6f27d..5e51114 100644 --- a/docs/play/style.css +++ b/docs/play/style.css @@ -306,7 +306,18 @@ body { height: 4px; background: var(--progress-bg); border-radius: 2px; - overflow: hidden; + overflow: visible; + cursor: pointer; + position: relative; +} + +.controls__progress::before { + content: ""; + position: absolute; + left: 0; + right: 0; + top: -10px; + bottom: -10px; } .controls__progress-fill { @@ -314,6 +325,7 @@ body { background: var(--progress-fill); border-radius: 2px; transition: width 0.3s; + overflow: hidden; } .controls__text { |
