]> git.plutz.net Git - serve0/blobdiff - templates/common.css.sh
new folder browse section
[serve0] / templates / common.css.sh
index 0c3d51a03eb523dba76c390dca1cd0fe1298bc17..cfc84e7420cb174e62957075c7e9a8cf7d28d58e 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014 Paul Hänsch
+# Copyright 2014, 2015 Paul Hänsch
 #
 # This file is part of Serve0
 # 
 cat <<EOF
 
 * {
-  box-sizing: border-box;
   -moz-box-sizing: border-box;
+  box-sizing: border-box;
+  -moz-transition: all .3s linear;
+  transition: all .3s linear;
 }
 
 body {
@@ -28,13 +30,13 @@ body {
   background-color: #000;
   color: #DDD;
 }
-a {
-  color: #EEE;
-}
+a { color: #EEE; }
+legend, label, .label { font-weight: bold; }
 
-label, .label {
-  font-weight: bold;
-}
+input.tabhandle { display: none; }
+.tabcontent { display: none; }
+input.tabhandle:checked + label.tabhandle + .tabcontent { display: inline-block; }
+input.tabhandle:checked + .tabcontent { display: inline-block; }
 
 textarea {
   display: block;
@@ -53,6 +55,16 @@ textarea {
   background-color: #DBB;
 }
 
+.pagination_nav {
+  display: inline;
+  border: none;
+  position: absolute;
+  right: 1em;
+  padding-top: .125em;
+}
+
+/* == Panels == */
+
 .panel {
   display: block;
   width: 100%;
@@ -62,44 +74,149 @@ textarea {
   border-width: 1px;
   border-style: none none solid none;
 }
+
 a.panel {
   font-weight: bold;
-}
-a.clearsearch, a.advanced, a.tagger, .pagination_nav {
   display: inline;
   border: none;
 }
-.pagination_nav {
+
+.panel .help { display: block;}
+
+/* == Top Panel == */
+.panel#advfilter {
   position: absolute;
-  right: 1em;
-  padding-top: .125em;
+  top: 0;
+}
+
+/* == Bottom Panels == */
+.panel#preferences,
+.panel#tagger,
+.panel#foot {
+  position: fixed;
+  bottom: 0px;
+  min-height: 2em;
+  border-style: solid none none none;
 }
 
-.panel .filter, .panel .quicklinks,
-.footer .newtag, .footer input[type=submit] {
+
+/* == Switchable Panels == */
+
+.panel#advfilter,
+.panel#tagger,
+.panel#preferences {
+  z-index: 1;
+  overflow: hidden;
+  min-height: 0; max-height: 0;
+  padding-top: 0; padding-bottom: 0;
+}
+.panel#advfilter:target,
+.panel#tagger:target,
+.panel#preferences:target {
+  max-height: 100%;
+  overflow-y: scroll;
+}
+.panel#advfilter:target{ padding-bottom: 1em; }
+
+
+/* == Panel Switches == */
+
+.panel#advfilter a.panel,
+.panel#preferences a.panel,
+.panel#tagger a.panel {
+  display: block;
+  border-style: none none solid none;
+  border-width: 1px;
+}
+.panel#preferences a.panel,
+.panel#tagger a.panel {
+  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],
+.panel#preferences > * {
   display: inline-block;
   vertical-align: top;
-  margin-top: 2em;
+  margin-top: 1em;
 }
-.panel .help {
+
+
+/* == Advanced Filters == */
+
+/* == Filter Boxes == */
+#advfilter .filter {
+  border: solid 1px #FFF;
+  border-radius: .25em;
+  padding: .25em .5em;
+}
+#advfilter .filter .tabcontainer {
+  position: relative;
+  width: 16em;
+  font-weight:normal;
+}
+#advfilter .filter .tabcontainer input + .category.tabhandle {
   display: block;
+  width: 50%;
 }
-.panel .filter select, .panel .filter .help,
-.footer .newtag select, .footer .newtag .label{
-  display: block;
-  width: 10em;
+#advfilter .filter .tabcontainer input:checked + .category.tabhandle {
+  background: #FFF;
+  color: #000;
 }
-.panel .filter .help.conjunction {
-  font-weight: bold;
+#advfilter .filter .tabcontainer .category.tabcontent {
+  position: absolute;
+  top: 0; right: 0;
+  width: 50%;
+  height: 100%;
+  min-height: 4em;
+  border: 2px #FFF solid;
+  border-radius: 0 .25em .25em 0;
 }
-.panel .filter .label.category {
-  display: block;
-  margin-top: 1em;
+
+#advfilter > label.tabhandle {
+  text-align: right;
+  width: 4em;
+  margin-left: 4em;
 }
-.panel .quicklinks * {
-  display: block
+
+/* == Dynamic Appearance of Boxes == */
+.panel#advfilter > .tabhandle + label { display: none; }
+.panel#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle + label { display: inline-block; }
+.panel#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle:checked + label { display: none; }
+.panel#advfilter > .tabhandle + label + .tabcontent {
+  display: inline-block;
+  overflow: hidden;
+  max-width: 0;
+  max-height: 0;
+  padding: 0;
+  border: none;
+}
+.panel#advfilter > .tabhandle:checked + label + .tabcontent {
+  max-width: 100%;
+  max-height: 100%;
+  padding: .25em .5em;
+  border: solid 1px #FFF;
+}
+
+#advfilter .filter.final {
+  width: 16em;
+  margin-left: 1em;
 }
 
+#advfilter .quicklinks {max-width: 100%;}
+#advfilter .quicklinks * {
+  display: block;
+  word-wrap: break-word;
+}
+
+/* == Thumblist == */
+
 #thumblist {
   width: 100%;
   padding: .5em 0 3em 0;
@@ -111,34 +228,66 @@ a.clearsearch, a.advanced, a.tagger, .pagination_nav {
   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: 50%;}}
-@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%;
 }
+#thumblist .thumb h2 {
+  font-size: 1em;
+  font-weight: normal;
+  margin: 0;
+}
 #thumblist .thumb a {
   display: block;
 }
-#thumblist .thumb a.fake-mp4 {
-  margin-top: .5em;
-}
 #thumblist .thumb a.alt {
   display: inline-block;
   margin-top: .3em;
 }
+#thumblist input {
+  margin: .75em .5em;
+}
 
-.footer {
-  position: fixed;
-  min-height: 2em;
-  bottom: 0px;
-  border-style: solid none none none;
+/* == 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;
+  width: 10em;
+}
+
+.panel#preferences > fieldset {
+  border: solid 1px;
+  border-radius: .25em;
+}
+.panel#preferences > input { display: block; }
 
 #videoview a.panel {
   position: absolute;
@@ -155,14 +304,13 @@ a.clearsearch, a.advanced, a.tagger, .pagination_nav {
   display: block;
 }
 #videoview .videoinfo {
-  display: inline-block;
   width: 39%;
   margin-top: 2em;
 }
 #videoview .videoinfo h2 {
   display: inline;
 } 
-#videoview .videoinfo a.meta:after {
+#videoview .videoinfo .meta:after {
   content: "\A";
   white-space: pre;
 }