]> git.p6c8.net - jirafeau_mojo42.git/blob - media/courgette/style.css.php
Merge remote-tracking branch 'origin/master'
[jirafeau_mojo42.git] / media / courgette / style.css.php
1 <?php
2 /*
3 * Jyraphe, your web file repository
4 * Copyright (C) 2013
5 * Jerome Jutteau <j.jutteau@gmail.com>
6 * Jimmy Beauvois <jimmy.beauvois@gmail.com>
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Affero General Public License as
10 * published by the Free Software Foundation, either version 3 of the
11 * License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22 /*
23 * This stylesheet is the default stylesheet for Jyraphe.
24 * The content is dynamically generated for easier handling.
25 */
26
27 $dark = '#8B4513';
28
29 header('Content-type: text/css');
30
31 ?>
32
33 /* ==========================================================================
34 Summary
35
36 1 = Basic Style
37 2 = Copyright
38 3 = Options
39 4 = Upload
40 5 = Terms of service
41 6 = Install
42 7 = Admin
43 8 = Download page
44
45 ========================================================================== */
46
47 /* ==========================================================================
48 1 = Basic Style
49 ========================================================================== */
50
51 body {
52 background: #efebe9;
53 font-family: Arial, sans-serif;
54 margin: 0;
55 line-height: 1.5;
56 }
57
58 #content {
59 padding: 2em;
60 }
61
62 h1 a {
63 display: block;
64 background: url(logo-jirafeau.svg) no-repeat;
65 background-size: 100% 100%;
66 text-indent: -9999px;
67 width: 194px;
68 height: 185px;
69 margin: 1em auto;
70 position: relative;
71 left: 0.4em;
72 }
73
74 h2 {
75 text-align: center;
76 color: #795548;
77 }
78
79 fieldset {
80 border: 0;
81 padding: 1.5em;
82 margin: 0 auto;
83 border-radius: 8px;
84 width: 20em;
85 border: 7px dashed #bcaaa4;
86 min-height: 15em;
87 min-width: 30em;
88 position: relative;
89 }
90
91 legend {
92 padding: 0.5em 1em;
93 background: #efebe9;
94 color: #663D1C;
95 font-size: 1.2em;
96 display: block;
97 min-width: 8em;
98 text-align: center;
99 }
100
101 table a {
102 color: #000;
103 }
104
105 table a:hover,
106 table a:focus {
107 text-decoration: none;
108 }
109
110 input[type="submit"] {
111 background: #0D9CB2;
112 border: 0;
113 padding: 0.4em 2.2em;
114 font-size: 1.1em;
115 color: #FFF;
116 border-bottom: 5px solid #085B69;
117 cursor: pointer;
118 margin: 10px;
119 }
120
121 select,
122 input[type="text"],
123 input[type="password"] {
124 border: 1;
125 padding: 5px 5px;
126 font-size: 1em;
127 }
128
129 select { width: 100%; }
130
131 input[type="submit"]:hover,
132 input[type="submit"]:focus {
133 border: 0;
134 position: relative;
135 top: 5px;
136 margin-bottom: 15px;
137 }
138
139 .inner {
140 margin-top: 3em;
141 }
142
143 #upload fieldset {
144 background: url(upload.svg) no-repeat center;
145 -webkit-transition: all 0.5s ease;
146 -moz-transition: all 0.5s ease;
147 -ms-transition: all 0.5s ease;
148 -o-transition: all 0.5s ease;
149 transition: all 0.5s ease;
150 }
151
152 #upload fieldset:hover {
153 border-color: #663D1C;
154 }
155
156 #upload > form {
157 text-align: center;
158 }
159
160 #file_select {
161 position: absolute;
162 top: 0;
163 left: 0;
164 width: 100%;
165 height: 100%;
166 cursor: pointer;
167 opacity: 0;
168 }
169
170
171
172 /* ==========================================================================
173 2 = Copyright
174 ========================================================================== */
175
176 #copyright {
177 text-align: center;
178 font-size: 0.8em;
179 color: #795548;
180 margin: 3em auto;
181 }
182
183 #copyright a {
184 color: #795548;
185 text-decoration: none;
186 }
187
188 #copyright a:hover,
189 #copyright a:focus {
190 text-decoration: underline;
191 }
192
193 /* ==========================================================================
194 3 = Options
195 ========================================================================== */
196
197 #options {
198 position: relative;
199 z-index: 10;
200 background: #efebe9;
201 width: 100%;
202 height: 90%;
203 }
204
205 #options tr { height: 2.7em; }
206
207 #option_table tr:first-child {
208 width: 100%;
209 height: 100%;
210 }
211
212 #option_table td:first-child {
213 }
214
215 #options input[type="submit"] {
216 position: relative;
217 left: 11.2em;
218 }
219
220 /* ==========================================================================
221 4 = Upload
222 ========================================================================== */
223
224 #upload_finished,
225 #uploading,
226 .message,
227 .info,
228 .error {
229 text-align: center;
230 color: #795548;
231 padding-left: 3em;
232 }
233
234 #upload_finished > p:nth-child(1) {
235 color: #0D9CB2;
236 font-weight: bold;
237 }
238
239 #upload_finished div p:nth-child(1) {
240 font-weight: bold;
241 }
242
243 #upload_finished a {
244 text-decoration: none;
245 color: #795548;
246 }
247
248 #uploading a {
249 font-weight: bold;
250 text-decoration: none;
251 color: #795548;
252 }
253
254 #uploaded_percentage {
255 font-size: 2em;
256 font-weight: bold;
257 }
258
259 #upload_finished a:hover,
260 #uploading a:hover,
261 #upload_finished a:focus,
262 #uploading a:focus {
263 text-decoration: underline;
264 }
265
266 .message,
267 .error {
268 color: #d55548;
269 font-style: italic;
270 font-weight: bold;
271 }
272
273 #upload_image_email {
274 padding-left: 20px;
275 margin-left: 10px;
276 background: url(email.png) no-repeat;
277 }
278
279 /* ==========================================================================
280 5 = Terms of service
281 ========================================================================== */
282
283 textarea[readonly="readonly"] {
284 border: 0;
285 color: #795548;
286 font-family: Arial, sans-serif;
287 background: none;
288 margin: auto;
289 display: block;
290 }
291
292 textarea[readonly="readonly"] + p,
293 textarea[readonly="readonly"] + p + p {
294 text-align: center;
295 color: #795548;
296 }
297
298 textarea[readonly="readonly"] + p a,
299 textarea[readonly="readonly"] + p + p a {
300 font-weight: bold;
301 text-decoration: none;
302 color: #795548;
303 }
304
305 textarea[readonly="readonly"] + p a:hover,
306 textarea[readonly="readonly"] + p + p a:hover,
307 textarea[readonly="readonly"] + p a:focus,
308 textarea[readonly="readonly"] + p + p a:focus {
309 text-decoration: underline;
310 }
311
312 /* ==========================================================================
313 6 = Install
314 ========================================================================== */
315
316 #install fieldset,
317 #install + fieldset {
318 width: auto;
319 max-width: 50em;
320 border: 7px dashed #bcaaa4;
321 }
322
323 #install table,
324 #install + fieldset table {
325 width: 100%;
326 border-collapse: collapse;
327 }
328
329 #install td,
330 #install + fieldset td {
331 padding: 0.5em 1em;
332 border-bottom: 0;
333 }
334
335 #install td:empty {
336 width: 13.1em;
337 }
338
339 #install table form:nth-child(odd),
340 #install + fieldset tr:nth-child(odd) {
341 background: #bcaaa4;
342 }
343
344 #install fieldset > form {
345 margin-top: 2em;
346 text-align: center;
347 }
348
349 #install form {
350 display: table;
351 width: 100%;
352 }
353
354 #install td:last-child { text-align: left; }
355
356 #install .info { width: 19em; }
357
358 #install input[type="submit"] {
359 min-width: 10.5em;
360 }
361
362 #install + fieldset table {
363 font-size: 0.9em;
364 }
365
366 #install + fieldset td:first-child input[type="submit"] {
367 background: none;
368 padding: 0;
369 color: #000;
370 font-weight: bold;
371 border-bottom: 0;
372 }
373
374 #install + fieldset td:first-child input[type="submit"]:hover,
375 #install + fieldset td:first-child input[type="submit"]:focus {
376 text-decoration: underline;
377 }
378
379 /* ==========================================================================
380 7 = Admin
381 ========================================================================== */
382
383 #admin fieldset,
384 #admin + fieldset {
385 width: auto;
386 max-width: 50em;
387 border: 7px dashed #bcaaa4;
388 }
389
390 #admin table,
391 #admin + fieldset table {
392 width: 100%;
393 border-collapse: collapse;
394 border-bottom: 2px solid #FFF;
395 }
396
397 #admin td,
398 #admin + fieldset td {
399 padding: 0.5em 1em;
400 border: 2px solid #FFF;
401 border-bottom: 0;
402 }
403
404 #admin td:empty {
405 width: 13.1em;
406 }
407
408 #admin table form:nth-child(odd),
409 #admin + fieldset tr:nth-child(odd) {
410 background: #bcaaa4;
411 }
412
413 #admin fieldset > form {
414 margin-top: 2em;
415 text-align: center;
416 }
417
418 #admin form {
419 display: table;
420 width: 100%;
421 }
422
423 #admin td:last-child { text-align: left; }
424
425 #admin .info { width: 19em; }
426
427 #admin input[type="submit"] {
428 min-width: 10.5em;
429 }
430
431 #admin + fieldset table {
432 font-size: 0.9em;
433 }
434
435 #admin + fieldset td:first-child input[type="submit"] {
436 background: none;
437 padding: 0;
438 color: #000;
439 font-weight: bold;
440 border-bottom: 0;
441 }
442
443 #admin + fieldset td:first-child input[type="submit"]:hover,
444 #admin + fieldset td:first-child input[type="submit"]:focus {
445 text-decoration: underline;
446 }
447
448 /* ==========================================================================
449 8 = Download page
450 ========================================================================== */
451
452 #self_destruct {
453 font-weight: bold;
454 color: red;
455 background-image: url('pixel_bomb.png');
456 background-size: 40px 40px;
457 background-repeat: no-repeat;
458 padding-left: 40px;
459 padding-top: 10px;
460 padding-bottom: 10px;
461 }

patrick-canterino.de