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