]> git.plutz.net Git - serve0/blobdiff - templates/common.css.sh
display improvements for text browsers and mobile browsers
[serve0] / templates / common.css.sh
index 706ac85672c1bb2207009f07934b0de3cb647cf1..0747d0890390510d576647174bbe2d8839e62976 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014 Paul Hänsch
+# Copyright 2014, 2015 Paul Hänsch
 #
 # This file is part of Serve0
 # 
@@ -28,18 +28,13 @@ body {
   background-color: #000;
   color: #DDD;
 }
+a { color: #EEE; }
+label, .label { font-weight: bold; }
 
 input.tabhandle { display: none; }
 .tabcontent { display: none; }
-input.tabhandle:checked ~ .tabcontent { display: inline-block; }
-
-a {
-  color: #EEE;
-}
-
-label, .label {
-  font-weight: bold;
-}
+input.tabhandle:checked + label.tabhandle + .tabcontent { display: inline-block; }
+input.tabhandle:checked + .tabcontent { display: inline-block; }
 
 textarea {
   display: block;
@@ -67,10 +62,16 @@ textarea {
   border-width: 1px;
   border-style: none none solid none;
 }
-a.panel {
-  font-weight: bold;
+.panel.footer {
+  position: fixed;
+  min-height: 2em;
+  bottom: 0px;
+  border-style: solid none none none;
 }
-a.clearsearch, a.advanced, a.tagger, .pagination_nav {
+
+.panel .help { display: block;}
+a.panel { font-weight: bold; }
+a.clearsearch, a.show, .pagination_nav {
   display: inline;
   border: none;
 }
@@ -80,59 +81,54 @@ a.clearsearch, a.advanced, a.tagger, .pagination_nav {
   padding-top: .125em;
 }
 
-.panel .quicklinks,
-.footer .newtag, .footer input[type=submit] {
-  display: inline-block;
-  vertical-align: top;
-  margin-top: 2em;
-}
-.panel .help {
-  display: block;
+.footer a.panel {
+  border-style: solid none none none;
+  border-width: 1px;
+  margin-top: .5em;
 }
-.footer .newtag select, .footer .newtag .label{
+
+#advfilter { display: none; }
+#advfilter:target {
   display: block;
-  width: 10em;
-}
-.panel .filter .help.conjunction {
-  font-weight: bold;
+  position: absolute;
+  top: 0;
 }
-.panel .filter .label.category {
-  display: block;
+
+#advfilter .quicklinks,
+#advfilter .filter,
+#tagger .newtag,
+#tagger input[type=submit] {
+  display: inline-block;
+  vertical-align: top;
   margin-top: 1em;
 }
-.panel .quicklinks * {
-  display: block
-}
 
-.panel .filter {
-  vertical-align: top;
-  border: solid 1px #FFF; border-radius: .25em;
+#advfilter .filter {
+  border: solid 1px #FFF;
+  border-radius: .25em;
   padding: .25em .5em;
-  margin: 0 0 1em 0;
 }
-.panel > label.tabhandle {
-  display: inline-block;
+#advfilter > label.tabhandle {
   text-align: right;
   width: 4em;
   margin-left: 4em;
 }
-.panel > .tabhandle + label { display: none; }
-.panel > .tabhandle + label + .tabcontent { display: none; }
-.panel > .tabhandle:checked + label.tabhandle + .tabcontent { display: inline-block; }
-.panel > .tabhandle:checked + label.tabhandle + .tabcontent + .tabhandle + label{ display: inline-block; }
-.panel > .tabhandle:checked + label.tabhandle + .tabcontent + .tabhandle:checked + label{ display: none; }
-.panel .filter .tabcontainer {
+#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 .category.tabhandle {
-  display: block;
-}
-.panel .filter input:checked + .category.tabhandle {
+#advfilter .filter .category.tabhandle { display: block; }
+#advfilter .filter input:checked + .category.tabhandle {
   background: #FFF;
   color: #000;
 }
-.panel .filter .category.tabcontent {
+#advfilter .filter .category.tabcontent {
   position: absolute;
   top: 0; right: 0;
   width: 10em;
@@ -140,12 +136,17 @@ a.clearsearch, a.advanced, a.tagger, .pagination_nav {
   min-height: 4em;
 }
 
-.panel .filter.final {
-  display: inline-block;
+#advfilter .filter.final {
   width: 16em;
   margin-left: 1em;
 }
 
+#advfilter .quicklinks {max-width: 100%;}
+#advfilter .quicklinks * {
+  display: block;
+  word-wrap: break-word;
+}
+
 #thumblist {
   width: 100%;
   padding: .5em 0 3em 0;
@@ -185,23 +186,19 @@ a.clearsearch, a.advanced, a.tagger, .pagination_nav {
   margin: .75em .5em;
 }
 
-#advfilter { display: none; }
-#advfilter:target {
-  display: block;
-  position: absolute;
-  top: 0;
-}
-
 #preferences { display: none; }
 #preferences:target { display: block; z-index: 1; }
+
 #tagger { display: none; }
-#tagger:target { display: block; z-index: 1; }
-.footer {
-  position: fixed;
-  min-height: 2em;
-  bottom: 0px;
-  width: 100%;
-  border-style: solid none none none;
+#tagger:target {
+  display: block;
+  z-index: 1;
+}
+
+#tagger .newtag select,
+#tagger .newtag .label{
+  display: block;
+  width: 10em;
 }
 
 #videoview a.panel {