]> git.plutz.net Git - serve0/blobdiff - static/common.css
tabbed interface
[serve0] / static / common.css
index e6de713b632779c9205bb87b3c5db8df9f86e4d7..94c0c2904e6ec4d845fb3d903d3a84c9e248721d 100644 (file)
@@ -18,6 +18,7 @@
 
 * {
   -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
   box-sizing: border-box;
   -moz-transition: all .25s linear;
   transition: all .25s linear;
 
 body {
   padding: 0;
+  padding-top: 3em;
   margin: 0;
   background-color: #000;
   color: #DDD;
 }
+body.playctl { padding-top: 4.25em; }
 a { color: #EEE; }
 legend, label, .label { font-weight: bold; }
 
@@ -94,6 +97,40 @@ textarea {
 
 
 /* == Panels == */
+body:before {
+  position: absolute; display: block;
+  top: -1px; height: 2.25em; width: 100%;
+  background-color: #222;
+  margin: 0; padding: 0;
+  padding-top: .5em;
+  border-bottom: 1px solid #FFF;
+  content: '';
+}
+body.playctl:before {
+  top: -2px;
+  margin-top: 1.25em;
+  border-top: 1px solid #FFF;
+}
+
+input[name=topmenu] {display: none;}
+input[name=topmenu] + label {
+  position: relative;
+  top: -3em;
+  max-width: 25%;
+  margin: .5em 0 0 0;
+  display: inline-block;
+  text-decoration: none;
+  padding: .5em 1.5em;
+  line-height: 1.25em;
+  transition: none;
+  border: 1px none #FFF;
+}
+input[name=topmenu]:checked + label {
+  background-color: #333;
+  margin-left: -1px; margin-top: -1px;
+  border-style: solid solid none solid;
+}
+input[name=topmenu]:checked + label + * + input + label { margin-left: -1px; }
 
 .panel#search select { margin-right: .5em; }
 .panel#search:after {
@@ -113,10 +150,15 @@ textarea {
 }
 
 .panel#search, .panel.top {
-  position: relative; top: 0;
   border-style: none none solid none;
+  top: 2.75em;
 }
-.panel.top.switchable { position: absolute; }
+body.playctl .panel#search,
+body.playctl .panel.top { top: 4em; }
+
+
+.panel#search,
+.panel.top.switchable { position: absolute; min-height: 2.5em;}
 .panel#foot, .panel.bottom {
   position: fixed;
   bottom: 0;
@@ -124,25 +166,23 @@ textarea {
 }
 
 .panel.switchable {
+  display: none;
   max-height: 0;
   overflow: hidden;
   margin: 0; padding: 0;
   border-width: 0;
 }
+
+input[name=topmenu]:checked + label + .panel.switchable,
 .panel.switchable:target {
+  display: block;
   max-height: 80%;
-  overflow-y: scroll;
+  overflow-y: auto;
   padding: .25em .5em;
   border-width: 1px;
   z-index: 2;
 }
 
-body.playctl .panel#search,
-body.playctl .panel.top {
-  margin-top: 1.25em;
-  border-top: 1px solid #FFF;
-}
-
 .panel#search > a, .panel#foot > a,
 .panel.top > a, .panel.bottom > a{
   display: inline-block;
@@ -152,7 +192,7 @@ body.playctl .panel.top {
 }
 
 .panel.switchable.top a:first-of-type {
-  display: block;
+  display: block; display: none;
   margin-bottom: .5em;
   border-bottom: 1px solid #FFF;
 }
@@ -171,11 +211,11 @@ body.playctl .panel.top {
   display: inline-block;
   vertical-align: top;
   margin-top: 1em;
-  max-width: 48%;
 }
 
-.panel.switchable > fieldset.additional,
-.panel.switchable > fieldset.description {
+#tagger > fieldset { max-width: 48%;}
+#tagger > fieldset.additional,
+#tagger > fieldset.description {
   max-width: 100%;
 }
 
@@ -187,6 +227,10 @@ body.playctl .panel.top {
   border-radius: .25em;
   padding: .25em .5em;
 }
+#advfilter .filter .help {
+  display: block;
+  height: 0; overflow: hidden;
+}
 #advfilter .filter .tabcontainer {
   position: relative;
   width: 16em;