width: auto;
padding: 0;
margin: auto 1em 1ex 0;
+ text-decoration: none;
}
.panel .help { display: block;}
/* == Top Panel == */
-.panel#advfilter { position: absolute; top: 0; }
-.panel#search select { margin-right: .5em; }
+.panel.switchable.top {
+ position: absolute;
+ top: 0;
+}
body.playctl .panel#advfilter,
+body.playctl .panel#morelinks,
body.playctl .panel#search {
margin-top: 1.25em;
border-top: 1px solid #FFF;
}
+.panel#search select { margin-right: .5em; }
+
/* == Bottom Panels == */
-.panel#preferences,
-.panel#tagger,
+.panel.bottom,
.panel#foot {
position: fixed;
bottom: 0px;
border-style: solid none none none;
}
-
/* == Switchable Panels == */
-form.panel,
-div.panel {
+.panel.switchable {
z-index: 1;
overflow: hidden;
min-height: 0; max-height: 0;
padding-top: 0; padding-bottom: 0;
}
+.panel.switchable:target {
+ max-height: 100%;
+ overflow-y: scroll;
+}
+.panel.switchable.top:target{ padding-bottom: 1em; }
.panel#search,
.panel#foot {
body.playctl .panel#search,
body.playctl .panel#foot { padding-right: .25em; }
-.panel:target {
- max-height: 100%;
- overflow-y: scroll;
-}
-.panel#advfilter:target{ padding-bottom: 1em; }
/* == Panel Switches == */
-.panel#playctl a.panel,
-.panel#advfilter a.panel,
-.panel#preferences a.panel,
-.panel#tagger a.panel {
+.panel.switchable.bottom a.panel:last-of-type,
+.panel.switchable.top a.panel:first-of-type {
display: block;
border-style: none none solid none;
border-width: 1px;
}
-.panel#preferences a.panel,
-.panel#tagger a.panel {
+.panel.switchable.bottom a.panel:last-of-type {
border-style: solid none none none;
margin-top: .5em;
}
/* == Panel Elements == */
-.panel#advfilter .quicklinks,
.panel#advfilter .filter,
.panel#tagger .newtag,
.panel#tagger input[type=submit],
margin-left: 1em;
}
-#advfilter .quicklinks {width: 100%;}
/* == Recent filters == */
}
cat <<EOF
- <form class="panel" id="advfilter"
+ <form class="panel switchable top" id="advfilter"
action="?action=filter" method="post" accept-charset="UTF-8">
<a class="panel toggle" href="#">Hide</a>
</select>
<input type="submit" value="Filter!">
</p>
-
- <a class="quicklinks" href="?p=quicklinks">Most recent</a>
</form>
EOF
</select>
<!-- input type="submit" name="submit" value="Find" -->
- <a class="panel clearsearch" href="?">Clear All</a>
- <a class="panel toggle" href="#advfilter">Advanced</a>
- <a class="panel treeview" href="?p=tree">Browse Folders</a>
- <a class="panel" href="?p=playctl">Player</a>
+ <a class="panel clearsearch" href="?">Clear</a>
+ <a class="panel toggle" href="#morelinks">More</a>
<div class="pagination_nav">
<label>Page:</label>
</div>
</form>
+ <div class="panel switchable top" id="morelinks">
+ <a class="panel toggle" href="#">Hide</a>
+
+ <a class="panel toggle" href="#advfilter">Advanced</a>
+ <a class="panel toggle" href="#preferences">Preferences</a>
+
+ <a class="panel treeview" href="?p=tree">Browse Folders</a>
+ <a class="panel" href="?p=quicklinks">Most recent</a>
+
+ <a class="panel" href="?p=playctl">Player</a>
+ </div>
+ $(. $_EXEC/templates/preferences.html.sh)
+
<form action="?action=multitag" method="post" accept-charset="UTF-8">
<input type="hidden" name="o" value="${order}">
<input type="hidden" name="s" value="${search}">
<div class="panel" id="foot">
<a class="panel toggle" href="#tagger">Add Tags</a>
- <a class="panel toggle" href="#preferences">Preferences</a>
- <a class="panel toggle" href="#">^ top ^</a>
-
+ <a class="panel toggle" href="#">⇧</a>
<div class="pagination_nav">
<label>Page:</label>
</div>
</div>
- $(. $_EXEC/templates/preferences.html.sh)
$(. $_EXEC/templates/advfilter.html.sh)
EOF
# along with Serve0 If not, see <http://www.gnu.org/licenses/>.
cat <<EOF
-<form class="panel" id="search" style="display: block;" action="?" method="get" accept-charset="UTF-8">
+<form class="panel top" id="search" style="display: block;" action="?" method="get" accept-charset="UTF-8">
<input type="text" name="s" value="$search" placeholder="Search">
<label for="o1" class="order">Order by:</label>
${description:+<span class="info description">$(printf %s "$description" |_wiki)</span>}
</div>
-<form class="panel playctl" id="advctl" action="?action=playctl" method="post">
+<form class="panel switchable bottom playctl" id="advctl" action="?action=playctl" method="post">
<fieldset class="volume">
<button type="submit" name="amp" value="off">Amp Off</button>
<button type="submit" name="amp" value="on">Amp On</button>
<a class="panel toggle" href="#foot">Hide</a>
</form>
-<form class="panel" id="tagger" action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
+<form class="panel switchable bottom" id="tagger" action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
<input type="hidden" name="length" value="$length">
<input type="hidden" name="width" value="$width">
<input type="hidden" name="height" value="$height">
-# Copyright 2015 Paul Hänsch
+# Copyright 2015, 2016 Paul Hänsch
#
# This file is part of Serve0
#
# along with Serve0 If not, see <http://www.gnu.org/licenses/>.
cat <<EOF
- <form class="panel" id="preferences"
+ <form class="panel switchable top" id="preferences"
action="?action=preferences" method="post" accept-charset="UTF-8">
+ <a class="panel toggle" href="#">Hide</a>
+
<fieldset>
<legend>Watch videos:</legend>
<input type="radio" name="watch" value="240p" $([ "${_COOKIE[watch]}" = 240p ] && printf 'checked') id="rd_w240p">
</fieldset>
<input type="submit" value="Set Cookie!">
-
- <a class="panel toggle" href="#foot">Hide</a>
</form>
EOF
-# Copyright 2014, 2015 Paul Hänsch
+# Copyright 2014, 2015, 2016 Paul Hänsch
#
# This file is part of Serve0
#
}
cat <<EOF
- <div class="panel" id="tagger">
+ <div class="panel switchable bottom" id="tagger">
<p class="help">Add selectetd tags to selected videos.</p>
$(category_box $(list_categories))
<p class="newtag additional">
-# Copyright 2014, 2015 Paul Hänsch
+# Copyright 2014 - 2016 Paul Hänsch
#
# This file is part of Serve0
#
# along with Serve0 If not, see <http://www.gnu.org/licenses/>.
cat <<EOF
- <form class="panel" id="search" action="?" method="get" accept-charset="UTF-8">
+ <form class="panel top" id="search" action="?" method="get" accept-charset="UTF-8">
<input type="text" name="s" value="$search" placeholder="Search">
<input type="submit" name="submit" value="Find">
-
<a class="panel clearsearch" href="?p=tree">Clear All</a>
- <a class="panel" href="?p=playctl">Player</a>
+
+ <a class="panel toggle" href="#morelinks">More</a>
</form>
+ <div class="panel switchable top" id="morelinks">
+ <a class="panel toggle" href="#">Hide</a>
+
+ <a class="panel toggle" href="#advfilter">Advanced</a>
+ <a class="panel toggle" href="#preferences">Preferences</a>
+
+ <a class="panel listview" href="?p=list">Index view</a>
+ <a class="panel" href="?p=quicklinks">Most recent</a>
+ <a class="panel" href="?p=playctl">Player</a>
+ </div>
+
+ $(. $_EXEC/templates/preferences.html.sh)
+
<form action="?action=multitag&${page_this}" method="post" accept-charset="UTF-8">
<ul id="thumblist">
$(filelist)
$(. $_EXEC/templates/tagger.html.sh)
</form>
- <div class="panel" id="foot">
+ <div class="panel bottom" id="foot">
<a class="panel toggle" href="#tagger">Add Tags</a>
- <a class="panel toggle" href="#preferences">Preferences</a>
- <a class="panel listview" href="?p=list">Index view</a>
+ <a class="panel toggle" href="#">⇧</a>
</div>
- $(. $_EXEC/templates/preferences.html.sh)
EOF
# vi:set filetype=html:
# along with Serve0 If not, see <http://www.gnu.org/licenses/>.
cat <<EOF
-<form class="panel" id="search" style="display: block;" action="?" method="get" accept-charset="UTF-8">
+<form class="panel top" id="search" style="display: block;" action="?" method="get" accept-charset="UTF-8">
<input type="text" name="s" value="$search" placeholder="Search">
<label for="o1" class="order">Order by:</label>
</form>
</div>
-<div class="panel footer" id="foot">
+<div class="panel bottom" id="foot">
<a class="panel toggle" href="#tagger">Edit Tags</a>
<div class="pagination_nav">