]> jfr.im git - uguu.git/blame - static/css/uguu.css
add whitelist mode and fix clipboard glyph
[uguu.git] / static / css / uguu.css
CommitLineData
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 */
36body {
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 */
60p {
61 margin: 0 0 10px;
62}
63/* images */
64input[type=image], img {
65 vertical-align: middle;
66}
67/* links */
68a {
69 color: #0078B4;
70 text-decoration: none;
71 transition: color 0.25s;
72}
73a:hover,
74a:focus,
75a:active {
76 color: #005580;
77}
78a: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 */
153span.donate-btns {
154 display: block;
155 text-align: center;
156 margin: 11px 0 3px;
157}
158a.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}
170a.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
193/**
194 * NAVIGATION LINKS
195 */
196nav > ul,
197nav a {
198 color: #33799B;
199 list-style: none;
200 margin: 0;
201 padding: 0;
202 text-align: center;
203}
204nav > ul > li {
205 display: inline-block;
206 margin: 0;
207 padding: 0;
208 cursor: default;
209}
210nav > ul > li:after {
211 content: "|";
212 margin: 0 8px;
213 opacity: 0.3;
214}
215nav > ul > li:last-child:after {
216 content: "";
217 margin: 0;
218}
219
220
221
222/**
223 * UPLOAD FILE LIST
224 */
225#upload-filelist {
226 list-style-type: none;
227 margin: 20px 50px;
228 padding: 0;
229 text-align: left;
230}
231.error#upload-filelist {
232 color: #891A18;
233}
234button.upload-clipboard-btn {
5e56fb98 235 height: 32px;
d8c46ff7
GJ
236}
237.error#upload-filelist .progress-percent {
238 color: #B94A48;
239}
240.error#upload-filelist .file-progress {
241 display: none;
242}
243#upload-filelist > li {
244 margin-top: 5px;
245 overflow: hidden;
246}
247#upload-filelist > li.total {
248 border-top: 1px solid rgba(0, 0, 0, 0.05);
249 font-weight: bold;
250 padding-top: 5px;
251}
252.file-name {
253 float: left;
254 overflow: hidden;
255 max-width: 70%;
256 text-overflow: ellipsis;
257 white-space: nowrap;
258}
259.file-progress,
260.file-url {
261 display: inline-block;
262 float: right;
263 font-size: 0.9em;
264 margin-left: 8px;
265 vertical-align: middle;
266}
267.file-url a {
268 color: #5C5C5C;
269}
270.file-url a:hover {
271 color: #1C1C1C;
272}
273.progress-percent {
274 float: right;
275}
276
277progress[value] {
278 /* Reset the default appearance */
279 -webkit-appearance: none;
280 -moz-appearance: none;
281 appearance: none;
282
283 border: none;
284
285}
286
287progress[value]::-webkit-progress-bar {
288 background-color: #eee;
289 border-radius: 2px;
290 box-shadow: 0 2px 5px rgba(0,0,0,0.25) inset;
291}
292
293/* completed rows */
294.completed .file-progress,
295.completed .progress-percent {
296 display: none;
297}
298.completed .file-url {
299 display: block;
300}
301
302/**
303 * PROGRESS BARS
304 */
305.progress-outer {
306 background-color: rgba(255, 255, 255, 0.8);
307 border: 1px solid white;
308 border-radius: 4px;
309 box-shadow: 0 0 0 1px black;
310 color: transparent;
311 display: inline-block;
312 font-size: 0;
313 float: right;
314 height: 8px;
315 margin: 6px 6px 0;
316 overflow: hidden;
317 vertical-align: middle;
318 width: 50px;
319}
320.progress-inner {
321 background-color: black;
322 height: 6px;
323 margin: 0;
324 width: 0;
325}
326
327/**
328 * MEDIA QUERIES
329 */
330@media only screen and (max-device-width: 320px), only screen and (max-width: 400px) {
331 body {
332 padding: 10px 0 0 0;
333 }
334 .jumbotron {
335 margin: 20px 0 30px;
336 }
337 .jumbotron .lead {
338 font-size: 18px;
339 }
340 .jumbotron .btn, .alert, #upload-filelist {
341 border-radius: 0;
342 border-width: 1px 0;
343 width: 100%;
344 margin-left: 0;
345 margin-right: 0;
346 padding-left: 20px;
347 padding-right: 20px;
348 }
349 #upload-filelist {
350 background-color: rgba(255, 255, 255, 0.75);
351 overflow: hidden;
352 }
353 #upload-filelist > li.file {
354 margin-top: 12px;
355 margin-bottom: 12px;
356 }
357 .file-progress {
358 width: 70%;
359 }
360 .file-name, .file-url {
361 width: 100%;
362 max-width: 100%;
363 }
364 .file-url a {
365 text-decoration: underline;
366 margin-left: 15px;
367 }
368 .file-url a:before {
369 content: "http://";
370 }
371 .alert {
372 font-size: 13px;
373 }
374 .alert-error {
375 background-color: rgba(248, 223, 223, 0.75);
376 }
377 nav {
378 background-color: rgba(255, 255, 255, 0.75);
379 border: #FFFFFF;
380 padding: 10px 0;
381 }
382}
383/*
384 * no js
385 */
386#upload-btn {
387 display: none;
388}
389.js #upload-input {
390 display: none;
391}
392.js input[type="submit"]{
393 display: none;
394}
395.js #upload-btn {
396 display: inline-block !important;
397}