]> git.plutz.net Git - serve0/blobdiff - style.css
style cleanup, unification
[serve0] / style.css
index d735b8b762920a5bc2a9e237a4b597b106211f2a..e31117ea5be0244b30909f49685ad60c43ac252b 100644 (file)
--- a/style.css
+++ b/style.css
@@ -1,6 +1,7 @@
 * {
   box-sizing: border-box;
   margin: 0; padding: 0;
+  text-align: left;
 }
 button { padding: .125em .5em; }
 a { color: inherit; text-decoration: none;}
@@ -26,23 +27,6 @@ body {
   min-height: 100%;
 }
 
-#prefs, #bookmarks,
-#multitag, #advsearch {
-  display: block;
-  position: relative;
-  overflow: hidden;
-  height: 0;
-  text-align: left;
-  background-color: #333;
-}
-#prefs:target,
-#advsearch:target,
-#multitag:target,
-#bookmarks:target {
-  height: auto;
-  overflow: visible;
-}
-
 #navigation{
   text-align: center;
   background-color: #333;
@@ -72,29 +56,51 @@ a[href="#advsearch"]:before {
   margin: 0 .5em;
 }
 
-#prefs {
-  position: absolute;
-  right: 0; width: 13em;
-  margin-left: auto;
+#prefs, #bookmarks, #multitag, #advsearch {
+  display: block; position: absolute;
+  height: 0; max-width: 100%;
   margin-top: -1px;
-  border: 1px solid;
-  border-top: none;
-  border-right: none;
   padding: 0 1em;
-  z-index: 1;
+  border: 1px none;
+  overflow: hidden;
+  background-color: #333;
+}
+#bookmarks {
+  left: 0; width: 30%;
+  min-width: 300px;
+  margin-right: auto;
 }
+#prefs {
+  right: 0; width: 20%;
+  min-width: 200px;
+  margin-left: auto;
+}
+#advsearch { text-align: center; }
 
+#advsearch:target, #multitag:target,
+#prefs:target, #bookmarks:target {
+  height: auto;
+  overflow: visible;
+}
+#advsearch:target { border-style: none none solid none; }
+#prefs:target { border-style: none none solid solid; }
+#bookmarks:target { border-style: none solid solid none; }
+
+#advsearch a[href="#"],
+#multitag a[href="#"],
+#bookmarks a[href="#"],
 #prefs a[href="#"] {
   display: block;
   position: relative;
-  top: -1.125em;
-  margin-right: -.5em;
-  margin-bottom: -1em;
-  text-align: right;
-  font-size: 1.5em;
-  padding-right: .25em;
+  top: -2em; line-height: 2em;
+  margin: 0 -1em -1.5em -1em;
+  padding: 0 .75em;
+  font-weight: bold;
   background-color: inherit;
 }
+#prefs a[href="#"] { text-align: right; }
+#advsearch a[href="#"] { border-bottom: 1px solid; }
+#multitag a[href="#"] { top: -1em; line-height: 1em; }
 
 #prefs label[for=prefs_ps] {
   font-weight: bold;
@@ -114,29 +120,12 @@ a[href="#advsearch"]:before {
   max-width: 85%;
 }
 
-#advsearch:target {
-  display: block;
-  position: relative;
-  text-align: center;
-  border-bottom: 1px solid;
-}
-#advsearch a[href="#"] {
-  display: block;
-  line-height: 2em;
-  background-color: inherit;
-  border-bottom: 1px solid;
-  text-align: left;
-  padding-left: .5em;
-  position: relative;
-  top: -2em;
-}
 #advsearch .help {
   display: block;
-  margin: -1em 1em 1em 1em;
+  margin: -1em .625em 1em .625em;
   padding: .5em 1em;
   background-color: #444;
   line-height: 1.5em;
-  text-align: left;
 }
 
 #advsearch input.and {display: none;}
@@ -148,7 +137,7 @@ a[href="#advsearch"]:before {
   display: inline-block;
   vertical-align: top;
   margin: 0 .5% 1em .5%;
-  width: 4%;
+  width: 4%; min-width: 4em;
   padding: .5em 0;
   text-align: center;
   font-weight: bold;
@@ -159,6 +148,7 @@ a[href="#advsearch"]:before {
 #advsearch input.and:checked + label:nth-of-type(2),
 #advsearch input.and:checked + label { display: none; }
 
+#advsearch .submit,
 #advsearch input.and + label + .select:first-of-type,
 #advsearch input.and:checked + label + .select {
   display: inline-block;
@@ -168,9 +158,12 @@ a[href="#advsearch"]:before {
   min-width: 200px;
   min-height: 12em;
   overflow: hidden;
-  text-align: left;
+  vertical-align: top;
 }
 
+#advsearch .submit { min-height: 0; }
+#advsearch .submit * { width: 50%; }
+
 #advsearch .select input.pol {
   margin: .5em .25em 0 .5em;
 }
@@ -273,6 +266,7 @@ a[href="#advsearch"]:before {
   background-color: #4F4;
 }
 
+.itemlist,
 .pagination {
   display: block;
   text-align: center;
@@ -288,7 +282,6 @@ a[href="#advsearch"]:before {
 }
 
 #editing {
-  text-align: left;
   width: 100%;
   background-color: #333;
   border-top: 1px solid;
@@ -298,12 +291,6 @@ a[href="#advsearch"]:before {
 #index label:first-of-type { font-weight: bold; }
 #index input, #index button { margin-left: 1em;}
 
-#multitag:target a[href="#"] {
-  position: relative;
-  top: -1em;
-  padding-right: 10em;
-  background-color: inherit;
-}
 #multitag fieldset{
   display: inline-block;
   width: 25%; min-width: 250px;