]> git.plutz.net Git - serve0/blobdiff - style.css
add space to keep tags visible in video view
[serve0] / style.css
index d735b8b762920a5bc2a9e237a4b597b106211f2a..b2412a24575d5e76a427ce08324f9163d97e1c55 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,75 +27,95 @@ body {
   min-height: 100%;
 }
 
-#prefs, #bookmarks,
-#multitag, #advsearch {
-  display: block;
+
+/* ###  Main Page Elements ### */
+
+#navigation{
   position: relative;
-  overflow: hidden;
-  height: 0;
-  text-align: left;
+  text-align: center;
+  border-bottom: 1px solid;
   background-color: #333;
 }
-#prefs:target,
-#advsearch:target,
-#multitag:target,
-#bookmarks:target {
-  height: auto;
-  overflow: visible;
-}
 
-#navigation{
-  text-align: center;
+#editing,
+#multitag {
+  position: fixed;
+  bottom: 0; width: 100%;
+  padding: .25em 0;
+  border-top: 1px solid;
   background-color: #333;
-  padding: .25em;
-  border-bottom: 1px solid;
 }
 
 #search { display: inline; }
 
-a[href="#prefs"] {
-  position: absolute;
-  top: 0; right: .25em;
-  font-size: 1.5em;
-}
-
+a[href="#prefs"],
 a[href="#bookmarks"] {
   position: absolute;
-  top: 0; left: .25em;
+  top: 0;
+  margin: 0 .25em;
   font-size: 1.5em;
 }
+a[href="#prefs"] { right: 0; }
+a[href="#bookmarks"] { left: 0; }
 
-a[href="#advsearch"] {
-  margin-left: .5em;
-}
+a[href="#advsearch"] { margin-left: .5em; }
 a[href="#advsearch"]:before {
   content: '\25b8';
   margin: 0 .5em;
 }
 
-#prefs {
-  position: absolute;
-  right: 0; width: 13em;
-  margin-left: auto;
+
+/* ###  Expandable Drawers  ### */
+
+#prefs, #bookmarks, #multitag, #advsearch {
+  display: block; position: absolute;
+  max-height: 0; width: 100%; max-width: 100%;
   margin-top: -1px;
-  border: 1px solid;
-  border-top: none;
-  border-right: none;
   padding: 0 1em;
+  border: 1px none;
+  overflow: hidden;
+  background-color: #333;
+  transition: max-height .3s linear;
   z-index: 1;
 }
+#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 {
+  max-height: 25em; overflow-y: scroll;
+}
+#advsearch:target { border-style: none none solid none; }
+#prefs:target { border-style: none none solid solid; }
+#bookmarks:target { border-style: none solid solid none; }
+#multitag:target { border-style: solid none none 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;
+  line-height: 2em;
+  font-weight: bold;
   background-color: inherit;
 }
+-#prefs a[href="#"] { width: 2.5em; left: auto; }
+-#bookmarks a[href="#"] { width: 2.5em; right: auto; }
+#advsearch a[href="#"] { border-bottom: 1px solid; }
+
+
+/* ###  Preferences Drawer  ### */
 
 #prefs label[for=prefs_ps] {
   font-weight: bold;
@@ -114,41 +135,61 @@ a[href="#advsearch"]:before {
   max-width: 85%;
 }
 
-#advsearch:target {
-  display: block;
-  position: relative;
-  text-align: center;
-  border-bottom: 1px solid;
+
+/* ###  Bookmarks Drawer  ### */
+
+#bookmarks input,
+#bookmarks button {
+  margin-bottom: 1.25em;
 }
-#advsearch a[href="#"] {
+#bookmarks label {
   display: block;
-  line-height: 2em;
-  background-color: inherit;
-  border-bottom: 1px solid;
-  text-align: left;
-  padding-left: .5em;
-  position: relative;
-  top: -2em;
+  font-weight: bold;
+  word-break: break-word;
+  overflow: hidden;
+}
+#bookmarks a.link {
+  display: inline-block;
+  font-size: .75em;
+  text-decoration: underline;
+  margin: 0 1em 1.25em 0;
 }
+
+
+/* ###  Advance Search Drawer  ###*/
+
 #advsearch .help {
   display: block;
-  margin: -1em 1em 1em 1em;
+  margin: 1em .5em 1em .5em;
   padding: .5em 1em;
   background-color: #444;
   line-height: 1.5em;
-  text-align: left;
 }
 
 #advsearch input.and {display: none;}
 #advsearch input.and + label {display: none}
-#advsearch input.and + label + .select {display: none;}
+#advsearch input.and + label + .select {
+  display: inline-block;
+  position: relative;
+  width: 100%; min-width: 0; max-width: 0;
+  min-height: 12em;
+  overflow: hidden;
+  vertical-align: top;
+  border: none;
+  transition: max-width .3s linear;
+}
+#advsearch .submit {
+  display: inline-block;
+  width: 100%;
+  vertical-align: top;
+}
 
 #advsearch input.and + label:nth-of-type(2),
 #advsearch input.and:checked + label + .select + input + label {
   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;
@@ -161,16 +202,39 @@ a[href="#advsearch"]:before {
 
 #advsearch input.and + label + .select:first-of-type,
 #advsearch input.and:checked + label + .select {
-  display: inline-block;
-  position: relative;
-  width: 19%;
+  min-width: 200px; max-width: 100%;
   margin: 0 .5% 1em .5%;
-  min-width: 200px;
-  min-height: 12em;
-  overflow: hidden;
-  text-align: left;
+  border: 1px solid;
 }
 
+@media (min-width: 460px){
+#advsearch .submit,
+#advsearch input.and + label + .select:first-of-type,
+#advsearch input.and:checked + label + .select {
+  width: 49%;
+} }
+@media (min-width: 660px){
+#advsearch .submit,
+#advsearch input.and + label + .select:first-of-type,
+#advsearch input.and:checked + label + .select {
+  width: 32%;
+} }
+@media (min-width: 860px){
+#advsearch .submit,
+#advsearch input.and + label + .select:first-of-type,
+#advsearch input.and:checked + label + .select {
+  width: 24%;
+} }
+@media (min-width: 1060px){
+#advsearch .submit,
+#advsearch input.and + label + .select:first-of-type,
+#advsearch input.and:checked + label + .select {
+  width: 19%;
+} }
+
+#advsearch .submit { min-height: 0; }
+#advsearch .submit * { width: 50%; }
+
 #advsearch .select input.pol {
   margin: .5em .25em 0 .5em;
 }
@@ -204,112 +268,137 @@ a[href="#advsearch"]:before {
   width: 50%;
 }
 
+
+/* ###  Item Listing  ### */
+
 .list {
   position: relative;
   display: inline-block;
-  width: 25%;
-  min-width: 250px;
-  padding: .25em;
-  overflow: none;
-  word-wrap: break-word;
+  width: 100%;
+  padding: .375em;
   vertical-align: top;
-  color: black;
   overflow: hidden;
 }
-.list.dir {
-  padding: .5em 1em;
-}
 
+.list.dir { padding: .5em 1em; }
 .list:before {
   position: absolute;
   top: .25em; left: .25em;
   bottom: .25em; right: .25em;
-  z-index: -2;
   content: '';
+  z-index: -2;
 }
-.list.dir:before { background-color: #CCF; }
-.list.file:before { background-color: #FDD; }
+.list.dir:before { background-color: #CCF; color: black; }
+.list.file:before { background-color: #333; }
 .list.file:first-of-type { clear: left; }
 
 .list.file a img{
   display: block;
   width: 100%;
   min-height: 4em;
+  border-bottom: 1px solid black;
 }
-.list.file a label{
-  position: absolute;
-  top: 0; padding: .25em .5em;
-  color: white;
-  background-color: rgba(0,0,0,.625);
+.list.file a + label{
+  display: inline-block;
+  width: 100%; max-height: 2.5em;
+  margin-right: -10em;
+  padding: .25em .5em;
+  word-break: break-word;
+  background-color: #222;
+  overflow: hidden;
 }
 
-.list.file .time,
-.list.file .dim,
-.list.file .tag,
-.list.file label {
+.list.file .time, .list.file .dim {
+  float: right; position: relative;
   display: inline-block;
-  margin-top: .125em;
-}
-.list.file .time,
-.list.file .dim {
-  color: white;
-  background-color: #004;
-  padding: .125em .5em;
+  top: -1.5em; bottom: 1.5;
+  margin-right: .125em;
+  padding: .125em .25em;
+  background-color: rgba(0,0,0,.75);
 }
-.list.file .tag {
-  color: white;
-  background-color: #400;
+
+.list.file .tag,
+.list.file input + label {
+  display: inline-block;
+  margin: .125em -.125em 0 0;
   padding: .125em .5em;
+  color: black;
+  background-color: #DCC;
 }
 
 .list.file input[type="checkbox"] { display: none; }
 .list.file input[type="checkbox"] + label {
   border: 1px solid;
-  border-radius: .125em;
-  padding: 0 .25em;
-  background-color: #FBB;
+  background-color: #ECC;
 }
 .list.file input[type="checkbox"]:checked + label {
-  background-color: #4F4;
+  background-color: #8F8;
 }
 
+.itemlist,
 .pagination {
   display: block;
   text-align: center;
   margin-top: 1em;
 }
+.pagination { margin-bottom: 3em;}
 .page {
   display: inline-block;
+  margin: 0 .125em;
   padding: .25em .5em;
   color: black;
   background-color: #FDD;
   border: 1px solid;
-  margin: 0 .125em;
-}
-
-#editing {
-  text-align: left;
-  width: 100%;
-  background-color: #333;
-  border-top: 1px solid;
-  padding: .25em;
 }
 
 #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;
+
+/* ###  Video View  ### */
+
+body#view { padding-bottom: 6em; }
+
+#view h1 {
+  max-width: 100%;
+  margin: 1em 0; padding: 0 .5em;
+  font-size: 1.25em;
+  font-weight: bold;
+  word-break: break-word;
+  text-decoration: none;
 }
+
+#view #mainvideo {
+  display: inline;
+  width: 100%;
+  max-height: 70%;
+}
+
+#view .time, #view .dim,
+#view .tag {
+  margin-right: -.125em;
+  padding: .125em .25em;
+  color: black;
+}
+#view .time,
+#view .dim { background-color: #CCD; }
+#view .tag { background-color: #DCC; }
+
+
+
+/* ###  Multi Tagging Drawer  ### */
+
 #multitag fieldset{
   display: inline-block;
-  width: 25%; min-width: 250px;
+  width: 100%;
   vertical-align: top;
   padding: 0 .25em;
   border: none;
 }
+
+@media (min-width: 520px) { .list, #multitag fieldset { width: 50%; min-width: 250px; } }
+@media (min-width: 760px) { .list, #multitag fieldset { width: 33%; } }
+@media (min-width: 1020px){ .list, #multitag fieldset { width: 25%; } }
+
 #multitag fieldset * { width: 100%; }
 #multitag fieldset button { width: 50%; }