]> git.p6c8.net - jirafeau.git/blob - media/courgette/style.css.php
6675ba5b7e0525c4607cfdc1c5d96af174f1629e
[jirafeau.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 <http://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 Sommaire
35
36 1 = Basic Style
37 2 = Copyright
38 3 = Options
39 4 = Upload
40 5 = Terms of service
41 6 = Admin
42
43 ========================================================================== */
44
45 /* ==========================================================================
46 1 = Basic Style
47 ========================================================================== */
48
49 body {
50 background: #efebe9;
51 font-family: Arial, sans-serif;
52 margin: 0;
53 line-height: 1.5;
54 }
55
56 h1 a {
57 display: block;
58 background: url(logo-jirafeau.svg) no-repeat;
59 background-size: 100% 100%;
60 text-indent: -9999px;
61 width: 194px;
62 height: 185px;
63 margin: 1em auto;
64 position: relative;
65 left: 0.4em;
66 }
67
68 h2 {
69 text-align: center;
70 color: #795548;
71 }
72
73 fieldset {
74 border: 0;
75 padding: 1.5em;
76 margin: 0 auto;
77 border-radius: 8px;
78 width: 20em;
79 border: 7px dashed #bcaaa4;
80 min-height: 15em;
81 position: relative;
82 }
83
84 legend {
85 padding: 0.5em 1em;
86 background: #efebe9;
87 color: #663D1C;
88 font-size: 1.2em;
89 display: block;
90 width: 100%;
91 text-align: center;
92 }
93
94 table a { color: #000;}
95
96 table a:hover,
97 table a:focus {
98 text-decoration: none;
99 }
100
101 input[type="submit"] {
102 background: #0D9CB2;
103 border: 0;
104 padding: 0.4em 2.2em;
105 font-size: 1.1em;
106 color: #FFF;
107 border-bottom: 5px solid #085B69;
108 cursor: pointer;
109 margin: 10px;
110 }
111
112 select,
113 input[type="text"],
114 input[type="password"] {
115 border: 1;
116 padding: 0.5em 1em;
117 font-size: 1em;
118 width: 89%;
119 }
120
121 select { width: 127%; }
122
123 input[type="submit"]:hover,
124 input[type="submit"]:focus {
125 border: 0;
126 position: relative;
127 top: 5px;
128 margin-bottom: 5px;
129 }
130
131 .inner {
132 margin-top: 3em;
133 }
134
135 #upload fieldset {
136 background: url(upload.svg) no-repeat center;
137 -webkit-transition: all 0.5s ease;
138 -moz-transition: all 0.5s ease;
139 -ms-transition: all 0.5s ease;
140 -o-transition: all 0.5s ease;
141 transition: all 0.5s ease;
142 }
143
144 #upload fieldset:hover {
145 border-color: #663D1C;
146 }
147
148 #upload > form {
149 text-align: center;
150 margin: 1em 0 0 3em;
151 }
152
153 #file_select {
154 position: absolute;
155 top: 0;
156 left: 0;
157 width: 100%;
158 height: 100%;
159 cursor: pointer;
160 opacity: 0;
161 }
162
163
164
165 /* ==========================================================================
166 2 = Copyright
167 ========================================================================== */
168
169 #copyright {
170 text-align: center;
171 font-size: 0.8em;
172 color: #795548;
173 padding-left: 3em;
174 }
175
176 #copyright a {
177 color: #795548;
178 text-decoration: none;
179 }
180
181 #copyright a:hover,
182 #copyright a:focus {
183 text-decoration: underline;
184 }
185
186 /* ==========================================================================
187 3 = Options
188 ========================================================================== */
189
190 #options {
191 position: relative;
192 z-index: 10;
193 background: #efebe9;
194 }
195
196 #options tr { height: 2.7em; }
197
198 #option_table tr:first-child td:first-child { width: 12em; }
199
200 #option_table tr td:first-child {
201
202 }
203
204 #options input[type="submit"] {
205 position: relative;
206 left: 11.2em;
207 }
208
209 /* ==========================================================================
210 4 = Upload
211 ========================================================================== */
212
213 #upload_finished,
214 #uploading,
215 .message,
216 .error {
217 text-align: center;
218 color: #795548;
219 padding-left: 3em;
220 }
221
222 #upload_finished a,
223 #uploading a {
224 font-weight: bold;
225 text-decoration: none;
226 color: #795548;
227 }
228
229 #uploaded_percentage {
230 font-size: 2em;
231 font-weight: bold;
232 }
233
234 #upload_finished a:hover,
235 #uploading a:hover,
236 #upload_finished a:focus,
237 #uploading a:focus {
238 text-decoration: underline;
239 }
240
241 .message,
242 .error {
243 color: #d55548;
244 font-style: italic;
245 font-weight: bold;
246 }
247
248 /* ==========================================================================
249 5 = Terms of service
250 ========================================================================== */
251
252
253
254 textarea[readonly="readonly"] {
255 border: 0;
256 color: #795548;
257 font-family: Arial, sans-serif;
258 background: none;
259 margin: auto;
260 display: block;
261 }
262
263 textarea[readonly="readonly"] + p,
264 textarea[readonly="readonly"] + p + p {
265 text-align: center;
266 color: #795548;
267 }
268
269 textarea[readonly="readonly"] + p a,
270 textarea[readonly="readonly"] + p + p a {
271 font-weight: bold;
272 text-decoration: none;
273 color: #795548;
274 }
275
276 textarea[readonly="readonly"] + p a:hover,
277 textarea[readonly="readonly"] + p + p a:hover,
278 textarea[readonly="readonly"] + p a:focus,
279 textarea[readonly="readonly"] + p + p a:focus {
280 text-decoration: underline;
281 }
282
283 /* ==========================================================================
284 6 = Admin
285 ========================================================================== */
286
287 #install fieldset,
288 #install + fieldset {
289 width: auto;
290 max-width: 50em;
291 border: 0;
292 }
293
294 #install table,
295 #install + fieldset table {
296 width: 100%;
297 border-collapse: collapse;
298 border-bottom: 2px solid #FFF;
299 }
300
301 #install td,
302 #install + fieldset td {
303 padding: 0.5em 1em;
304 border: 2px solid #FFF;
305 border-bottom: 0;
306 }
307
308 #install td:empty {
309 width: 13.1em;
310 }
311
312 #install table form:nth-child(odd),
313 #install + fieldset tr:nth-child(odd) {
314 background: #bcaaa4;
315 }
316
317 #install fieldset > form {
318 margin-top: 2em;
319 text-align: center;
320 }
321
322 #install form {
323 display: table;
324 width: 100%;
325 }
326
327 #install td:last-child { text-align: right; }
328
329 #install .info { width: 19em; }
330
331 #install input[type="submit"] {
332 min-width: 10.5em;
333 }
334
335 #install + fieldset table {
336 font-size: 0.9em;
337 }
338
339 #install + fieldset td:first-child input[type="submit"] {
340 background: none;
341 padding: 0;
342 color: #000;
343 font-weight: bold;
344 border-bottom: 0;
345 width: 12em;
346 }
347
348 #install + fieldset td:first-child input[type="submit"]:hover,
349 #install + fieldset td:first-child input[type="submit"]:focus {
350 position: static;
351 margin: 0;
352 text-decoration: underline;
353 }

patrick-canterino.de