]> git.plutz.net Git - serve0/blobdiff - static/common.css
simplified styling
[serve0] / static / common.css
index 8e973c885b636278130551adb81fbb2c38126010..e6de713b632779c9205bb87b3c5db8df9f86e4d7 100644 (file)
@@ -19,8 +19,8 @@
 * {
   -moz-box-sizing: border-box;
   box-sizing: border-box;
-  -moz-transition: all .3s linear;
-  transition: all .3s linear;
+  -moz-transition: all .25s linear;
+  transition: all .25s linear;
 }
 
 body {
@@ -45,7 +45,7 @@ textarea {
 .info {
   margin: 0;
   padding: 0 .25em;
-  background-color: #BBD;
+  background-color: rgba(208,208,255,.625 );
   color: #000;
   border: #000 1px solid;
 }
@@ -57,13 +57,11 @@ textarea {
 
 .pagination_nav {
   display: inline-block;
-  position: absolute;
-  right: 2ex; bottom: .25em;
+  float: right;
   transition: none;
   border: none;
   background-color: #333;
   text-align: right;
-  line-height: 1.75em;
 }
 .pagination_nav a {
   display: none;
@@ -76,6 +74,8 @@ textarea {
 .pagination_nav a.current { color: #F66; font-weight: bold; }
 
 .pagination_nav:hover {
+  position: absolute;
+  line-height: 1.75em;
   left: 0; right: 0;
   padding: .5em 3ex .5em 0;
   overflow: auto;
@@ -92,109 +92,92 @@ textarea {
 }
 .pagination_nav:hover a { display: inline; }
 
+
 /* == Panels == */
 
-.panel {
-  position: relative;
+.panel#search select { margin-right: .5em; }
+.panel#search:after {
+  display: block; content: '';
+  clear: both;
+}
+
+.panel#search, .panel#foot,
+.panel.top, .panel.bottom {
   display: block;
   width: 100%;
   margin: 0;
   padding: .25em .5em;
   background-color: #333;
   border-width: 1px;
-  border-style: none none solid none;
-}
-
-a.panel {
-  font-weight: bold;
-  display: inline-block;
-  border: none;
-  width: auto;
-  padding: 0;
-  margin-right: 1em;
-  margin-bottom: 1ex;
-}
-
-.panel .help { display: block;}
-
-/* == Top Panel == */
-.panel#advfilter {
-  position: absolute;
-  top: 0;
+  z-index: 1;
 }
 
-body.playctl .panel#advfilter,
-body.playctl .panel#search {
-  margin-top: 1.25em;
-  border-top: 1px solid #FFF;
+.panel#search, .panel.top {
+  position: relative; top: 0;
+  border-style: none none solid none;
 }
-
-/* == Bottom Panels == */
-.panel#preferences,
-.panel#tagger,
-.panel#foot {
+.panel.top.switchable { position: absolute; }
+.panel#foot, .panel.bottom {
   position: fixed;
-  bottom: 0px;
+  bottom: 0;
   border-style: solid none none none;
 }
 
-
-/* == Switchable Panels == */
-
-form.panel,
-div.panel {
-  z-index: 1;
+.panel.switchable {
+  max-height: 0;
   overflow: hidden;
-  min-height: 0; max-height: 0;
-  padding-top: 0; padding-bottom: 0;
+  margin: 0; padding: 0;
+  border-width: 0;
 }
-
-.panel#search,
-.panel#foot {
-  max-height: 100%;
-  z-index: 0;
-  padding: .25em 6em 0 .5em;
-  overflow: visible;
+.panel.switchable:target {
+  max-height: 80%;
+  overflow-y: scroll;
+  padding: .25em .5em;
+  border-width: 1px;
+  z-index: 2;
 }
 
 body.playctl .panel#search,
-body.playctl .panel#foot { padding-right: .25em; }
-
-.panel:target {
-  max-height: 100%;
-  overflow-y: scroll;
+body.playctl .panel.top {
+  margin-top: 1.25em;
+  border-top: 1px solid #FFF;
 }
-.panel#advfilter:target{ padding-bottom: 1em; }
 
-/* == Panel Switches == */
+.panel#search > a, .panel#foot > a,
+.panel.top > a, .panel.bottom > a{
+  display: inline-block;
+  font-weight: bold;
+  text-decoration: none;
+  margin: .25em .5em 0 0;
+}
 
-.panel#playctl a.panel,
-.panel#advfilter a.panel,
-.panel#preferences a.panel,
-.panel#tagger a.panel {
+.panel.switchable.top a:first-of-type {
   display: block;
-  border-style: none none solid none;
-  border-width: 1px;
+  margin-bottom: .5em;
+  border-bottom: 1px solid #FFF;
 }
-.panel#preferences a.panel,
-.panel#tagger a.panel {
-  border-style: solid none none none;
+.panel.switchable.bottom a:last-of-type {
+  display: block;
   margin-top: .5em;
+  border-top: 1px solid #FFF;
 }
 
 
 /* == Panel Elements == */
 
-.panel#advfilter .quicklinks,
-.panel#advfilter .filter,
-.panel#tagger .newtag,
-.panel#tagger input[type=submit],
-.panel#preferences > * {
+.panel.switchable > fieldset,
+.panel.switchable > input[type=submit] {
+  border: none;
   display: inline-block;
   vertical-align: top;
   margin-top: 1em;
+  max-width: 48%;
 }
 
+.panel.switchable > fieldset.additional,
+.panel.switchable > fieldset.description {
+  max-width: 100%;
+}
 
 /* == Advanced Filters == */
 
@@ -257,7 +240,6 @@ body.playctl .panel#foot { padding-right: .25em; }
   margin-left: 1em;
 }
 
-#advfilter .quicklinks {width: 100%;}
 
 /* == Recent filters == */
 
@@ -283,6 +265,7 @@ p.quicklinks input:checked + a { display: none;}
 }
 
 #thumblist .thumb {
+  position: relative;
   display: inline-block;
   text-align: left;
   width: 90%;
@@ -301,10 +284,20 @@ p.quicklinks input:checked + a { display: none;}
   margin: 0; padding: 0;
 }
 #thumblist .thumb h2 {
-  font-size: 1em;
+  position: absolute;
+  top: 0; width: 100%;
+  font-size: 1.125em;
   font-weight: normal;
+  padding: .5ex .5em;
   margin: 0;
+  border-bottom: 1px solid #333;
+  background: rgba(0,0,0,.5);
+}
+#thumblist .thumb .property {
+  position: absolute; left: .25em;
+  margin-top: -1.5em;
 }
+#thumblist .thumb .property:nth-of-type(2) { left: 5em;}
 #thumblist .thumb button {
   display: block;
   width: 100%;