]> git.plutz.net Git - serve0/blob - templates/common.css.sh
233e81d72d9cef61524657e75f600d6c86f688a9
[serve0] / templates / common.css.sh
1 # Copyright 2014, 2015 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 cat <<EOF
19
20 * {
21   -moz-box-sizing: border-box;
22   box-sizing: border-box;
23   -moz-transition: all .3s linear;
24   transition: all .3s linear;
25 }
26
27 body {
28   padding: 0;
29   margin: 0;
30   background-color: #000;
31   color: #DDD;
32 }
33 a { color: #EEE; }
34 legend, label, .label { font-weight: bold; }
35
36 input.tabhandle { display: none; }
37 .tabcontent { display: none; }
38 input.tabhandle:checked + label.tabhandle + .tabcontent { display: inline-block; }
39 input.tabhandle:checked + .tabcontent { display: inline-block; }
40
41 textarea {
42   display: block;
43   width: 100%;
44 }
45
46 .info {
47   margin: 0;
48   padding: 0 .25em;
49   background-color: #BBD;
50   color: #000;
51   border: #000 1px solid;
52 }
53 .info.tag {
54   line-height: 1.6em;
55   background-color: #DBB;
56 }
57
58 .pagination_nav {
59   display: inline;
60   border: none;
61   position: absolute;
62   right: 1em;
63   padding-top: .125em;
64 }
65
66 /* == Panels == */
67
68 .panel {
69   display: block;
70   width: 100%;
71   margin: 0;
72   padding: .25em 1em;
73   background-color: #333;
74   border-width: 1px;
75   border-style: none none solid none;
76 }
77
78 a.panel {
79   font-weight: bold;
80   display: inline;
81   border: none;
82 }
83
84 .panel .help { display: block;}
85
86 /* == Top Panel == */
87 .panel#advfilter {
88   position: absolute;
89   top: 0;
90 }
91
92 /* == Bottom Panels == */
93 .panel#preferences,
94 .panel#tagger,
95 .panel#foot {
96   position: fixed;
97   bottom: 0px;
98   min-height: 2em;
99   border-style: solid none none none;
100 }
101
102
103 /* == Switchable Panels == */
104
105 .panel#advfilter,
106 .panel#tagger,
107 .panel#preferences {
108   z-index: 1;
109   overflow: hidden;
110   min-height: 0; max-height: 0;
111   padding-top: 0; padding-bottom: 0;
112 }
113 .panel#advfilter:target,
114 .panel#tagger:target,
115 .panel#preferences:target {
116   max-height: 100%;
117   overflow-y: scroll;
118 }
119 .panel#advfilter:target{ padding-bottom: 1em; }
120
121
122 /* == Panel Switches == */
123
124 .panel#advfilter a.panel,
125 .panel#preferences a.panel,
126 .panel#tagger a.panel {
127   display: block;
128   border-style: none none solid none;
129   border-width: 1px;
130 }
131 .panel#preferences a.panel,
132 .panel#tagger a.panel {
133   border-style: solid none none none;
134   margin-top: .5em;
135 }
136
137
138 /* == Panel Elements == */
139
140 .panel#advfilter .quicklinks,
141 .panel#advfilter .filter,
142 .panel#tagger .newtag,
143 .panel#tagger input[type=submit],
144 .panel#preferences > * {
145   display: inline-block;
146   vertical-align: top;
147   margin-top: 1em;
148 }
149
150
151 /* == Advanced Filters == */
152
153 /* == Filter Boxes == */
154 #advfilter .filter {
155   border: solid 1px #FFF;
156   border-radius: .25em;
157   padding: .25em .5em;
158 }
159 #advfilter .filter .tabcontainer {
160   position: relative;
161   width: 16em;
162   font-weight:normal;
163 }
164 #advfilter .filter .tabcontainer input + .category.tabhandle {
165   display: block;
166   width: 50%;
167 }
168 #advfilter .filter .tabcontainer input:checked + .category.tabhandle {
169   background: #FFF;
170   color: #000;
171 }
172 #advfilter .filter .tabcontainer .category.tabcontent {
173   position: absolute;
174   top: 0; right: 0;
175   width: 50%;
176   height: 100%;
177   min-height: 4em;
178   border: 2px #FFF solid;
179   border-radius: 0 .25em .25em 0;
180 }
181
182 #advfilter > label.tabhandle {
183   text-align: right;
184   width: 4em;
185   margin-left: 4em;
186 }
187
188 /* == Dynamic Appearance of Boxes == */
189 .panel#advfilter > .tabhandle + label { display: none; }
190 .panel#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle + label { display: inline-block; }
191 .panel#advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle:checked + label { display: none; }
192 .panel#advfilter > .tabhandle + label + .tabcontent {
193   display: inline-block;
194   overflow: hidden;
195   max-width: 0;
196   max-height: 0;
197   padding: 0;
198   border: none;
199 }
200 .panel#advfilter > .tabhandle:checked + label + .tabcontent {
201   max-width: 100%;
202   max-height: 100%;
203   padding: .25em .5em;
204   border: solid 1px #FFF;
205 }
206
207 #advfilter .filter.final {
208   width: 16em;
209   margin-left: 1em;
210 }
211
212 #advfilter .quicklinks {max-width: 100%;}
213 #advfilter .quicklinks * {
214   display: block;
215   word-wrap: break-word;
216 }
217
218
219 /* == Thumblist == */
220
221 #thumblist {
222   width: 100%;
223   padding: .5em 0 3em 0;
224   text-align: center;
225 }
226
227 #thumblist .thumb {
228   display: inline-block;
229   text-align: left;
230   width: 90%;
231   padding: 0 .5em;
232   margin: auto;
233   margin-bottom: .75em;
234   vertical-align: top;
235   word-wrap: break-word;
236 }
237 @media (min-width: 480px){#thumblist .thumb{width: 49.5%;}}
238 @media (min-width: 640px){#thumblist .thumb{width: 33%;}}
239 @media (min-width: 1024px){#thumblist .thumb{width: 256px;}}
240
241 #thumblist .thumb img {
242   width: 100%;
243 }
244 #thumblist .thumb h2 {
245   font-size: 1em;
246   font-weight: normal;
247   margin: 0;
248 }
249 #thumblist .thumb a {
250   display: block;
251 }
252 #thumblist .thumb a.alt {
253   display: inline-block;
254   margin-top: .3em;
255 }
256 #thumblist input {
257   margin: .75em .5em;
258 }
259
260 .panel#tagger .newtag select,
261 .panel#tagger .newtag .label{
262   display: block;
263   width: 10em;
264 }
265
266 .panel#preferences > fieldset {
267   border: solid 1px;
268   border-radius: .25em;
269 }
270 .panel#preferences > input { display: block; }
271
272 #videoview a.panel {
273   position: absolute;
274   right: 1em;
275   width: auto;
276   border: none;
277 }
278 #videoview .video {
279   display: inline-block;
280   width: 60%;
281   vertical-align: top;
282 }
283 #videoview .video * {
284   display: block;
285 }
286 #videoview .videoinfo {
287   width: 39%;
288   margin-top: 2em;
289 }
290 #videoview .videoinfo h2 {
291   display: inline;
292
293 #videoview .videoinfo .meta:after {
294   content: "\A";
295   white-space: pre;
296 }
297 #videoview .videoinfo .label {
298   display: block;
299   margin-top: 1em;
300 }
301 #videoview .videoinfo .info.description {
302   display: block;
303   background-color: #DDF;
304 }
305 #videoview .videoinfo .edit {
306   width: 100%
307 }
308 EOF
309
310 # vi:set filetype=css: