form.playctl fieldset.volume button[name="amp"] {position: absolute; width: 50%; height: 4em; top: 0;}
form.playctl fieldset.volume button[value="off"] {left:0;}
form.playctl fieldset.volume button[value="on"] {right:0;}
-form.playctl fieldset.volume button[name="vol"] {position: relative; display: inline-block; width: 4%;}
-form.playctl fieldset.volume button[name="vol"].selected { background-color: #FA6;}
-form.playctl fieldset.volume button[name="vol"][value="100"],
-form.playctl fieldset.volume button[name="vol"][value="0"] { width: 4%;}
+form.playctl fieldset.volume button[name="vol"] {
+ position: relative; display: inline-block;
+ width: 4%;
+ border: 1px solid black; border-right: none;
+}
+form.playctl fieldset.volume button[name="vol"].selected { width: 2%; background-color: #FA6;}
+form.playctl fieldset.volume button[name="vol"].lselected,
+form.playctl fieldset.volume button[name="vol"].gselected { width: 7.5%;}
+form.playctl fieldset.volume button[name="vol"].llselected,
+form.playctl fieldset.volume button[name="vol"].ggselected { width: 6.5%;}
+
+/*form.playctl fieldset.volume button[name="vol"][value="100"],
+ form.playctl fieldset.volume button[name="vol"][value="0"] { width: 4%;}*/
form.playctl fieldset.pasink button { width: 100%; height: 3em;}
span.progress {
</fieldset>
<fieldset class="volume">
$(for n in $(seq 0 5 100); do
- printf '<button class="%s" type="submit" name="vol" value="%s"> </button>' "$([ "$volume" = "$n" ] && printf selected)" "$n"
+ printf '<button class="%s" type="submit" name="vol" value="%s"> </button>' \
+ "$( [ "$n" = "$volume" ] && printf selected
+ [ "$n" = "$((volume - 10))" ] && printf llselected
+ [ "$n" = "$((volume - 5))" ] && printf lselected
+ [ "$n" = "$((volume + 5))" ] && printf gselected
+ [ "$n" = "$((volume + 10))" ] && printf ggselected
+ )" "$n"
done)
</fieldset>
</form>