static: fix rangeinput style for firefox

This commit is contained in:
coon 2023-12-02 20:34:51 +01:00
parent 170324134a
commit 3f8abb8924
3 changed files with 22 additions and 14 deletions

View file

@ -52,7 +52,7 @@
</div> </div>
<div id="volume-control"> <div id="volume-control">
<label for="volume"></label> <label for="volume"></label>
<input id="volume" name="volume" type="range" min="1" max="100"> <input id="volume" name="volume" type="range" min="1" max="100" value="50">
</div> </div>
</div> </div>
<div class="track-info"> <div class="track-info">

View file

@ -20,7 +20,6 @@ input[type="range"]:focus {
/* slider track */ /* slider track */
input[type="range"]::-webkit-slider-runnable-track { input[type="range"]::-webkit-slider-runnable-track {
height: 5px; height: 5px;
width: 70px;
border: 1px solid #1a2445; border: 1px solid #1a2445;
border-right-color: #3a506b; border-right-color: #3a506b;
border-bottom-color: #3a506b; border-bottom-color: #3a506b;
@ -54,9 +53,12 @@ input[type="range"]:focus::-webkit-slider-thumb {
/* slider track */ /* slider track */
input[type="range"]::-moz-range-track { input[type="range"]::-moz-range-track {
background-color: #053a5f; height: 5px;
border-radius: 0.5rem; border: 1px solid #1a2445;
height: 0.5rem; border-right-color: #3a506b;
border-bottom-color: #3a506b;
background-color: #2e2e27;
background-repeat: repeat-x;
} }
/* slider thumb */ /* slider thumb */
@ -65,9 +67,13 @@ input[type="range"]::-moz-range-thumb {
border-radius: 0; /*Removes default border-radius that FF applies*/ border-radius: 0; /*Removes default border-radius that FF applies*/
/* custom styles */ /* custom styles */
background-color: #5cd5eb; height: 11px;
height: 2rem; margin-top: -4px;
width: 1rem; width: 5px;
background: #640000;
border: 1px solid #812b25;
border-right-color: #21110f;
border-bottom-color: #21110f;
} }
input[type="range"]:focus::-moz-range-thumb { input[type="range"]:focus::-moz-range-thumb {

View file

@ -120,10 +120,12 @@ td.playing {
#progress { #progress {
margin-left: 10px; margin-left: 10px;
width: 90%;
} }
#volume { #volume {
margin-left: 10px; margin-left: 10px;
width: 90%;
} }
#queue-volume-controls { #queue-volume-controls {