|| video="${treeroot%/}/${location#/}"
tags="$(sed -n '2p' "$meta")"
description="$(sed -n '3,$p' "$meta")"
-length=0; width=0; height=0;
+head -n1 "$meta" |read length width height x
video="videos/$info"
[ -n "$info" ] && video="videos/$info" \
.info.tag {
line-height: 1.6em;
background-color: #DBB;
+ margin-right: -.75ex;
}
.pagination_nav {
#playctl form button {
display: inline-block;
height: 100%;
- min-height: 2em;
- margin: 0 -.75ex 2em 0;
+ min-height: 4em;
+ margin: 0 -.75ex .5em 0;
background-color: #EEE;
border: 1px solid #333;
- max-width: 4em;
vertical-align: bottom;
+ padding-top: 1em;
}
-#playctl form button[name="ctl"] { width: 16%;}
-#playctl form button[name="amp"] { width: 15%;}
-#playctl form button[name="vol"] { width: 3%; min-height: 1em;}
+#playctl form button[name="seek"],
+#playctl form button[name="ctl"] { width: 40%;}
+#playctl form button[name="amp"] { width: 40%; margin-top: 2em;}
+#playctl form button[name="vol"] { width: 5%; min-height: 1em;}
#playctl form button[name="vol"].selected { background-color: #FA6;}
#playctl form button[name="vol"][value="100"],
#playctl form button[name="vol"][value="0"] { width: 6%;}
+@media (min-width: 460px){
+ #playctl form button {
+ max-width: 4em;
+ min-height: 2em;
+ padding-top: 0em;
+ margin-bottom: 2em;
+ }
+ #playctl form button[name="seek"],
+ #playctl form button[name="ctl"] { width: 16%;}
+ #playctl form button[name="amp"] { width: 15%;}
+ #playctl form button[name="vol"] { width: 3%;}
+ #playctl form button[name="amp"] + br {display: none;}
+}
EOF
# vi:set filetype=css:
<br>
<button type="submit" name="amp" value="off">Amp Off</button>
<button type="submit" name="amp" value="on">Amp On</button>
+ <br>
$(for n in $(seq 0 5 100); do
printf '<button class="%s" type="submit" name="vol" value="%s"> </button>' "$([ "$volume" = "$n" ] && printf selected)" "$n"
done)
<span class="info width" >Width: $width</span>
<span class="info height">Height: $height</span><br>
- <label class="tags">Tags:</label>
- $(printf %s\\n "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span>:g')
+ $(printf %s\\n "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span> :g')
${description:+<span class="info description">$(printf %s "$description" |_wiki)</span>}
<form class="panel" id="tagger" action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
<span class="info width" >Width: $width</span>
<span class="info height">Height: $height</span><br>
- <label class="tags">Tags:</label>
- $(printf %s\\n "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span>:g')
+ $(printf %s\\n "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span> :g')
${description:+<span class="info description">$(printf %s "$description" |_wiki)</span>}
<form class="panel" id="tagger" action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">