]> git.plutz.net Git - serve0/blob - static/common.css
increase number of quicklinks, make player panel available in tree view
[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: #BBD;
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   position: absolute;
61   border: none;
62   right: 0; bottom: .25em;
63   padding: .125em .5em 0 0;
64 }
65
66 .pagination_nav a {
67   display: none;
68   margin: 1ex 1px;
69   padding: 0 1ex;
70   text-decoration: none;
71 }
72
73 .pagination_nav a.current {
74   display: inline;
75   color: #F66;
76   font-weight: bold;
77 }
78 .pagination_nav:hover {
79   position: fixed;
80   bottom: auto;
81   text-align: right;
82   background-color: #333;
83   border-bottom: 1px solid #FFF;
84   line-height: 1.75em;
85   transition: none;
86   overflow: auto;
87   min-height: 1em;
88   z-index: 2;
89 }
90 .pagination_nav:hover a {
91   display: inline;
92 }
93
94 /* == Panels == */
95
96 .panel {
97   position: relative;
98   display: block;
99   width: 100%;
100   margin: 0;
101   padding: .25em .5em;
102   background-color: #333;
103   border-width: 1px;
104   border-style: none none solid none;
105 }
106
107 a.panel {
108   font-weight: bold;
109   display: inline-block;
110   border: none;
111   width: auto;
112   padding: 0;
113   margin-right: 1em;
114   margin-bottom: 1ex;
115 }
116
117 .panel .help { display: block;}
118
119 /* == Top Panel == */
120 .panel#advfilter {
121   position: absolute;
122   top: 0;
123 }
124
125 /* == Bottom Panels == */
126 .panel#preferences,
127 .panel#tagger,
128 .panel#foot {
129   position: fixed;
130   bottom: 0px;
131   border-style: solid none none none;
132 }
133
134
135 /* == Switchable Panels == */
136
137 form.panel,
138 div.panel {
139   z-index: 1;
140   overflow: hidden;
141   min-height: 0; max-height: 0;
142   padding-top: 0; padding-bottom: 0;
143 }
144
145 .panel#search,
146 .panel#foot {
147   max-height: 100%;
148   z-index: 0;
149   padding: .25em 6em 0 .5em;
150   overflow: visible;
151 }
152
153 .panel:target {
154   max-height: 100%;
155   overflow-y: scroll;
156 }
157 .panel#advfilter:target{ padding-bottom: 1em; }
158
159 /* == Panel Switches == */
160
161 .panel#playctl a.panel,
162 .panel#advfilter a.panel,
163 .panel#preferences a.panel,
164 .panel#tagger a.panel {
165   display: block;
166   border-style: none none solid none;
167   border-width: 1px;
168 }
169 .panel#preferences a.panel,
170 .panel#tagger a.panel {
171   border-style: solid none none none;
172   margin-top: .5em;
173 }
174
175
176 /* == Panel Elements == */
177
178 .panel#advfilter .quicklinks,
179 .panel#advfilter .filter,
180 .panel#tagger .newtag,
181 .panel#tagger input[type=submit],
182 .panel#preferences > * {
183   display: inline-block;
184   vertical-align: top;
185   margin-top: 1em;
186 }
187
188
189 /* == Advanced Filters == */
190
191 /* == Filter Boxes == */
192 #advfilter .filter {
193   border: solid 1px #FFF;
194   border-radius: .25em;
195   padding: .25em .5em;
196 }
197 #advfilter .filter .tabcontainer {
198   position: relative;
199   width: 16em;
200   font-weight:normal;
201 }
202 #advfilter .filter .tabcontainer input + .category.tabhandle {
203   display: block;
204   width: 50%;
205 }
206 #advfilter .filter .tabcontainer input:checked + .category.tabhandle {
207   background: #FFF;
208   color: #000;
209 }
210 #advfilter .filter .tabcontainer .category.tabcontent {
211   position: absolute;
212   top: 0; right: 0;
213   width: 50%;
214   height: 100%;
215   min-height: 4em;
216   border: 2px #FFF solid;
217   border-radius: 0 .25em .25em 0;
218 }
219
220 #advfilter > label.tabhandle {
221   text-align: right;
222   width: 4em;
223   margin-left: 4em;
224 }
225
226 /* == Dynamic Appearance of Boxes == */
227 .panel#advfilter > .tabhandle + label { display: none; }
228 .panel#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle + label { display: inline-block; }
229 .panel#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle:checked + label { display: none; }
230 .panel#advfilter > .tabhandle + label + .tabcontent {
231   display: inline-block;
232   overflow: hidden;
233   max-width: 0;
234   max-height: 0;
235   padding: 0;
236   border: none;
237 }
238 .panel#advfilter > .tabhandle:checked + label + .tabcontent {
239   max-width: 100%;
240   max-height: 100%;
241   padding: .25em .5em;
242   border: solid 1px #FFF;
243 }
244
245 #advfilter .filter.final {
246   width: 16em;
247   margin-left: 1em;
248 }
249
250 #advfilter .quicklinks {width: 100%;}
251 #advfilter .quicklinks :first-child {width: 100%;}
252 #advfilter .quicklinks input { display: none; }
253 #advfilter .quicklinks a {
254   display: none;
255   word-wrap: break-word;
256   margin-left: 10%;
257   margin-bottom: .75em;
258   margin-top: -1.5em;
259 }
260 #advfilter .quicklinks:hover input,
261 #advfilter .quicklinks:hover a {display: block;}
262 #advfilter .quicklinks input:checked,
263 #advfilter .quicklinks input:checked + a { display: none;}
264
265 /* == Thumblist == */
266
267 #thumblist {
268   width: 100%;
269   padding: .5em 0 3em 0;
270   text-align: center;
271 }
272
273 #thumblist .thumb {
274   display: inline-block;
275   text-align: left;
276   width: 90%;
277   padding: 0 .5em;
278   margin: .5%;
279   margin-bottom: .75em;
280   vertical-align: top;
281   word-wrap: break-word;
282 }
283 @media (min-width: 460px){#thumblist .thumb{width: 48%;}}
284 @media (min-width: 620px){#thumblist .thumb{width: 32%;}}
285 @media (min-width: 1004px){#thumblist .thumb{width: 250px; margin: 2px;}}
286
287 #thumblist .thumb img {
288   width: 100%;
289 }
290 #thumblist .thumb h2 {
291   font-size: 1em;
292   font-weight: normal;
293   margin: 0;
294 }
295 #thumblist .thumb a {
296   display: block;
297 }
298 #thumblist .thumb a.alt {
299   display: inline-block;
300   margin-top: .3em;
301 }
302 #thumblist input {
303   margin: .75em .5em;
304 }
305
306 /* == Filelist == */
307
308 #thumblist .file {
309   color: #000;
310   display: inline-block;
311   text-align: left;
312   width: 90%;
313   padding: .5em .5em;
314   margin: .5%;
315   margin-bottom: .75em;
316   vertical-align: top;
317   word-wrap: break-word;
318 }
319 @media (min-width: 460px){#thumblist .file{width: 48%;}}
320 @media (min-width: 620px){#thumblist .file{width: 32%;}}
321 @media (min-width: 1004px){#thumblist .file{width: 250px; margin: 2px;}}
322
323 #thumblist .file.directory { background-color: #BBD; }
324 #thumblist .file.plain { background-color: #111; color: #777; }
325 #thumblist .file.video { background-color: #DBB; }
326
327 .panel#tagger .newtag select,
328 .panel#tagger .newtag .label{
329   display: block;
330   width: 10em;
331 }
332
333 .panel#preferences > fieldset {
334   border: solid 1px;
335   border-radius: .25em;
336 }
337 .panel#preferences > input { display: block; }
338
339 #videoview h1, 
340 #playctl h1 { font-size: 1.25em;}
341 #videoview h1, #videoview > a,
342 #playctl h1, #playctl > a {
343   display: inline-block;
344   margin-right: 1em;
345   padding: 0; margin: .5em 0;
346 }
347 #videoview video {
348   display: block;
349   margin: 0;
350   width: 100%;
351 }
352
353 #playctl form { text-align: center; }
354 #playctl form button {
355   display: inline-block;
356   height: 100%;
357   min-height: 4em;
358   margin: 0 -.75ex .5em 0;
359   background-color: #EEE;
360   border: 1px solid #333;
361   vertical-align: bottom;
362   padding-top: 1em;
363 }
364 #playctl form button[name="seek"],
365 #playctl form button[name="ctl"] { width: 40%;}
366 #playctl form button[name="amp"] { width: 40%; margin-top: 2em;}
367 #playctl form button[name="vol"] { width: 5%; min-height: 1em;}
368 #playctl form button[name="vol"].selected { background-color: #FA6;}
369 #playctl form button[name="vol"][value="100"],
370 #playctl form button[name="vol"][value="0"] { width: 6%;}
371
372 @media (min-width: 460px){
373   #playctl form button {
374     max-width: 4em;
375     min-height: 2em;
376     padding-top: 0em;
377     margin-bottom: 2em;
378   }
379   #playctl form button[name="seek"],
380   #playctl form button[name="ctl"] { width: 16%;}
381   #playctl form button[name="amp"] { width: 15%;}
382   #playctl form button[name="vol"] { width: 3%;}
383   #playctl form button[name="amp"] + br {display: none;}
384 }
385