]>
Commit | Line | Data |
---|---|---|
d8c46ff7 GJ |
1 | /** |
2 | * Copyright (c) 2011, 2012, 2013 Twitter, Inc. | |
3 | * Copyright (c) 2013, 2014 Peter Lejeck <peter.lejeck@gmail.com> | |
4 | * | |
5 | * Permission is hereby granted, free of charge, to any person obtaining a copy | |
6 | * of this software and associated documentation files (the "Software"), to deal | |
7 | * in the Software without restriction, including without limitation the rights | |
8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
9 | * copies of the Software, and to permit persons to whom the Software is | |
10 | * furnished to do so, subject to the following conditions: | |
11 | * | |
12 | * The above copyright notice and this permission notice shall be included in | |
13 | * all copies or substantial portions of the Software. | |
14 | * | |
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
21 | * SOFTWARE. | |
22 | */ | |
23 | ||
24 | /** | |
25 | * USE BORDER BOX | |
26 | */ | |
27 | *, | |
28 | *:before, | |
29 | *:after { | |
30 | box-sizing: border-box; | |
31 | } | |
32 | ||
33 | /** | |
34 | * PAGE LAYOUT | |
35 | */ | |
36 | body { | |
37 | background-attachment: fixed, fixed; | |
38 | background-color: #F7F7F7; | |
39 | background-image: url('grill.php'), url('img/bg.png'); | |
40 | background-position: 85% 100%, top left; | |
41 | background-repeat: no-repeat, repeat; | |
42 | color: #333; | |
43 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
44 | font-size: 14px; | |
45 | height: 100%; | |
46 | line-height: 20px; | |
47 | margin: 0; | |
48 | padding-top: 20px; | |
49 | padding-bottom: 40px; | |
50 | } | |
51 | .container { | |
52 | margin: 0 auto; | |
53 | max-width: 700px; | |
54 | } | |
55 | ||
56 | /** | |
57 | * ELEMENTS | |
58 | */ | |
59 | /* paragraphs */ | |
60 | p { | |
61 | margin: 0 0 10px; | |
62 | } | |
63 | /* images */ | |
64 | input[type=image], img { | |
65 | vertical-align: middle; | |
66 | } | |
67 | /* links */ | |
68 | a { | |
69 | color: #0078B4; | |
70 | text-decoration: none; | |
71 | transition: color 0.25s; | |
72 | } | |
73 | a:hover, | |
74 | a:focus, | |
75 | a:active { | |
76 | color: #005580; | |
77 | } | |
78 | a:focus { | |
79 | outline: thin dotted #333; | |
80 | } | |
81 | ||
82 | /** | |
83 | * JUMBOTRON | |
84 | */ | |
85 | .jumbotron { | |
86 | margin: 60px 0; | |
87 | text-align: center; | |
88 | transition: width 0.5s, height 0.5s, margin 0.5s, padding 0.5s; | |
89 | } | |
90 | .jumbotron h1 { | |
91 | color: inherit; | |
92 | font-family: inherit; | |
93 | font-size: 72px; | |
94 | font-weight: bold; | |
95 | line-height: 1; | |
96 | margin: 10px 0; | |
97 | cursor: default; | |
98 | text-rendering: optimizelegibility; | |
99 | } | |
100 | .jumbotron .lead { | |
101 | font-size: 21px; | |
102 | font-weight: 200; | |
103 | line-height: 30px; | |
104 | margin-bottom: 20px; | |
105 | transition: font-size 0.5s; | |
106 | } | |
107 | .jumbotron .btn { | |
108 | background: rgba(202, 230, 190, 0.75); | |
109 | border: 1px solid #B7D1A0; | |
110 | border-radius: 4px; | |
111 | color: #468847; | |
112 | cursor: pointer; | |
113 | display: inline-block; | |
114 | font-size: 24px; | |
115 | padding: 28px 48px; | |
116 | text-shadow: 0 1px rgba(255, 255, 255, 0.5); | |
117 | transition: background-color 0.25s, width 0.5s, height 0.5s; | |
118 | } | |
119 | .jumbotron .btn:hover, | |
120 | .jumbotron .btn:active, | |
121 | .jumbotron .btn:focus, | |
122 | .jumbotron .btn.drop { | |
123 | background-color: rgb(188, 228, 170); | |
124 | text-decoration: none; | |
125 | } | |
126 | ||
127 | /** | |
128 | * BOXES | |
129 | */ | |
130 | .alert { | |
131 | background-color: #FCF8E3; | |
132 | border: 1px solid #FBEED5; | |
133 | border-radius: 4px; | |
134 | margin-bottom: 20px; | |
135 | padding: 8px 14px; | |
136 | text-shadow: 0px 1px rgba(255, 255, 255, 0.5); | |
137 | transition: width 0.5s, margin 0.5s, padding 0.5s, background-color 0.5s; | |
138 | } | |
139 | .alert-error { | |
140 | background-color: #F2DEDE; | |
141 | border-color: #EED3D7; | |
142 | color: #AA4342; | |
143 | } | |
144 | .alert-info { | |
145 | background-color: #D9EDF7; | |
146 | border-color: #BCE8F1; | |
147 | color: #167196; | |
148 | } | |
149 | ||
150 | /** | |
151 | * DONATION BUTTONS | |
152 | */ | |
153 | span.donate-btns { | |
154 | display: block; | |
155 | text-align: center; | |
156 | margin: 11px 0 3px; | |
157 | } | |
158 | a.donate-btn { | |
159 | height: 26px; | |
160 | display: inline-block; | |
161 | margin: 2px 5px; | |
162 | background: hsl(0, 0%, 95%); | |
163 | line-height: 16px; | |
164 | padding: 3px 8px 3px 24px; | |
165 | border-radius: 3px; | |
166 | color: hsl(0, 0%, 25%); | |
167 | border: 1px solid hsl(0, 0%, 85%); | |
168 | transition: all .2s; | |
169 | } | |
170 | a.donate-btn:hover { | |
171 | color: #000; | |
172 | border: 1px solid hsl(0, 0%, 70%); | |
173 | background-color: hsl(0, 0%, 80%); | |
174 | } | |
175 | .icon { | |
176 | display: block; | |
177 | height: 16px; | |
178 | width: 16px; | |
179 | float: left; | |
180 | margin-left: -20px; | |
181 | margin-top: 1px; | |
182 | } | |
183 | .icon-paypal { | |
184 | background-image: url('img/paypal.png'); | |
185 | } | |
186 | .icon-bitcoin { | |
187 | background-image: url('img/bitcoin.png'); | |
188 | } | |
189 | .icon-flattr { | |
190 | background-image: url('img/flattr.png'); | |
191 | } | |
2057341d GJ |
192 | .icon-kofi { |
193 | background-image: url('img/kofi.png'); | |
194 | } | |
d8c46ff7 GJ |
195 | /** |
196 | * NAVIGATION LINKS | |
197 | */ | |
198 | nav > ul, | |
199 | nav a { | |
200 | color: #33799B; | |
201 | list-style: none; | |
202 | margin: 0; | |
203 | padding: 0; | |
204 | text-align: center; | |
205 | } | |
206 | nav > ul > li { | |
207 | display: inline-block; | |
208 | margin: 0; | |
209 | padding: 0; | |
210 | cursor: default; | |
211 | } | |
212 | nav > ul > li:after { | |
213 | content: "|"; | |
214 | margin: 0 8px; | |
215 | opacity: 0.3; | |
216 | } | |
217 | nav > ul > li:last-child:after { | |
218 | content: ""; | |
219 | margin: 0; | |
220 | } | |
221 | ||
222 | ||
223 | ||
224 | /** | |
225 | * UPLOAD FILE LIST | |
226 | */ | |
227 | #upload-filelist { | |
228 | list-style-type: none; | |
229 | margin: 20px 50px; | |
230 | padding: 0; | |
231 | text-align: left; | |
232 | } | |
233 | .error#upload-filelist { | |
234 | color: #891A18; | |
235 | } | |
236 | button.upload-clipboard-btn { | |
2a85717f | 237 | margin-left: 5px; |
5e56fb98 | 238 | height: 32px; |
d8c46ff7 GJ |
239 | } |
240 | .error#upload-filelist .progress-percent { | |
241 | color: #B94A48; | |
242 | } | |
243 | .error#upload-filelist .file-progress { | |
244 | display: none; | |
245 | } | |
246 | #upload-filelist > li { | |
247 | margin-top: 5px; | |
248 | overflow: hidden; | |
249 | } | |
250 | #upload-filelist > li.total { | |
251 | border-top: 1px solid rgba(0, 0, 0, 0.05); | |
252 | font-weight: bold; | |
253 | padding-top: 5px; | |
254 | } | |
255 | .file-name { | |
256 | float: left; | |
257 | overflow: hidden; | |
258 | max-width: 70%; | |
259 | text-overflow: ellipsis; | |
260 | white-space: nowrap; | |
261 | } | |
262 | .file-progress, | |
263 | .file-url { | |
264 | display: inline-block; | |
265 | float: right; | |
266 | font-size: 0.9em; | |
267 | margin-left: 8px; | |
268 | vertical-align: middle; | |
269 | } | |
270 | .file-url a { | |
271 | color: #5C5C5C; | |
272 | } | |
273 | .file-url a:hover { | |
274 | color: #1C1C1C; | |
275 | } | |
276 | .progress-percent { | |
277 | float: right; | |
278 | } | |
279 | ||
280 | progress[value] { | |
281 | /* Reset the default appearance */ | |
282 | -webkit-appearance: none; | |
283 | -moz-appearance: none; | |
284 | appearance: none; | |
285 | ||
286 | border: none; | |
287 | ||
288 | } | |
289 | ||
290 | progress[value]::-webkit-progress-bar { | |
291 | background-color: #eee; | |
292 | border-radius: 2px; | |
293 | box-shadow: 0 2px 5px rgba(0,0,0,0.25) inset; | |
294 | } | |
295 | ||
296 | /* completed rows */ | |
297 | .completed .file-progress, | |
298 | .completed .progress-percent { | |
299 | display: none; | |
300 | } | |
301 | .completed .file-url { | |
302 | display: block; | |
303 | } | |
304 | ||
305 | /** | |
306 | * PROGRESS BARS | |
307 | */ | |
308 | .progress-outer { | |
309 | background-color: rgba(255, 255, 255, 0.8); | |
310 | border: 1px solid white; | |
311 | border-radius: 4px; | |
312 | box-shadow: 0 0 0 1px black; | |
313 | color: transparent; | |
314 | display: inline-block; | |
315 | font-size: 0; | |
316 | float: right; | |
317 | height: 8px; | |
318 | margin: 6px 6px 0; | |
319 | overflow: hidden; | |
320 | vertical-align: middle; | |
321 | width: 50px; | |
322 | } | |
323 | .progress-inner { | |
324 | background-color: black; | |
325 | height: 6px; | |
326 | margin: 0; | |
327 | width: 0; | |
328 | } | |
329 | ||
330 | /** | |
331 | * MEDIA QUERIES | |
332 | */ | |
333 | @media only screen and (max-device-width: 320px), only screen and (max-width: 400px) { | |
334 | body { | |
335 | padding: 10px 0 0 0; | |
336 | } | |
337 | .jumbotron { | |
338 | margin: 20px 0 30px; | |
339 | } | |
340 | .jumbotron .lead { | |
341 | font-size: 18px; | |
342 | } | |
343 | .jumbotron .btn, .alert, #upload-filelist { | |
344 | border-radius: 0; | |
345 | border-width: 1px 0; | |
346 | width: 100%; | |
347 | margin-left: 0; | |
348 | margin-right: 0; | |
349 | padding-left: 20px; | |
350 | padding-right: 20px; | |
351 | } | |
352 | #upload-filelist { | |
353 | background-color: rgba(255, 255, 255, 0.75); | |
354 | overflow: hidden; | |
355 | } | |
356 | #upload-filelist > li.file { | |
357 | margin-top: 12px; | |
358 | margin-bottom: 12px; | |
359 | } | |
360 | .file-progress { | |
361 | width: 70%; | |
362 | } | |
363 | .file-name, .file-url { | |
364 | width: 100%; | |
365 | max-width: 100%; | |
366 | } | |
367 | .file-url a { | |
368 | text-decoration: underline; | |
369 | margin-left: 15px; | |
370 | } | |
371 | .file-url a:before { | |
372 | content: "http://"; | |
373 | } | |
374 | .alert { | |
375 | font-size: 13px; | |
376 | } | |
377 | .alert-error { | |
378 | background-color: rgba(248, 223, 223, 0.75); | |
379 | } | |
380 | nav { | |
381 | background-color: rgba(255, 255, 255, 0.75); | |
382 | border: #FFFFFF; | |
383 | padding: 10px 0; | |
384 | } | |
385 | } | |
386 | /* | |
387 | * no js | |
388 | */ | |
389 | #upload-btn { | |
390 | display: none; | |
391 | } | |
392 | .js #upload-input { | |
393 | display: none; | |
394 | } | |
395 | .js input[type="submit"]{ | |
396 | display: none; | |
397 | } | |
398 | .js #upload-btn { | |
399 | display: inline-block !important; | |
400 | } |