]> git.plutz.net Git - serve0/blobdiff - style.css
add space to keep tags visible in video view
[serve0] / style.css
index 8de1b342016a62e78d5815006d437d2c540d2e52..b2412a24575d5e76a427ce08324f9163d97e1c55 100644 (file)
--- a/style.css
+++ b/style.css
@@ -69,12 +69,13 @@ a[href="#advsearch"]:before {
 
 #prefs, #bookmarks, #multitag, #advsearch {
   display: block; position: absolute;
-  height: 0; width: 100%; max-width: 100%;
+  max-height: 0; width: 100%; max-width: 100%;
   margin-top: -1px;
   padding: 0 1em;
   border: 1px none;
   overflow: hidden;
   background-color: #333;
+  transition: max-height .3s linear;
   z-index: 1;
 }
 #bookmarks {
@@ -93,28 +94,25 @@ a[href="#advsearch"]:before {
 
 #advsearch:target, #multitag:target,
 #prefs:target, #bookmarks:target {
-  height: auto; overflow: visible;
+  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: absolute;
-  top: -2em; line-height: 2em;
-  padding: 0 .75em;
+  line-height: 2em;
   font-weight: bold;
   background-color: inherit;
-  left: 0; right: 0;
 }
-#prefs a[href="#"] { width: 2.5em; left: auto; }
-#bookmarks a[href="#"] { width: 2.5em; right: auto; }
+-#prefs a[href="#"] { width: 2.5em; left: auto; }
+-#bookmarks a[href="#"] { width: 2.5em; right: auto; }
 #advsearch a[href="#"] { border-bottom: 1px solid; }
-#multitag a[href="#"] { position: normal; border-top: 1px solid;}
 
 
 /* ###  Preferences Drawer  ### */
@@ -170,7 +168,21 @@ a[href="#advsearch"]:before {
 
 #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 {
@@ -188,23 +200,18 @@ 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;
-  position: relative;
-  width: 100%;
+  min-width: 200px; max-width: 100%;
   margin: 0 .5% 1em .5%;
-  min-height: 12em;
-  overflow: hidden;
-  vertical-align: top;
+  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%; min-width: 200px;
+  width: 49%;
 } }
 @media (min-width: 660px){
 #advsearch .submit,
@@ -298,6 +305,7 @@ a[href="#advsearch"]:before {
   padding: .25em .5em;
   word-break: break-word;
   background-color: #222;
+  overflow: hidden;
 }
 
 .list.file .time, .list.file .dim {
@@ -347,6 +355,37 @@ a[href="#advsearch"]:before {
 #index input, #index button { margin-left: 1em;}
 
 
+/* ###  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{