Wait, scratch that. This commit uses a better way.
[mediagoblin.git] / mediagoblin / static / css / base.css
CommitLineData
7baaea38
JS
1/* @font-face */
2
3@font-face {
4 font-family: 'Lato';
5 font-style: normal;
6 font-weight: 700;
ab613cb3 7 src: local('Lato Bold'), local('Lato-Bold'), url('../fonts/Lato-Bold.ttf') format('truetype');
7baaea38
JS
8}
9@font-face {
10 font-family: 'Lato';
11 font-style: italic;
12 font-weight: 400;
ab613cb3 13 src: local('Lato Italic'), local('Lato-Italic'), url('../fonts/Lato-Italic.ttf') format('truetype');
7baaea38
JS
14}
15@font-face {
16 font-family: 'Lato';
17 font-style: italic;
18 font-weight: 700;
ab613cb3 19 src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url('../fonts/Lato-BoldItalic.ttf') format('truetype');
7baaea38
JS
20}
21@font-face {
22 font-family: 'Lato';
23 font-style: normal;
24 font-weight: 400;
cfb7ed7d 25 src: local('Lato Regular'), local('Lato-Regular'), url('../fonts/Lato-Regular.ttf') format('truetype');
7baaea38
JS
26}
27
881b6e2c 28body {
06a5f21e 29 background-color: #111;
7c9d1a2b 30 background-image: url("../images/background.png");
f5782fac 31 color: #C3C3C3;
7c9d1a2b
CAW
32 padding: none;
33 margin: 0px;
34 height: 100%;
8c7701f9 35 font: 16px 'Lato', 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
9f661642
JS
36}
37
38form {
7c9d1a2b
CAW
39 margin: 0px;
40 padding: 0px;
881b6e2c
JS
41}
42
cb1e4a3d
JS
43/* text styles */
44
62f2557c
JS
45h1,h2,h3,p {
46 margin-bottom: 20px;
47}
48
49h1,h2,h3 {
50 font-weight: bold;
51}
52
3ea6a305 53h1 {
7c9d1a2b
CAW
54 margin-top: 15px;
55 color: #fff;
a97e5bb2 56 font-size: 1.875em;
881b6e2c
JS
57}
58
3ea6a305 59h2 {
f5782fac 60 font-size: 1.375em;
7c9d1a2b
CAW
61 margin-top: 20px;
62 color: #fff;
06a5f21e
JS
63}
64
3ea6a305 65h3 {
9ecf7cd1 66 border-bottom: 1px solid #333;
a97e5bb2 67 font-size: 1.125em;
38f71d47
JS
68}
69
3ea6a305
JS
70p {
71 margin-top: 0px;
72}
73
881b6e2c 74a {
9ecf7cd1 75 color: #86D4B1;
881b6e2c
JS
76}
77
996b3bf7
JS
78a.highlight {
79 color: #fff;
80}
81
937c7ea5
JS
82em {
83 font-style: italic;
84}
85
86strong {
87 font-weight: bold;
88}
89
90ul {
91 list-style: disc inside;
92}
93
94ol {
95 list-style: decimal inside;
96}
97
983aa712
JS
98label {
99 font-weight: normal;
100}
101
03b058b7 102input, textarea {
4826f626
JS
103 font-size:1em;
104 font-family:'Lato', sans-serif;
105}
106
983aa712
JS
107/* website structure */
108
7945cd21 109.container {
7df9f45c
JS
110 margin: auto;
111 width: 96%;
fb1dc4f5 112 max-width: 820px;
9f661642
JS
113}
114
7945cd21 115header {
426808cc 116 width: 100%;
7c9d1a2b
CAW
117 height: 36px;
118 padding-top: 14px;
119 margin-bottom: 20px;
9ecf7cd1
JS
120 border-bottom: 1px solid #333;
121}
122
7945cd21 123.header_right {
1bb8eb89
JS
124 float: right;
125}
126
7945cd21 127a.logo {
a97e5bb2
JS
128 color: #fff;
129 font-weight: bold;
b2706737 130 margin-right: 8px;
881b6e2c
JS
131}
132
7945cd21 133.logo img {
3ea6a305
JS
134 vertical-align: middle;
135}
136
1bb8eb89 137.mediagoblin_content {
426808cc 138 width: 100%;
1bb8eb89
JS
139 padding-bottom: 74px;
140}
141
7945cd21 142footer {
426808cc 143 width: 100%;
7c9d1a2b 144 height: 30px;
9ecf7cd1 145 border-top: 1px solid #333;
7c9d1a2b
CAW
146 bottom: 0px;
147 padding-top: 8px;
148 text-align: center;
f51b65d5 149 font-size: 0.875em;
42a7c010 150 clear: both;
9f661642
JS
151}
152
42a7c010 153.media_pane {
b21c9434 154 width: 560px;
42a7c010
JS
155 margin-left: 0px;
156 margin-right: 10px;
157 float: left;
9f661642 158}
fb1dc4f5
JS
159
160img.media_image {
161 width: 100%;
162}
9f661642 163
42a7c010 164.media_sidebar {
b21c9434 165 width: 240px;
630dd794 166 margin-left: 10px;
42a7c010
JS
167 float: left;
168}
38aa4a40 169
3ea6a305
JS
170.profile_sidebar {
171 width: 340px;
172 margin-right: 10px;
173 float: left;
174}
175
176.profile_showcase {
177 width: 580px;
178 margin-left: 10px;
179 float: left;
38aa4a40
JS
180}
181
69dadf42
JS
182/* common website elements */
183
75a12d63 184.button_action, .button_action_highlight {
bb3b9e40 185 display: inline-block;
13423daa
JS
186 color: #c3c3c3;
187 background-color: #363636;
188 border: 1px solid;
189 border-color: #464646 #2B2B2B #252525;
190 border-radius: 4px;
13423daa 191 padding: 3px 8px;
bb3b9e40 192 font-size: 16px;
13423daa
JS
193 text-decoration: none;
194 font-style: normal;
195 font-weight: bold;
75a12d63 196 cursor: pointer;
13423daa
JS
197}
198
75a12d63 199.button_action_highlight {
88f20b58
JS
200 background-color: #86D4B1;
201 border-color: #A2DEC3 #6CAA8E #5C9179;
202 color: #283F35;
13423daa
JS
203}
204
13423daa 205.button_form, .cancel_link {
7c9d1a2b
CAW
206 height: 32px;
207 min-width: 99px;
208 background-color: #86d4b1;
69dadf42
JS
209 background-image: -webkit-gradient(linear, left top, left bottom, from(#86d4b1), to(#62caa2));
210 background-image: -webkit-linear-gradient(top, #86d4b1, #62caa2);
211 background-image: -moz-linear-gradient(top, #86d4b1, #62caa2);
212 background-image: -ms-linear-gradient(top, #86d4b1, #62caa2);
213 background-image: -o-linear-gradient(top, #86d4b1, #62caa2);
214 background-image: linear-gradient(top, #86d4b1, #62caa2);
7c9d1a2b 215 box-shadow: 0px 0px 4px #000;
9ecf7cd1 216 border-radius: 3px;
7c9d1a2b
CAW
217 border: none;
218 color: #272727;
219 margin: 10px 0px 10px 15px;
7c9d1a2b
CAW
220 text-align: center;
221 padding-left: 11px;
222 padding-right: 11px;
223 text-decoration: none;
ce5db609 224 font-family: 'Lato', sans-serif;
ce5db609 225 font-weight: bold;
881b6e2c
JS
226}
227
677f55cc
CAW
228.cancel_link {
229 background-color: #aaa;
230 background-image: -webkit-gradient(linear, left top, left bottom, from(##D2D2D2), to(#aaa));
231 background-image: -webkit-linear-gradient(top, #D2D2D2, #aaa);
232 background-image: -moz-linear-gradient(top, #D2D2D2, #aaa);
233 background-image: -ms-linear-gradient(top, #D2D2D2, #aaa);
234 background-image: -o-linear-gradient(top, #D2D2D2, #aaa);
235 background-image: linear-gradient(top, #D2D2D2, #aaa);
236}
237
75a12d63 238.pagination {
7c9d1a2b 239text-align: center;
bf332e82
JS
240}
241
75a12d63 242.pagination_arrow {
7c9d1a2b 243 margin: 5px;
0a45fa59
JS
244}
245
75a12d63 246.empty_space {
5bd523eb 247 background-image: url("../images/empty_back.png");
1d03221d
JS
248 font-style: italic;
249 text-align: center;
250 height: 160px;
251 padding-top: 70px;
252}
253
75a12d63
JS
254.right_align {
255 float: right;
256}
257
3ea6a305
JS
258.clear {
259 clear: both;
260 display: block;
261 overflow: hidden;
262 visibility: hidden;
263 width: 0;
264 height: 0;
75a12d63
JS
265}
266
630dd794
JS
267h3.sidedata {
268 border: none;
269 background-color: #212121;
270 border-radius: 4px 4px 0 0;
271 padding: 3px 8px;
272 margin: 20px 0 5px 0;
273 font-size: 1em;
274}
275
491b9109
JS
276/* forms */
277
3ea6a305 278.form_box,.form_box_xl {
7c9d1a2b
CAW
279 background-color: #222;
280 background-image: url("../images/background_lines.png");
281 background-repeat: repeat-x;
7df9f45c 282 padding: 3% 5%;
7c9d1a2b
CAW
283 display: block;
284 float: none;
7df9f45c
JS
285 width: 90%;
286 max-width: 340px;
287 margin-left: auto;
288 margin-right: auto;
f0e621c8
JS
289}
290
3ea6a305 291.form_box_xl {
7df9f45c 292 max-width: 460px;
f0e621c8
JS
293}
294
bb1f2f89 295.edit_box {
7c9d1a2b 296 background-image: url("../images/background_edit.png");
bb1f2f89
JS
297}
298
353f927e 299.form_field_input input, .form_field_input textarea {
7c9d1a2b 300 width: 100%;
491b9109
JS
301}
302
aea6d577
JS
303.form_field_input {
304 margin-bottom: 10px;
305}
306
307.form_field_label {
7c9d1a2b 308 margin-bottom: 4px;
491b9109
JS
309}
310
feb3c4c3
JS
311.form_field_label {
312 font-size:1.125em;
313}
314
315.form_field_description {
316 font-style: italic;
317}
318
716a0ac3 319.form_field_error {
7c9d1a2b
CAW
320 background-color: #87453b;
321 color: #fff;
322 border: none;
7c9d1a2b
CAW
323 padding: 9px;
324 margin-top: 8px;
325 margin-bottom: 8px;
491b9109 326}
37a00748 327
69dadf42 328.form_submit_buttons {
7c9d1a2b 329 text-align: right;
69dadf42
JS
330}
331
dab1d702
JS
332#password_boolean {
333 margin-top: 4px;
334 width: 20px;
335}
336
f5d837fe 337textarea#description, textarea#bio {
7fc782bb
JS
338 resize: vertical;
339}
340
270dca58
JS
341/* comments */
342
343.comment_author {
7c9d1a2b
CAW
344 margin-bottom: 40px;
345 padding-top: 4px;
a97e5bb2 346 font-size: 0.9em;
270dca58
JS
347}
348
157c6026
JS
349.comment_content {
350 margin-bottom: 30px;
351}
352
270dca58 353.comment_content p {
157c6026 354 margin-bottom: 0px;
270dca58
JS
355}
356
3ea6a305 357textarea#comment_content {
b0ed64aa
JS
358 resize: vertical;
359 width: 100%;
3ea6a305
JS
360 height: 90px;
361 border: none;
362 background-color: #f1f1f1;
363 padding: 3px;
364}
365
b0ed64aa
JS
366#form_comment .form_field_input {
367 padding-right: 6px;
368}
369
a54e5be7
JS
370/* media galleries */
371
e854a128 372.media_thumbnail {
7c9d1a2b
CAW
373 padding: 0px;
374 width: 180px;
7c9d1a2b
CAW
375 overflow: hidden;
376 float: left;
377 margin: 0px 4px 10px 4px;
92ed2892 378 text-align: center;
970cea18 379 font-size: 0.875em;
4944e3c3 380 list-style: none;
92ed2892
CAW
381}
382
ec451724
CAW
383.media_thumbnail a {
384 color: #eee;
385 text-decoration: none;
386}
387
92ed2892
CAW
388/* media detail */
389
b2706737 390h2.media_title {
a97e5bb2 391 margin-bottom: 0px;
b0ed64aa 392 display: inline-block;
9ecf7cd1
JS
393}
394
fb1dc4f5
JS
395p.context {
396 display: inline-block;
397 padding-top: 4px;
398}
399
b2706737 400p.media_specs {
a97e5bb2 401 font-size: 0.9em;
b2706737 402 border-top: 1px solid #222;
b2706737
JS
403 padding: 10px 0px;
404 color: #888;
9ecf7cd1
JS
405}
406
6c191eb3
KR
407.no_html5 {
408 background: black;
409 color: white;
410 text-align: center;
411 height: 160px;
412 padding: 130px 10px 20px 10px;
413}
414
6ef36a15
JS
415/* icons */
416
b2706737 417img.media_icon {
7c9d1a2b
CAW
418 margin: 0 4px;
419 vertical-align: sub;
6ef36a15 420}
8dc43810
JS
421
422/* navigation */
423
fb1dc4f5
JS
424.navigation {
425 float: right;
426}
427
b2706737 428.navigation_button {
80c9a7ee 429 width: 135px;
fb1dc4f5 430 display: inline-block;
7c9d1a2b 431 text-align: center;
80c9a7ee
JS
432 background-color: #1d1d1d;
433 border: 1px solid;
434 border-color: #2c2c2c #232323 #1a1a1a;
909dda1f 435 border-radius: 4px;
7c9d1a2b 436 text-decoration: none;
fb1dc4f5
JS
437 padding: 4px 0 8px;
438 margin: 0 0 6px
8dc43810
JS
439}
440
b2706737 441.navigation_left {
80c9a7ee 442 margin-right: 6px;
8dc43810 443}
62e2f458
JS
444
445/* messages */
446
447ul.mediagoblin_messages {
7c9d1a2b
CAW
448 list-style: none inside;
449 color: #f7f7f7;
3ea6a305 450 padding: 0;
62e2f458
JS
451}
452
453.mediagoblin_messages li {
7c9d1a2b
CAW
454 margin: 5px 0;
455 padding: 8px;
456 text-align: center;
62e2f458
JS
457}
458
459.message_success {
460 background-color: #378566;
461}
462
463.message_warning {
464 background-color: #87453b;
465}
466
467.message_error {
468 background-color: #87453b;
469}
470
471.message_info {
472 background-color: #378566;
b51c5741 473}
62e2f458
JS
474
475.message_debug {
476 background-color: #f7f7f7;
7c9d1a2b 477 color: #272727;
62e2f458 478}
5d900647
CAW
479
480ul.mediaentry_tags {
481 list-style-type: none;
482}
483
484ul.mediaentry_tags li {
485 display: inline;
486 margin: 0px 5px 0px 0px;
487 padding: 0px;
488}
01c75c7e
CAW
489
490
491/* media processing panel */
492
493table.media_panel {
494 width: 100%;
495}
496
497table.media_panel th {
498 font-weight: bold;
499 padding-bottom: 4px;
58335110 500}
e8b51792
CAW
501
502
503/* Delete panel */
504
505.delete_checkbox_box {
506 margin-top: 10px;
507 margin-left: 10px;
ab613cb3 508}
a246ccca
JW
509
510/* ASCII art */
511
512@font-face {
513 font-family: Inconsolata;
514 src: local('Inconsolata'), url('../fonts/Inconsolata.otf') format('opentype')
515}
516
517.ascii-wrapper pre {
518 font-family: Inconsolata, monospace;
519 line-height: 1em;
7fc782bb 520}
173999a7 521
7646e695 522/* Media queries and other responsivisivity */
be09ed51
JS
523
524@media screen and (max-width: 820px) {
173999a7
JS
525 .media_pane {
526 width: 100%;
7646e695 527 margin: 0px;
173999a7 528 }
be09ed51
JS
529
530 .media_sidebar {
531 width: 100%;
532 margin: 0px;
533 }
534
173999a7
JS
535 img.media_image {
536 width: 100%;
537 }
7646e695 538
7646e695
JS
539 .profile_sidebar {
540 width: 100%;
541 margin: 0px;
542 }
be09ed51 543
7646e695
JS
544 .profile_showcase {
545 width: 100%;
546 margin: 0px;
547 }
f2ca3ad6
JS
548
549 .navigation {
550 float: none;
551 }
552
553 .navigation_button {
554 width: 49%;
92e8ca79 555 float: right;
f2ca3ad6
JS
556 }
557
558 .navigation_left {
559 margin-right: 0;
92e8ca79 560 float: left;
f2ca3ad6 561 }
7646e695 562}