]> jfr.im git - uguu.git/blob - src/static/css/uguu.css
cacb6d82441c4d8384d02959a3840eb18b4de956
[uguu.git] / src / static / css / uguu.css
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 }
192 .icon-kofi {
193 background-image: url('img/kofi.png');
194 }
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 {
237 height: 32px;
238 }
239 .error#upload-filelist .progress-percent {
240 color: #B94A48;
241 }
242 .error#upload-filelist .file-progress {
243 display: none;
244 }
245 #upload-filelist > li {
246 margin-top: 5px;
247 overflow: hidden;
248 }
249 #upload-filelist > li.total {
250 border-top: 1px solid rgba(0, 0, 0, 0.05);
251 font-weight: bold;
252 padding-top: 5px;
253 }
254 .file-name {
255 float: left;
256 overflow: hidden;
257 max-width: 70%;
258 text-overflow: ellipsis;
259 white-space: nowrap;
260 }
261 .file-progress,
262 .file-url {
263 display: inline-block;
264 float: right;
265 font-size: 0.9em;
266 margin-left: 8px;
267 vertical-align: middle;
268 }
269 .file-url a {
270 color: #5C5C5C;
271 }
272 .file-url a:hover {
273 color: #1C1C1C;
274 }
275 .progress-percent {
276 float: right;
277 }
278
279 progress[value] {
280 /* Reset the default appearance */
281 -webkit-appearance: none;
282 -moz-appearance: none;
283 appearance: none;
284
285 border: none;
286
287 }
288
289 progress[value]::-webkit-progress-bar {
290 background-color: #eee;
291 border-radius: 2px;
292 box-shadow: 0 2px 5px rgba(0,0,0,0.25) inset;
293 }
294
295 /* completed rows */
296 .completed .file-progress,
297 .completed .progress-percent {
298 display: none;
299 }
300 .completed .file-url {
301 display: block;
302 }
303
304 /**
305 * PROGRESS BARS
306 */
307 .progress-outer {
308 background-color: rgba(255, 255, 255, 0.8);
309 border: 1px solid white;
310 border-radius: 4px;
311 box-shadow: 0 0 0 1px black;
312 color: transparent;
313 display: inline-block;
314 font-size: 0;
315 float: right;
316 height: 8px;
317 margin: 6px 6px 0;
318 overflow: hidden;
319 vertical-align: middle;
320 width: 50px;
321 }
322 .progress-inner {
323 background-color: black;
324 height: 6px;
325 margin: 0;
326 width: 0;
327 }
328
329 /**
330 * MEDIA QUERIES
331 */
332 @media only screen and (max-device-width: 320px), only screen and (max-width: 400px) {
333 body {
334 padding: 10px 0 0 0;
335 }
336 .jumbotron {
337 margin: 20px 0 30px;
338 }
339 .jumbotron .lead {
340 font-size: 18px;
341 }
342 .jumbotron .btn, .alert, #upload-filelist {
343 border-radius: 0;
344 border-width: 1px 0;
345 width: 100%;
346 margin-left: 0;
347 margin-right: 0;
348 padding-left: 20px;
349 padding-right: 20px;
350 }
351 #upload-filelist {
352 background-color: rgba(255, 255, 255, 0.75);
353 overflow: hidden;
354 }
355 #upload-filelist > li.file {
356 margin-top: 12px;
357 margin-bottom: 12px;
358 }
359 .file-progress {
360 width: 70%;
361 }
362 .file-name, .file-url {
363 width: 100%;
364 max-width: 100%;
365 }
366 .file-url a {
367 text-decoration: underline;
368 margin-left: 15px;
369 }
370 .file-url a:before {
371 content: "http://";
372 }
373 .alert {
374 font-size: 13px;
375 }
376 .alert-error {
377 background-color: rgba(248, 223, 223, 0.75);
378 }
379 nav {
380 background-color: rgba(255, 255, 255, 0.75);
381 border: #FFFFFF;
382 padding: 10px 0;
383 }
384 }
385 /*
386 * no js
387 */
388 #upload-btn {
389 display: none;
390 }
391 .js #upload-input {
392 display: none;
393 }
394 .js input[type="submit"]{
395 display: none;
396 }
397 .js #upload-btn {
398 display: inline-block !important;
399 }