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