]> git.plutz.net Git - serve0/blob - static/common.css
more compact video list
[serve0] / static / common.css
1 /* Copyright 2014 - 2016 Paul Hänsch
2
3    This file is part of Serve0
4    
5    Serve0 is free software: you can redistribute it and/or modify
6    it under the terms of the GNU Affero General Public License as published by
7    the Free Software Foundation, either version 3 of the License, or
8    (at your option) any later version.
9    
10    Serve0 is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU Affero General Public License for more details.
14    
15    You should have received a copy of the GNU Affero General Public License
16    along with Serve0  If not, see <http://www.gnu.org/licenses/>. 
17 */
18
19 * {
20   -moz-box-sizing: border-box;
21   box-sizing: border-box;
22   -moz-transition: all .3s linear;
23   transition: all .3s linear;
24 }
25
26 body {
27   padding: 0;
28   margin: 0;
29   background-color: #000;
30   color: #DDD;
31 }
32 a { color: #EEE; }
33 legend, label, .label { font-weight: bold; }
34
35 input.tabhandle { display: none; }
36 .tabcontent { display: none; }
37 input.tabhandle:checked + label.tabhandle + .tabcontent { display: inline-block; }
38 input.tabhandle:checked + .tabcontent { display: inline-block; }
39
40 textarea {
41   display: block;
42   width: 100%;
43 }
44
45 .info {
46   margin: 0;
47   padding: 0 .25em;
48   background-color: rgba(208,208,255,.625 );
49   color: #000;
50   border: #000 1px solid;
51 }
52 .info.tag {
53   line-height: 1.6em;
54   background-color: #DBB;
55   margin-right: -.75ex;
56 }
57
58 .pagination_nav {
59   display: inline-block;
60   float: right;
61   transition: none;
62   border: none;
63   background-color: #333;
64   text-align: right;
65 }
66 .panel:after { content: ''; display: block; clear: both;}
67 .pagination_nav a {
68   display: none;
69   text-decoration: none;
70   padding-left: 1.5ex;
71 }
72 .pagination_nav a.previous,
73 .pagination_nav a.current,
74 .pagination_nav a.next { display: inline-block; }
75 .pagination_nav a.current { color: #F66; font-weight: bold; }
76
77 .pagination_nav:hover {
78   position: absolute;
79   line-height: 1.75em;
80   left: 0; right: 0;
81   padding: .5em 3ex .5em 0;
82   overflow: auto;
83 }
84 #search .pagination_nav:hover {
85   top: 0; bottom: auto;
86   padding-top: 2.5em;
87   border-bottom: 1px solid #FFF;
88 }
89 #foot .pagination_nav:hover {
90   top: auto; bottom: 0;
91   padding-bottom: 2.5em;
92   border-top: 1px solid #FFF;
93 }
94 .pagination_nav:hover a { display: inline; }
95
96 /* == Panels == */
97
98 .panel {
99   position: relative;
100   display: block;
101   width: 100%;
102   margin: 0;
103   padding: .25em .5em;
104   background-color: #333;
105   border-width: 1px;
106   border-style: none none solid none;
107 }
108
109 a.panel {
110   font-weight: bold;
111   display: inline-block;
112   border: none;
113   width: auto;
114   padding: 0;
115   margin: auto 1em 1ex 0;
116 }
117
118 .panel .help { display: block;}
119
120 /* == Top Panel == */
121
122 .panel#advfilter { position: absolute; top: 0; }
123 .panel#search select { margin-right: .5em; }
124
125 body.playctl .panel#advfilter,
126 body.playctl .panel#search {
127   margin-top: 1.25em;
128   border-top: 1px solid #FFF;
129 }
130
131 /* == Bottom Panels == */
132 .panel#preferences,
133 .panel#tagger,
134 .panel#foot {
135   position: fixed;
136   bottom: 0px;
137   border-style: solid none none none;
138 }
139
140
141 /* == Switchable Panels == */
142
143 form.panel,
144 div.panel {
145   z-index: 1;
146   overflow: hidden;
147   min-height: 0; max-height: 0;
148   padding-top: 0; padding-bottom: 0;
149 }
150
151 .panel#search,
152 .panel#foot {
153   max-height: 100%;
154   z-index: 0;
155   padding: .25em .5em 0 .5em;
156   overflow: visible;
157 }
158
159 body.playctl .panel#search,
160 body.playctl .panel#foot { padding-right: .25em; }
161
162 .panel:target {
163   max-height: 100%;
164   overflow-y: scroll;
165 }
166 .panel#advfilter:target{ padding-bottom: 1em; }
167
168 /* == Panel Switches == */
169
170 .panel#playctl a.panel,
171 .panel#advfilter a.panel,
172 .panel#preferences a.panel,
173 .panel#tagger a.panel {
174   display: block;
175   border-style: none none solid none;
176   border-width: 1px;
177 }
178 .panel#preferences a.panel,
179 .panel#tagger a.panel {
180   border-style: solid none none none;
181   margin-top: .5em;
182 }
183
184
185 /* == Panel Elements == */
186
187 .panel#advfilter .quicklinks,
188 .panel#advfilter .filter,
189 .panel#tagger .newtag,
190 .panel#tagger input[type=submit],
191 .panel#preferences > * {
192   display: inline-block;
193   vertical-align: top;
194   margin-top: 1em;
195 }
196
197
198 /* == Advanced Filters == */
199
200 /* == Filter Boxes == */
201 #advfilter .filter {
202   border: solid 1px #FFF;
203   border-radius: .25em;
204   padding: .25em .5em;
205 }
206 #advfilter .filter .tabcontainer {
207   position: relative;
208   width: 16em;
209   font-weight:normal;
210 }
211 #advfilter .filter .tabcontainer input + .category.tabhandle {
212   display: block;
213   width: 50%;
214 }
215 #advfilter .filter .tabcontainer input:checked + .category.tabhandle {
216   background: #FFF;
217   color: #000;
218 }
219 #advfilter .filter .tabcontainer .category.tabcontent {
220   position: absolute;
221   top: 0; right: 0;
222   width: 50%;
223   height: 100%;
224   min-height: 4em;
225   border: 2px #FFF solid;
226   border-radius: 0 .25em .25em 0;
227 }
228
229 #advfilter > label.tabhandle {
230   text-align: right;
231   width: 4em;
232   margin-left: 4em;
233 }
234
235 /* == Dynamic Appearance of Boxes == */
236 .panel#advfilter > .tabhandle + label { display: none; }
237 .panel#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle + label { display: inline-block; }
238 .panel#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle:checked + label { display: none; }
239 .panel#advfilter > .tabhandle + label + .tabcontent {
240   display: inline-block;
241   overflow: hidden;
242   max-width: 0;
243   max-height: 0;
244   padding: 0;
245   border: none;
246 }
247 .panel#advfilter > .tabhandle:checked + label + .tabcontent {
248   max-width: 100%;
249   max-height: 100%;
250   padding: .25em .5em;
251   border: solid 1px #FFF;
252 }
253
254 #advfilter .filter.final {
255   width: 16em;
256   margin-left: 1em;
257 }
258
259 #advfilter .quicklinks {width: 100%;}
260
261 /* == Recent filters == */
262
263 p.quicklinks { padding-bottom: 3em; }
264 p.quicklinks :first-child {width: 100%;}
265 p.quicklinks input { display: block; }
266 p.quicklinks a {
267   display: block;
268   word-wrap: break-word;
269   margin-left: 10%;
270   margin-bottom: .75em;
271   margin-top: -1.5em;
272 }
273 p.quicklinks input:checked,
274 p.quicklinks input:checked + a { display: none;}
275
276 /* == Thumblist == */
277
278 #thumblist {
279   width: 100%;
280   padding: .5em 0 3em 0;
281   text-align: center;
282 }
283
284 #thumblist .thumb {
285   position: relative;
286   display: inline-block;
287   text-align: left;
288   width: 90%;
289   padding: 0 .5em;
290   margin: .5%;
291   margin-bottom: .75em;
292   vertical-align: top;
293   word-wrap: break-word;
294 }
295 @media (min-width: 460px){#thumblist .thumb{width: 48%;}}
296 @media (min-width: 620px){#thumblist .thumb{width: 32%;}}
297 @media (min-width: 1004px){#thumblist .thumb{width: 250px; margin: 2px;}}
298
299 #thumblist .thumb img {
300   width: 100%;
301   margin: 0; padding: 0;
302 }
303 #thumblist .thumb h2 {
304   position: absolute;
305   top: 0; width: 100%;
306   font-size: 1.125em;
307   font-weight: normal;
308   padding: .5ex .5em;
309   margin: 0;
310   border-bottom: 1px solid #333;
311   background: rgba(0,0,0,.5);
312 }
313 #thumblist .thumb .property {
314   position: absolute; left: .25em;
315   margin-top: -1.5em;
316 }
317 #thumblist .thumb .property:nth-of-type(2) { left: 5em;}
318 #thumblist .thumb button {
319   display: block;
320   width: 100%;
321   margin: 0; padding: 0;
322   border: none;
323   line-height: 0;
324   background-color: transparent;
325 }
326 #thumblist input {
327   margin: .75em .5em;
328 }
329
330 /* == Filelist == */
331
332 #thumblist .file {
333   color: #000;
334   display: inline-block;
335   text-align: left;
336   width: 90%;
337   padding: .5em .5em;
338   margin: .5%;
339   margin-bottom: .75em;
340   vertical-align: top;
341   word-wrap: break-word;
342 }
343 @media (min-width: 460px){#thumblist .file{width: 48%;}}
344 @media (min-width: 620px){#thumblist .file{width: 32%;}}
345 @media (min-width: 1004px){#thumblist .file{width: 250px; margin: 2px;}}
346
347 #thumblist .file.directory { background-color: #BBD; }
348 #thumblist .file.plain { background-color: #111; color: #777; }
349 #thumblist .file.video { background-color: #DBB; }
350
351 .panel#tagger .newtag { width: 50%;}
352 .panel#tagger .newtag.additional,
353 .panel#tagger .newtag.description { width: 100%;}
354 .panel#tagger .newtag select,
355 .panel#tagger .newtag .label{
356   display: block;
357   width: 100%;
358 }
359 .panel#tagger input[type=submit],
360 .panel#tagger button {
361   min-width: 10em; height: 3em;
362 }
363 @media (min-width: 460px){
364 .panel#tagger .newtag { width: 10em;}
365 .panel#tagger .newtag.additional,
366 .panel#tagger .newtag.description { width: 20em; max-width: 40%; }
367 }
368
369 .panel#preferences > fieldset {
370   border: solid 1px;
371   border-radius: .25em;
372 }
373 .panel#preferences > input { display: block; }
374
375 /* == Client side player == */
376
377 #videoview h1, 
378 #playctl h1 { font-size: 1.25em;}
379 #videoview h1, #videoview > a,
380 #playctl h1, #playctl > a {
381   display: inline-block;
382   margin-right: 1em;
383   padding: 0; margin: .5em 0;
384 }
385 #videoview video {
386   display: block;
387   margin: 0;
388   width: 100%;
389 }
390
391 /* == Server side player == */
392
393 form.playctl fieldset {
394   display: block;
395   position: relative;
396   width: 100%;
397   border: none;
398   text-align: center;
399 }
400 form.playctl fieldset.playback  { height: 12em; }
401 form.playctl fieldset.playback button {
402   position: absolute;
403   height: 6em;
404   padding-top: 1em;
405   background-color: #EEE;
406   border: 1px solid #333;
407 }
408 form.playctl fieldset.playback button[value="-60"] {top: 6em; left: 0; width: 20%;}
409 form.playctl fieldset.playback button[value="-10"] {top: 6em; left: 20%; width: 30%;}
410 form.playctl fieldset.playback button[value="stop"] {top: 0; left: 0; width: 40%;}
411 form.playctl fieldset.playback button[value="pause"] {top: 0; right: 0; width: 60%;}
412 form.playctl fieldset.playback button[value="+10"] {top: 6em; right: 20%; width: 30%;}
413 form.playctl fieldset.playback button[value="+60"] {top: 6em; right: 0; width: 20%;}
414
415 form.playctl fieldset.volume { height: 3em; }
416 form#advctl.playctl fieldset.volume { height: 4em; }
417 form.playctl fieldset.volume button[name="amp"] {position: absolute; width: 50%; height: 4em; top: 0;}
418 form.playctl fieldset.volume button[value="off"] {left:0;}
419 form.playctl fieldset.volume button[value="on"] {right:0;}
420 form.playctl fieldset.volume button[name="vol"] {position: relative; display: inline-block; width: 4%;}
421 form.playctl fieldset.volume button[name="vol"].selected { background-color: #FA6;}
422 form.playctl fieldset.volume button[name="vol"][value="100"],
423 form.playctl fieldset.volume button[name="vol"][value="0"] { width: 4%;}
424 form.playctl fieldset.pasink button { width: 100%; height: 3em;}
425
426 span.progress {
427   display: block;
428   position: fixed;
429   top: 0em;
430   width: 100%; left:0; right: 0;
431   color: white;
432   background-color: black;
433   border-top: 1px solid white;
434   padding: 0;
435   height: 1em;
436   overflow: hidden;
437 }
438 span.progress > span {
439   display: block;
440   position: absolute;
441   text-align: center;
442   background-color: #333;
443   min-width: 2em;
444 }