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