Improved dropdown styling, part deux
[mediagoblin.git] / mediagoblin / static / css / base.css
1 /* @font-face */
2
3 @font-face {
4 font-family: 'Lato';
5 font-style: normal;
6 font-weight: 700;
7 src: local('Lato Bold'), local('Lato-Bold'), url('../fonts/Lato-Bold.ttf') format('truetype');
8 }
9 @font-face {
10 font-family: 'Lato';
11 font-style: italic;
12 font-weight: 400;
13 src: local('Lato Italic'), local('Lato-Italic'), url('../fonts/Lato-Italic.ttf') format('truetype');
14 }
15 @font-face {
16 font-family: 'Lato';
17 font-style: italic;
18 font-weight: 700;
19 src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url('../fonts/Lato-BoldItalic.ttf') format('truetype');
20 }
21 @font-face {
22 font-family: 'Lato';
23 font-style: normal;
24 font-weight: 400;
25 src: local('Lato Regular'), local('Lato-Regular'), url('../fonts/Lato-Regular.ttf') format('truetype');
26 }
27
28 body {
29 background-color: #161616;
30 color: #C3C3C3;
31 padding: 0;
32 margin: 0px;
33 height: 100%;
34 font: 16px 'Lato', 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
35 }
36
37 form {
38 margin: 0px;
39 padding: 0px;
40 }
41
42 /* text styles */
43
44 h1,h2,h3,p {
45 margin-bottom: 20px;
46 }
47
48 h1,h2,h3 {
49 font-weight: bold;
50 }
51
52 h1 {
53 margin-top: 15px;
54 color: #fff;
55 font-size: 1.875em;
56 }
57
58 h2 {
59 font-size: 1.375em;
60 margin-top: 20px;
61 color: #fff;
62 }
63
64 h3 {
65 border-bottom: 1px solid #333;
66 font-size: 1.125em;
67 }
68
69 p {
70 margin-top: 0px;
71 }
72
73 a {
74 color: #86D4B1;
75 }
76
77 a.highlight {
78 color: #fff;
79 }
80
81 em {
82 font-style: italic;
83 }
84
85 strong {
86 font-weight: bold;
87 }
88
89 ul {
90 list-style: disc inside;
91 }
92
93 ol {
94 list-style: decimal inside;
95 }
96
97 label {
98 font-weight: normal;
99 }
100
101 input, textarea {
102 font-size:1em;
103 font-family:'Lato', sans-serif;
104 }
105
106 /* website structure */
107
108 .container {
109 margin: auto;
110 width: 96%;
111 max-width: 940px;
112 }
113
114 header {
115 width: 100%;
116 max-width: 940px;
117 margin-left: auto;
118 margin-right: auto;
119 padding: 0;
120 margin-bottom: 42px;
121 border-bottom: 1px solid #333;
122 }
123
124 .header_right {
125 margin: 8px;
126 display: inline-block;
127 float: right;
128 }
129
130 .header_dropdown {
131 margin-bottom: 20px;
132 }
133
134 .header_dropdown li {
135 margin: 4px 0;
136 list-style: none;
137 }
138
139 .header_dropdown p {
140 margin-top: 12px;
141 margin-bottom: 10px;
142 }
143
144 .dropdown_title {
145 font-size: 20px;
146 }
147
148 a.logo {
149 color: #fff;
150 font-weight: bold;
151 }
152
153 .logo img {
154 vertical-align: middle;
155 margin: 6px 8px 6px 0;
156 }
157
158 .mediagoblin_content {
159 width: 100%;
160 padding-bottom: 74px;
161 }
162
163 footer {
164 width: 100%;
165 height: 30px;
166 border-top: 1px solid #333;
167 bottom: 0px;
168 padding: 8px 0;
169 text-align: center;
170 font-size: 0.875em;
171 clear: both;
172 }
173
174 .media_pane {
175 width: 640px;
176 margin-left: 0px;
177 margin-right: 10px;
178 float: left;
179 }
180
181 .media_sidebar {
182 width: 280px;
183 margin-left: 10px;
184 float: left;
185 }
186
187 .profile_sidebar {
188 width: 340px;
189 margin-right: 10px;
190 float: left;
191 }
192
193 .profile_showcase {
194 width: 580px;
195 margin-left: 10px;
196 float: left;
197 }
198
199 /* common website elements */
200
201 .button_action, .button_action_highlight, .button_form {
202 display: inline-block;
203 color: #c3c3c3;
204 background-color: #363636;
205 border: 1px solid;
206 border-color: #464646 #2B2B2B #252525;
207 border-radius: 4px;
208 padding: 3px 8px;
209 font-size: 16px;
210 text-decoration: none;
211 font-style: normal;
212 font-weight: bold;
213 cursor: pointer;
214 }
215
216 .button_action_highlight, .button_form {
217 background-color: #86D4B1;
218 border-color: #A2DEC3 #6CAA8E #5C9179;
219 color: #283F35;
220 }
221
222 .button_form {
223 min-width: 99px;
224 margin: 10px 0px 10px 15px;
225 text-align: center;
226 font-family: 'Lato', sans-serif;
227 }
228
229 .pagination {
230 text-align: center;
231 }
232
233 .pagination_arrow {
234 margin: 5px;
235 }
236
237 .empty_space {
238 background-image: url("../images/empty_back.png");
239 font-style: italic;
240 text-align: center;
241 height: 160px;
242 padding-top: 70px;
243 }
244
245 .right_align {
246 float: right;
247 }
248
249 .clear {
250 clear: both;
251 display: block;
252 overflow: hidden;
253 visibility: hidden;
254 width: 0;
255 height: 0;
256 }
257
258 .hidden {
259 display: none;
260 }
261
262 .media_sidebar h3 {
263 font-size: 1em;
264 margin: 0 0 5px;
265 border: none;
266 }
267
268 .media_sidebar p {
269 margin-left: 8px;
270 }
271
272 /* forms */
273
274 .form_box,.form_box_xl {
275 background-color: #222;
276 border-top: 6px solid #D49086;
277 padding: 3% 5%;
278 display: block;
279 float: none;
280 width: 90%;
281 max-width: 340px;
282 margin-left: auto;
283 margin-right: auto;
284 }
285
286 .form_box_xl {
287 max-width: 460px;
288 }
289
290 .edit_box {
291 border-top: 6px dashed #D49086
292 }
293
294 .form_field_input input, .form_field_input textarea {
295 width: 100%;
296 }
297
298 .form_field_input {
299 margin-bottom: 10px;
300 }
301
302 .form_field_label {
303 margin-bottom: 4px;
304 }
305
306 .form_field_label {
307 font-size:1.125em;
308 }
309
310 .form_field_description {
311 font-style: italic;
312 }
313
314 .form_field_error {
315 background-color: #87453b;
316 color: #fff;
317 border: none;
318 padding: 9px;
319 margin-top: 8px;
320 margin-bottom: 8px;
321 }
322
323 .form_submit_buttons {
324 text-align: right;
325 }
326
327 .subform {
328 margin: 2em;
329 }
330
331 #password_boolean {
332 margin-top: 4px;
333 width: 20px;
334 }
335
336 textarea#description, textarea#bio {
337 resize: vertical;
338 height: 100px;
339 }
340
341 .delete {
342 margin-top: 36px;
343 display: block;
344 text-align: center;
345 }
346
347 /* comments */
348
349 .comment_wrapper {
350 margin-top: 20px;
351 margin-bottom: 20px;
352 }
353
354 .comment_wrapper p {
355 margin-bottom: 2px;
356 }
357
358 .comment_author {
359 padding-top: 4px;
360 font-size: 0.9em;
361 }
362
363 .comment_content {
364 margin-left: 8px;
365 margin-top: 8px;
366 }
367
368 textarea#comment_content {
369 resize: vertical;
370 width: 100%;
371 height: 90px;
372 border: none;
373 background-color: #f1f1f1;
374 padding: 3px;
375 }
376
377 #form_comment .form_field_input {
378 padding-right: 6px;
379 }
380
381 /* media galleries */
382
383 .media_thumbnail {
384 float: left;
385 padding: 0px;
386 width: 180px;
387 overflow: hidden;
388 margin: 0px 3px 10px;
389 text-align: center;
390 font-size: 0.875em;
391 background-color: #222;
392 border-radius: 0 0 5px 5px;
393 padding: 0 0 6px;
394 text-overflow: ellipsis;
395 white-space: nowrap;
396 overflow: hidden;
397 border-color: #0D0D0D;
398 border-style: solid;
399 border-width: 1px 1px 2px;
400 }
401
402 .media_thumbnail a {
403 color: #eee;
404 text-decoration: none;
405 display: block;
406 }
407
408 .media_thumbnail a.remove {
409 color: #86D4B1;
410 text-decoration: underline;
411 }
412
413 a.thumb_entry_title {
414 padding: 8px;
415 }
416
417 .media_thumbnail img {
418 max-height: 135px;
419 }
420
421 .thumb_entry_last {
422 margin-right: 0px;
423 }
424
425 /* media detail */
426
427 h2.media_title {
428 margin-bottom: 0px;
429 display: inline-block;
430 }
431
432 p.context {
433 display: inline-block;
434 padding-top: 4px;
435 }
436
437 p.media_specs {
438 font-size: 0.9em;
439 border-top: 1px solid #222;
440 padding: 10px 0px;
441 color: #888;
442 }
443
444 .no_html5 {
445 background: black;
446 color: white;
447 text-align: center;
448 height: 160px;
449 padding: 130px 10px 20px 10px;
450 }
451
452 a img.media_image {
453 cursor: -webkit-zoom-in;
454 cursor: -moz-zoom-in;
455 cursor: zoom-in;
456 }
457
458 /* icons */
459
460 img.media_icon {
461 margin: 0 4px;
462 vertical-align: sub;
463 }
464
465 /* navigation */
466
467 .navigation {
468 float: right;
469 }
470
471 .navigation_button {
472 width: 135px;
473 display: inline-block;
474 text-align: center;
475 background-color: #1d1d1d;
476 border: 1px solid;
477 border-color: #2c2c2c #232323 #1a1a1a;
478 border-radius: 4px;
479 text-decoration: none;
480 padding: 4px 0 8px;
481 margin: 0 0 6px;
482 }
483
484 .navigation_left {
485 margin-right: 6px;
486 }
487
488 /* messages */
489
490 ul.mediagoblin_messages {
491 list-style: none inside;
492 color: #f7f7f7;
493 padding: 0;
494 }
495
496 .mediagoblin_messages li {
497 margin: 5px 0;
498 padding: 8px;
499 text-align: center;
500 }
501
502 .message_success {
503 background-color: #378566;
504 }
505
506 .message_warning {
507 background-color: #87453b;
508 }
509
510 .message_error {
511 background-color: #87453b;
512 }
513
514 .message_info {
515 background-color: #378566;
516 }
517
518 .message_debug {
519 background-color: #f7f7f7;
520 color: #272727;
521 }
522
523 ul.mediaentry_tags {
524 list-style-type: none;
525 }
526
527 ul.mediaentry_tags li {
528 display: inline;
529 margin: 0px 5px 0px 0px;
530 padding: 0px;
531 }
532
533
534 /* media processing panel */
535
536 table.media_panel {
537 width: 100%;
538 }
539
540 table.media_panel th {
541 font-weight: bold;
542 padding-bottom: 4px;
543 }
544
545
546 /* Delete panel */
547
548 .delete_checkbox_box {
549 margin-top: 10px;
550 margin-left: 10px;
551 }
552
553 /* ASCII art and code */
554
555 @font-face {
556 font-family: Inconsolata;
557 src: local('Inconsolata'), url('../fonts/Inconsolata.otf') format('opentype')
558 }
559
560 pre, code {
561 font-family: Inconsolata, monospace;
562 line-height: 1em;
563 }
564
565 pre {
566 overflow: auto;
567 margin-bottom: 20px;
568 }
569
570 .comment_wrapper pre {
571 margin-bottom: 2px;
572 }
573
574 .ascii-wrapper pre {
575 /* but it should not affect the ASCII art */
576 margin: 0;
577 }
578
579 /* Media queries and other responsivisivity */
580 @media screen and (max-width: 940px) {
581 .media_pane {
582 width: 100%;
583 margin: 0px;
584 }
585
586 .media_sidebar {
587 width: 100%;
588 margin: 0px;
589 }
590
591 img.media_image {
592 width: 100%;
593 display: inline;
594 }
595
596 .media_thumbnail {
597 width: 21%;
598 }
599
600 .profile_sidebar {
601 width: 100%;
602 margin: 0px;
603 }
604
605 .profile_showcase {
606 width: 100%;
607 margin: 0px;
608 }
609
610 .navigation {
611 float: none;
612 }
613
614 .navigation_button {
615 width: 49%;
616 float: right;
617 }
618
619 .navigation_left {
620 margin-right: 0;
621 float: left;
622 }
623
624 .navigation {
625 float: none;
626 }
627
628 .navigation_button {
629 width: 49%;
630 float: right;
631 padding: 10px 0 14px;
632 }
633
634 .navigation_left {
635 margin-right: 0;
636 float: left;
637 }
638
639 .button_action, .button_action_highlight, .button_form {
640 padding: 9px 14px;
641 }
642
643 header {
644 text-align: center;
645 }
646
647 .header_right {
648 margin-right: 2%;
649 float: none;
650 }
651
652 a.logo {
653 margin-left: 2%;
654 }
655 }
656
657 @media screen and (max-width: 570px) {
658 .media_thumbnail {
659 width: 29%;
660 }
661 }
662
663 @media screen and (max-width: 380px) {
664 .media_thumbnail {
665 width: 46%;
666 }
667 }