]> git.plutz.net Git - serve0/blob - static/common.css
separate quicklinks page
[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
252 .quicklinks :first-child {width: 100%;}
253 .quicklinks input { display: block; }
254 .quicklinks a {
255   display: block;
256   word-wrap: break-word;
257   margin-left: 10%;
258   margin-bottom: .75em;
259   margin-top: -1.5em;
260 }
261 .quicklinks input:checked,
262 .quicklinks input:checked + a { display: none;}
263
264 /* == Thumblist == */
265
266 #thumblist {
267   width: 100%;
268   padding: .5em 0 3em 0;
269   text-align: center;
270 }
271
272 #thumblist .thumb {
273   display: inline-block;
274   text-align: left;
275   width: 90%;
276   padding: 0 .5em;
277   margin: .5%;
278   margin-bottom: .75em;
279   vertical-align: top;
280   word-wrap: break-word;
281 }
282 @media (min-width: 460px){#thumblist .thumb{width: 48%;}}
283 @media (min-width: 620px){#thumblist .thumb{width: 32%;}}
284 @media (min-width: 1004px){#thumblist .thumb{width: 250px; margin: 2px;}}
285
286 #thumblist .thumb img {
287   width: 100%;
288 }
289 #thumblist .thumb h2 {
290   font-size: 1em;
291   font-weight: normal;
292   margin: 0;
293 }
294 #thumblist .thumb a {
295   display: block;
296 }
297 #thumblist .thumb a.alt {
298   display: inline-block;
299   margin-top: .3em;
300 }
301 #thumblist input {
302   margin: .75em .5em;
303 }
304
305 /* == Filelist == */
306
307 #thumblist .file {
308   color: #000;
309   display: inline-block;
310   text-align: left;
311   width: 90%;
312   padding: .5em .5em;
313   margin: .5%;
314   margin-bottom: .75em;
315   vertical-align: top;
316   word-wrap: break-word;
317 }
318 @media (min-width: 460px){#thumblist .file{width: 48%;}}
319 @media (min-width: 620px){#thumblist .file{width: 32%;}}
320 @media (min-width: 1004px){#thumblist .file{width: 250px; margin: 2px;}}
321
322 #thumblist .file.directory { background-color: #BBD; }
323 #thumblist .file.plain { background-color: #111; color: #777; }
324 #thumblist .file.video { background-color: #DBB; }
325
326 .panel#tagger .newtag select,
327 .panel#tagger .newtag .label{
328   display: block;
329   width: 10em;
330 }
331
332 .panel#preferences > fieldset {
333   border: solid 1px;
334   border-radius: .25em;
335 }
336 .panel#preferences > input { display: block; }
337
338 #videoview h1, 
339 #playctl h1 { font-size: 1.25em;}
340 #videoview h1, #videoview > a,
341 #playctl h1, #playctl > a {
342   display: inline-block;
343   margin-right: 1em;
344   padding: 0; margin: .5em 0;
345 }
346 #videoview video {
347   display: block;
348   margin: 0;
349   width: 100%;
350 }
351
352 #playctl form { text-align: center; }
353 #playctl form button {
354   display: inline-block;
355   height: 100%;
356   min-height: 4em;
357   margin: 0 -.75ex .5em 0;
358   background-color: #EEE;
359   border: 1px solid #333;
360   vertical-align: bottom;
361   padding-top: 1em;
362 }
363 #playctl form button[name="seek"],
364 #playctl form button[name="ctl"] { width: 40%;}
365 #playctl form button[name="amp"] { width: 40%; margin-top: 2em;}
366 #playctl form button[name="vol"] { width: 5%; min-height: 1em;}
367 #playctl form button[name="vol"].selected { background-color: #FA6;}
368 #playctl form button[name="vol"][value="100"],
369 #playctl form button[name="vol"][value="0"] { width: 6%;}
370
371 @media (min-width: 460px){
372   #playctl form button {
373     max-width: 4em;
374     min-height: 2em;
375     padding-top: 0em;
376     margin-bottom: 2em;
377   }
378   #playctl form button[name="seek"],
379   #playctl form button[name="ctl"] { width: 16%;}
380   #playctl form button[name="amp"] { width: 15%;}
381   #playctl form button[name="vol"] { width: 3%;}
382   #playctl form button[name="amp"] + br {display: none;}
383 }
384