]> git.plutz.net Git - serve0/blobdiff - templates/common.css.sh
enable remote controls for server display
[serve0] / templates / common.css.sh
index f77a2ea33820bd2365c4a633d86994670de33d5d..62eaabb30f96455b5d2d8ae8564e3f54c15be1b7 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014, 2015 Paul Hänsch
+# Copyright 2014 - 2016 Paul Hänsch
 #
 # This file is part of Serve0
 # 
@@ -116,6 +116,7 @@ a.panel {
   max-height: 100%;
   overflow-y: scroll;
 }
+.panel#advfilter:target{ padding-bottom: 1em; }
 
 
 /* == Panel Switches == */
@@ -214,7 +215,6 @@ a.panel {
   word-wrap: break-word;
 }
 
-
 /* == Thumblist == */
 
 #thumblist {
@@ -228,14 +228,14 @@ a.panel {
   text-align: left;
   width: 90%;
   padding: 0 .5em;
-  margin: auto;
+  margin: .5%;
   margin-bottom: .75em;
   vertical-align: top;
   word-wrap: break-word;
 }
-@media (min-width: 480px){#thumblist .thumb{width: 49.5%;}}
-@media (min-width: 640px){#thumblist .thumb{width: 33%;}}
-@media (min-width: 1024px){#thumblist .thumb{width: 256px;}}
+@media (min-width: 460px){#thumblist .thumb{width: 48%;}}
+@media (min-width: 620px){#thumblist .thumb{width: 32%;}}
+@media (min-width: 1004px){#thumblist .thumb{width: 250px; margin: 2px;}}
 
 #thumblist .thumb img {
   width: 100%;
@@ -256,6 +256,27 @@ a.panel {
   margin: .75em .5em;
 }
 
+/* == Filelist == */
+
+#thumblist .file {
+  color: #000;
+  display: inline-block;
+  text-align: left;
+  width: 90%;
+  padding: .5em .5em;
+  margin: .5%;
+  margin-bottom: .75em;
+  vertical-align: top;
+  word-wrap: break-word;
+}
+@media (min-width: 460px){#thumblist .file{width: 48%;}}
+@media (min-width: 620px){#thumblist .file{width: 32%;}}
+@media (min-width: 1004px){#thumblist .file{width: 250px; margin: 2px;}}
+
+#thumblist .file.directory { background-color: #BBD; }
+#thumblist .file.plain { background-color: #111; color: #777; }
+#thumblist .file.video { background-color: #DBB; }
+
 .panel#tagger .newtag select,
 .panel#tagger .newtag .label{
   display: block;
@@ -268,42 +289,35 @@ a.panel {
 }
 .panel#preferences > input { display: block; }
 
-#videoview a.panel {
-  position: absolute;
-  right: 1em;
-  width: auto;
-  border: none;
-}
-#videoview .video {
+#videoview h1, #videoview > a,
+#playctl h1, #playctl > a {
   display: inline-block;
-  width: 60%;
-  vertical-align: top;
+  margin-right: 1em;
 }
-#videoview .video * {
+#videoview video {
   display: block;
+  margin: 0;
+  width: 100%;
 }
-#videoview .videoinfo {
-  width: 39%;
-  margin-top: 2em;
-}
-#videoview .videoinfo h2 {
-  display: inline;
-} 
-#videoview .videoinfo .meta:after {
-  content: "\A";
-  white-space: pre;
-}
-#videoview .videoinfo .label {
-  display: block;
-  margin-top: 1em;
-}
-#videoview .videoinfo .info.description {
-  display: block;
-  background-color: #DDF;
-}
-#videoview .videoinfo .edit {
-  width: 100%
-}
+
+#playctl form { text-align: center; }
+#playctl form button {
+  display: inline-block;
+  height: 100%;
+  min-height: 2em;
+  margin: 0 -.75ex 2em 0;
+  background-color: #EEE;
+  border: 1px solid #333;
+  max-width: 4em;
+  vertical-align: bottom;
+}
+#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="vol"].selected { background-color: #FA6;}
+#playctl form button[name="vol"][value="100"],
+#playctl form button[name="vol"][value="0"] { width: 6%;}
+
 EOF
 
 # vi:set filetype=css: