]> git.plutz.net Git - serve0/blobdiff - style.css
list styling
[serve0] / style.css
index c668365c24536725c2c47df76cc14edfbb42bfa3..dd5a23173ab0d702cfcbff1874c53b1aefd00d22 100644 (file)
--- a/style.css
+++ b/style.css
@@ -6,6 +6,7 @@ button { padding: .125em .5em; }
 a { color: inherit; text-decoration: none;}
 
 body {
+  position: relative;
   color: white;
   background-color: black;
 }
@@ -90,18 +91,22 @@ a[href="#advsearch"]:before {
   max-width: 85%;
 }
 
-.itemlist { overflow: hidden; }
+.itemlist { display: block; overflow: hidden; }
 .list {
   position: relative;
-  display: block; float: left;
+  display: inline-block;
   width: 25%;
   min-width: 250px;
-  padding: .5em 1em;
+  padding: .25em;
   overflow: none;
   word-wrap: break-word;
   vertical-align: top;
+  color: black;
 }
-.list, .list a { color: black; }
+.list.dir {
+  padding: .5em 1em;
+}
+
 .list:before {
   position: absolute;
   top: .25em; left: .25em;
@@ -109,14 +114,29 @@ a[href="#advsearch"]:before {
   z-index: -2;
   content: '';
 }
-.list.file:first-of-type { clear: left; }
 .list.dir:before { background-color: #CCF; }
 .list.file:before { background-color: #FDD; }
+.list.file:first-of-type { clear: left; }
 
-.list.file img {
+.list.file a img{
   display: block;
   width: 100%;
+  min-height: 4em;
 }
+.list.file a label{
+  position: absolute;
+  top: 0; padding: .25em .5em;
+  color: white;
+  background-color: rgba(0,0,0,.625);
+}
+
+.list.file .time,
+.list.file .dim {
+  color: white;
+  background-color: #004;
+  padding: .125em .5em;
+}
+
 .pagination {
   display: block;
   text-align: center;
@@ -132,7 +152,6 @@ a[href="#advsearch"]:before {
 }
 
 #editing {
-  position: absolute;
   width: 100%; bottom: 0;
   background-color: #333;
   border-top: 1px solid;