]> git.plutz.net Git - serve0/blobdiff - templates/common.css.sh
css transitions for panels
[serve0] / templates / common.css.sh
index 0c3d51a03eb523dba76c390dca1cd0fe1298bc17..f8702198675243a600955782411f4c719e6bf8cb 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014 Paul Hänsch
+# Copyright 2014, 2015 Paul Hänsch
 #
 # This file is part of Serve0
 # 
@@ -28,13 +28,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;
@@ -62,10 +62,50 @@ textarea {
   border-width: 1px;
   border-style: none none solid none;
 }
-a.panel {
-  font-weight: bold;
+
+#advfilter {
+  position: absolute;
+  top: 0;
+}
+#preferences,
+#tagger,
+#foot {
+  position: fixed;
+  bottom: 0px;
+  min-height: 2em;
+  border-style: solid none none none;
+}
+
+#advfilter,
+#tagger,
+#preferences {
+  z-index: 1;
+  overflow: hidden;
+  min-height: 0; max-height: 0;
+  padding-top: 0; padding-bottom: 0;
+  transition: all .3s linear;
+}
+#advfilter:target,
+#tagger:target,
+#preferences:target {
+  max-height: 100%;
+  overflow-y: scroll;
+}
+
+.panel .help { display: block;}
+a.panel { font-weight: bold; }
+
+#preferences a.panel,
+#tagger a.panel {
+  border-style: solid none none none;
+  border-width: 1px;
+  margin-top: .5em;
 }
-a.clearsearch, a.advanced, a.tagger, .pagination_nav {
+
+#search a.toggle,
+#foot a.toggle,
+a.clearsearch,
+.pagination_nav {
   display: inline;
   border: none;
 }
@@ -75,29 +115,58 @@ a.clearsearch, a.advanced, a.tagger, .pagination_nav {
   padding-top: .125em;
 }
 
-.panel .filter, .panel .quicklinks,
-.footer .newtag, .footer input[type=submit] {
+#advfilter .quicklinks,
+#advfilter .filter,
+#tagger .newtag,
+#tagger input[type=submit],
+#preferences > * {
   display: inline-block;
   vertical-align: top;
-  margin-top: 2em;
+  margin-top: 1em;
 }
-.panel .help {
-  display: block;
+
+#advfilter .filter {
+  border: solid 1px #FFF;
+  border-radius: .25em;
+  padding: .25em .5em;
+}
+#advfilter > label.tabhandle {
+  text-align: right;
+  width: 4em;
+  margin-left: 4em;
+}
+#advfilter > .tabhandle + label { display: none; }
+#advfilter > .tabhandle + label + .tabcontent { display: none; }
+#advfilter > .tabhandle:checked + label + .tabcontent { display: inline-block; }
+#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle + label{ display: inline-block; }
+#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle:checked + label{ display: none; }
+
+#advfilter .filter .tabcontainer {
+  position: relative;
+  width: 16em;
 }
-.panel .filter select, .panel .filter .help,
-.footer .newtag select, .footer .newtag .label{
-  display: block;
+#advfilter .filter .category.tabhandle { display: block; }
+#advfilter .filter input:checked + .category.tabhandle {
+  background: #FFF;
+  color: #000;
+}
+#advfilter .filter .category.tabcontent {
+  position: absolute;
+  top: 0; right: 0;
   width: 10em;
+  height: 100%;
+  min-height: 4em;
 }
-.panel .filter .help.conjunction {
-  font-weight: bold;
+
+#advfilter .filter.final {
+  width: 16em;
+  margin-left: 1em;
 }
-.panel .filter .label.category {
+
+#advfilter .quicklinks {max-width: 100%;}
+#advfilter .quicklinks * {
   display: block;
-  margin-top: 1em;
-}
-.panel .quicklinks * {
-  display: block
+  word-wrap: break-word;
 }
 
 #thumblist {
@@ -112,34 +181,45 @@ a.clearsearch, a.advanced, a.tagger, .pagination_nav {
   width: 90%;
   padding: 0 .5em;
   margin: auto;
+  margin-bottom: .75em;
   vertical-align: top;
   word-wrap: break-word;
 }
-@media (min-width: 480px){#thumblist .thumb{width: 50%;}}
+@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;}}
 
 #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;
+#tagger .newtag select,
+#tagger .newtag .label{
+  display: block;
+  width: 10em;
 }
 
+#preferences > fieldset {
+  border: solid 1px;
+  border-radius: .25em;
+}
+#preferences > input { display: block; }
+
 #videoview a.panel {
   position: absolute;
   right: 1em;
@@ -155,14 +235,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;
 }