From dfad694d2ffe37f39ad04efa895c9b7f7500f4bc Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Mon, 4 Mar 2024 18:37:08 +0100 Subject: [PATCH] adds volume slider dummy tho. pranked. --- playlist/static/img/slider.svg | 39 ++++++++++++++++++++++++++++++++++ playlist/static/style.css | 28 ++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 playlist/static/img/slider.svg diff --git a/playlist/static/img/slider.svg b/playlist/static/img/slider.svg new file mode 100644 index 0000000..d601e09 --- /dev/null +++ b/playlist/static/img/slider.svg @@ -0,0 +1,39 @@ + + + + + + + + + + diff --git a/playlist/static/style.css b/playlist/static/style.css index efee7ec..780a4c9 100644 --- a/playlist/static/style.css +++ b/playlist/static/style.css @@ -293,10 +293,38 @@ input[type="range"]#seek::-webkit-slider-runnable-track{ background-image:url(img/vol-select.svg); } + input[type="range"]#volume::-webkit-slider-thumb { background: transparent; -webkit-appearance: none; background-image:url(img/vol-select.svg); + transform: translateY(1px); +} + +#volume::-moz-range-track { + background: none; + background-image: url(img/slider.svg); + background-position: 0 50%; + background-size: contain; + background-repeat:no-repeat; + box-shadow: none; + border: none; + border-bottom: 1px solid white; + border-right: 1px solid white; + height: 19px; +} + +#volume::-webkit-slider-runnable-track { + background: none; + background-image: url(img/slider.svg); + background-position: 0 50%; + background-size: contain; + background-repeat:no-repeat; + box-shadow: none; + border: none; + border-bottom: 1px solid white; + border-right: 1px solid white; + height: 19px; } /* Clippy */