]> git.p6c8.net - jirafeau.git/blob - media/courgette/style.css.php
media/courgette: fix width of 'select file'
[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 min-width: 30em;
82 position: relative;
83 }
84
85 legend {
86 padding: 0.5em 1em;
87 background: #efebe9;
88 color: #663D1C;
89 font-size: 1.2em;
90 display: block;
91 min-width: 8em;
92 text-align: center;
93 }
94
95 table a { color: #000;}
96
97 table a:hover,
98 table a:focus {
99 text-decoration: none;
100 }
101
102 input[type="submit"] {
103 background: #0D9CB2;
104 border: 0;
105 padding: 0.4em 2.2em;
106 font-size: 1.1em;
107 color: #FFF;
108 border-bottom: 5px solid #085B69;
109 cursor: pointer;
110 margin: 10px;
111 }
112
113 select,
114 input[type="text"],
115 input[type="password"] {
116 border: 1;
117 padding: 5px 5px;
118 font-size: 1em;
119 }
120
121 select { width: 100%; }
122
123 input[type="submit"]:hover,
124 input[type="submit"]:focus {
125 border: 0;
126 position: relative;
127 top: 5px;
128 margin-bottom: 15px;
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 }
151
152 #file_select {
153 position: absolute;
154 top: 0;
155 left: 0;
156 width: 100%;
157 height: 100%;
158 cursor: pointer;
159 opacity: 0;
160 }
161
162
163
164 /* ==========================================================================
165 2 = Copyright
166 ========================================================================== */
167
168 #copyright {
169 text-align: center;
170 font-size: 0.8em;
171 color: #795548;
172 padding-left: 3em;
173 }
174
175 #copyright a {
176 color: #795548;
177 text-decoration: none;
178 }
179
180 #copyright a:hover,
181 #copyright a:focus {
182 text-decoration: underline;
183 }
184
185 /* ==========================================================================
186 3 = Options
187 ========================================================================== */
188
189 #options {
190 position: relative;
191 z-index: 10;
192 background: #efebe9;
193 width: 100%;
194 height: 90%;
195 }
196
197 #options tr { height: 2.7em; }
198
199 #option_table tr:first-child {
200 width: 100%;
201 height: 100%;
202 }
203
204 #option_table td:first-child {
205 }
206
207 #options input[type="submit"] {
208 position: relative;
209 left: 11.2em;
210 }
211
212 /* ==========================================================================
213 4 = Upload
214 ========================================================================== */
215
216 #upload_finished,
217 #uploading,
218 .message,
219 .error {
220 text-align: center;
221 color: #795548;
222 padding-left: 3em;
223 }
224
225 #upload_finished a,
226 #uploading a {
227 font-weight: bold;
228 text-decoration: none;
229 color: #795548;
230 }
231
232 #uploaded_percentage {
233 font-size: 2em;
234 font-weight: bold;
235 }
236
237 #upload_finished a:hover,
238 #uploading a:hover,
239 #upload_finished a:focus,
240 #uploading a:focus {
241 text-decoration: underline;
242 }
243
244 .message,
245 .error {
246 color: #d55548;
247 font-style: italic;
248 font-weight: bold;
249 }
250
251 /* ==========================================================================
252 5 = Terms of service
253 ========================================================================== */
254
255
256
257 textarea[readonly="readonly"] {
258 border: 0;
259 color: #795548;
260 font-family: Arial, sans-serif;
261 background: none;
262 margin: auto;
263 display: block;
264 }
265
266 textarea[readonly="readonly"] + p,
267 textarea[readonly="readonly"] + p + p {
268 text-align: center;
269 color: #795548;
270 }
271
272 textarea[readonly="readonly"] + p a,
273 textarea[readonly="readonly"] + p + p a {
274 font-weight: bold;
275 text-decoration: none;
276 color: #795548;
277 }
278
279 textarea[readonly="readonly"] + p a:hover,
280 textarea[readonly="readonly"] + p + p a:hover,
281 textarea[readonly="readonly"] + p a:focus,
282 textarea[readonly="readonly"] + p + p a:focus {
283 text-decoration: underline;
284 }
285
286 /* ==========================================================================
287 6 = Admin
288 ========================================================================== */
289
290 #install fieldset,
291 #install + fieldset {
292 width: auto;
293 max-width: 50em;
294 border: 0;
295 }
296
297 #install table,
298 #install + fieldset table {
299 width: 100%;
300 border-collapse: collapse;
301 border-bottom: 2px solid #FFF;
302 }
303
304 #install td,
305 #install + fieldset td {
306 padding: 0.5em 1em;
307 border: 2px solid #FFF;
308 border-bottom: 0;
309 }
310
311 #install td:empty {
312 width: 13.1em;
313 }
314
315 #install table form:nth-child(odd),
316 #install + fieldset tr:nth-child(odd) {
317 background: #bcaaa4;
318 }
319
320 #install fieldset > form {
321 margin-top: 2em;
322 text-align: center;
323 }
324
325 #install form {
326 display: table;
327 width: 100%;
328 }
329
330 #install td:last-child { text-align: right; }
331
332 #install .info { width: 19em; }
333
334 #install input[type="submit"] {
335 min-width: 10.5em;
336 }
337
338 #install + fieldset table {
339 font-size: 0.9em;
340 }
341
342 #install + fieldset td:first-child input[type="submit"] {
343 background: none;
344 padding: 0;
345 color: #000;
346 font-weight: bold;
347 border-bottom: 0;
348 }
349
350 #install + fieldset td:first-child input[type="submit"]:hover,
351 #install + fieldset td:first-child input[type="submit"]:focus {
352 text-decoration: underline;
353 }

patrick-canterino.de