Switch to using ./devtools/compile_translations.sh in Makefile.in
[larjonas-mediagoblin.git] / mediagoblin / static / css / base.css
blobf8726708f8fb82d0f2b0f078bf1beb69745e6db5
1 /* @font-face */
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');
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');
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');
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');
28 html, 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;
37 form {
38 margin: 0px;
39 padding: 0px;
42 /* text styles */
44 h1,h2,h3,p {
45 margin-bottom: 20px;
48 h1,h2,h3 {
49 font-weight: bold;
52 h1 {
53 margin-top: 15px;
54 color: #fff;
55 font-size: 1.875em;
58 h2 {
59 font-size: 1.375em;
60 margin-top: 20px;
61 color: #fff;
64 h3 {
65 border-bottom: 1px solid #333;
66 font-size: 1.125em;
69 p {
70 margin-top: 0px;
73 a {
74 color: #86D4B1;
77 a.highlight {
78 color: #fff;
81 .header_right a {
82 text-decoration: none;
83 color: #fff;
86 em {
87 font-style: italic;
90 strong {
91 font-weight: bold;
94 ul {
95 list-style: disc inside;
98 ol {
99 list-style: decimal inside;
102 label {
103 font-weight: normal;
106 input, textarea {
107 font-size:1em;
108 font-family:'Lato', sans-serif;
111 /* website structure */
113 #wrap {
114 min-height: 100%;
115 height: auto;
117 /* This must be equal to the footer height + 5px */
118 margin-bottom: -35px;
121 #wrap:after {
122 content: "";
123 display: block;
126 footer, #wrap:after {
127 height: 30px;
130 header {
131 width: 100%;
132 padding: 0;
133 margin-bottom: 42px;
134 border-bottom: 1px solid #333;
137 .header_left {
138 width: 47%;
139 margin: 0 0 0 8px;
140 display: inline-block;
143 .header_right {
144 width: 47%;
145 margin: 8px 8px 4px 0;
146 display: inline-block;
147 float: right;
148 text-align: right;
149 line-height: 1.6em;
152 #header_dropdown {
153 margin-bottom: 20px;
154 padding: 0px 10px 0px 10px;
157 #header_dropdown li {
158 margin: 4px 0;
159 list-style: none;
162 #header_dropdown p {
163 margin-top: 12px;
164 margin-bottom: 10px;
167 .dropdown_title {
168 font-size: 20px;
171 a.logo {
172 color: #fff;
173 font-weight: bold;
176 .logo img {
177 vertical-align: middle;
178 margin: 6px 8px 6px 0;
181 .welcomeimage {
182 float: right;
185 .fine_print {
186 font-size: 0.8em;
189 .mediagoblin_content {
190 width: 100%;
191 padding-bottom: 74px;
194 footer {
195 width: 100%;
196 border-top: 1px solid #333;
197 padding: 8px 0;
198 text-align: center;
199 font-size: 0.875em;
200 clear: both;
203 .thumb_gallery {
204 margin-left: 10px;
205 margin-right: 10px;
208 .profile_showcase .thumb_gallery {
209 margin-left: 0;
210 margin-right: 0;
213 .media_image_container {
216 .media_image {
217 display: block;
218 margin-left: auto;
219 margin-right: auto;
220 max-width: 100%;
223 .media_other_container {
224 display: flex;
225 justify-content: center;
228 .media_pane {
229 /* in place for possible future wide view */
230 /* border-bottom: 1px solid #333333;*/
233 .media_sidebar {
234 /* in place for possible future wide view */
235 /* border-left: 1px solid #333333;*/
236 /* padding-left: 1em;*/
237 /* padding-top: 1em;*/
240 .media_comments {
241 padding-top: 1em;
244 /* common website elements */
246 .button_action, .button_action_highlight, .button_form {
247 display: inline-block;
248 color: #c3c3c3;
249 background-color: #363636;
250 border: 1px solid;
251 border-color: #464646 #2B2B2B #252525;
252 border-radius: 4px;
253 padding: 3px 8px;
254 font-size: 16px;
255 text-decoration: none;
256 font-style: normal;
257 font-weight: bold;
258 cursor: pointer;
261 .button_action_highlight, .button_form {
262 background-color: #86D4B1;
263 border-color: #A2DEC3 #6CAA8E #5C9179;
264 color: #283F35;
267 .button_info {
268 background-color: #508BB5;
269 border-color: #5899C7 #437699 #427496;
270 color: #C3C3C3;
273 .button_warning {
274 background-color: #8A2D2D;
275 border-color: #913030 #451717 #431212;
276 color: #C3C3C3;
279 .button_form {
280 min-width: 99px;
281 margin: 10px 0px 10px 15px;
282 text-align: center;
283 font-family: 'Lato', sans-serif;
286 .pagination {
287 text-align: center;
290 .pagination_arrow {
291 margin: 5px;
294 .empty_space {
295 background-image: url("../images/empty_back.png");
296 font-style: italic;
297 text-align: center;
298 height: 160px;
299 padding-top: 70px;
302 .no_background {
303 background-image: none;
304 height: 0;
305 padding-top: 0;
306 display: inline-block;
309 .right_align {
310 float: right;
313 .left_align {
314 float: right;
317 .pull-right {
318 float: right !important;
320 .pull-left {
321 float: left !important;
324 .clear {
325 clear: both;
326 display: block;
327 overflow: hidden;
328 visibility: hidden;
329 width: 0;
330 height: 0;
333 .hidden {
334 display: none;
337 .media_sidebar h3 {
338 font-size: 1em;
339 margin: 0 0 5px;
340 border: none;
343 .media_sidebar p {
344 margin-left: 8px;
347 .alpha {
348 margin-left:0;
351 .omega {
352 margin-right:0;
355 .head {
356 margin-top:0;
359 .foot {
360 margin-bottom:0;
363 /* forms */
365 .form_box,.form_box_xl {
366 background-color: #222;
367 border-top: 6px solid #D49086;
368 padding: 3% 5%;
369 display: block;
370 float: none;
371 width: 90%;
372 max-width: 340px;
373 margin-left: auto;
374 margin-right: auto;
377 .form_box_xl {
378 max-width: 460px;
381 .blog_form_box_xl {
382 background-color: #222;
383 border-top: 6px solid #D49086;
384 padding: 3% 5%;
385 display: block;
386 float: none;
387 width: 90%;
388 max-width: 800px;
389 min-height: 500px;
390 margin-left: auto;
391 margin-right: auto;
394 .b_listing_title {
395 height: 30px;
396 width: 100%;
397 padding: 0px;
398 background-color: #86D4B1;
399 text-transform:capitalize;
400 text-decoration: none;
401 #border-radius: 4px;
404 .b_listing_title > a {
405 text-decoration: none;
408 .b_list_owner {
409 height: 100px;
410 width: 100%;
411 padding: 0em;
412 margin-right: auto;
413 background-color: #DDA0DD;
414 #border-radius: 4px;
415 text-transform: capitalize;
418 .b_list_des {
419 text-align:justify;
423 .edit_box {
424 border-top: 6px dashed #D49086
427 /*.form_field_input input,*/ .form_field_input textarea {
428 width: 100%;
431 .blog_form_field_input input, .blog_form_field_input textarea {
432 width: 100%;
435 .form_field_input {
436 margin-bottom: 10px;
439 .form_field_label {
440 margin-bottom: 4px;
443 .form_field_label {
444 font-size:1.125em;
447 .form_field_description {
448 font-style: italic;
451 .form_field_error {
452 background-color: #87453b;
453 color: #fff;
454 border: none;
455 padding: 9px;
456 margin-top: 8px;
457 margin-bottom: 8px;
460 .form_submit_buttons {
461 text-align: right;
464 .subform {
465 margin: 2em;
468 #password_boolean {
469 margin-top: 4px;
470 width: 20px;
473 .boolean {
474 margin-bottom: 8px;
477 textarea#description, textarea#bio {
478 resize: vertical;
479 height: 100px;
482 .delete {
483 margin-top: 36px;
484 display: block;
485 text-align: center;
488 /* comments */
490 .comment_wrapper, .report_wrapper {
491 margin-top: 20px;
492 margin-bottom: 20px;
495 .comment_wrapper p, .report_wrapper p {
496 margin-bottom: 2px;
499 .comment_author, .report_author {
500 padding-top: 4px;
501 font-size: 0.9em;
504 a.comment_authorlink, a.report_authorlink {
505 text-decoration: none;
506 padding-right: 5px;
507 font-weight: bold;
508 padding-left: 2px;
511 a.comment_authorlink:hover, a.report_authorlink:hover {
512 text-decoration: underline;
515 a.comment_whenlink, a.report_whenlink {
516 text-decoration: none;
519 a.comment_whenlink:hover, a.report_whenlink:hover {
520 text-decoration: underline;
523 .comment_content, .report_content {
524 margin-left: 8px;
525 margin-top: 8px;
528 .comment_active {
529 box-shadow: 0px 0px 15px 15px #378566;
530 background: #378566;
531 color: #f7f7f7;
534 textarea#comment_content {
535 resize: vertical;
536 width: 100%;
537 height: 90px;
538 border: none;
539 background-color: #f1f1f1;
540 padding: 3px;
543 #form_comment .form_field_input {
544 padding-right: 6px;
548 a.report_authorlink, a.report_whenlink {
549 color: #D486B1;
552 ul#action_to_resolve {list-style:none; margin-left:10px;}
554 /* media galleries */
556 .media_thumbnail {
557 float: left;
558 padding: 0px;
559 width: 180px;
560 overflow: hidden;
561 margin: 0px 3px 10px;
562 text-align: center;
563 font-size: 0.875em;
564 background-color: #222;
565 border-radius: 0 0 5px 5px;
566 padding: 0 0 6px;
567 text-overflow: ellipsis;
568 white-space: nowrap;
569 overflow: hidden;
570 border-color: #0D0D0D;
571 border-style: solid;
572 border-width: 1px 1px 2px;
575 .media_thumbnail a {
576 color: #eee;
577 text-decoration: none;
578 display: block;
581 .media_thumbnail a.remove {
582 color: #86D4B1;
583 text-decoration: underline;
586 a.thumb_entry_title {
587 padding: 8px;
590 /* For now, this is commented out since our thumbnails are actually 180px high.
592 * .media_thumbnail img {
593 * max-height: 135px;
597 .thumb_entry_last {
598 margin-right: 0px;
601 /* media detail */
603 h2.media_title {
604 margin-bottom: 0px;
605 display: inline-block;
608 p.context {
609 display: inline-block;
610 padding-top: 4px;
613 p.media_specs {
614 font-size: 0.9em;
615 border-top: 1px solid #222;
616 padding: 10px 0px;
617 color: #888;
620 .no_html5 {
621 background: black;
622 color: white;
623 text-align: center;
624 height: 160px;
625 padding: 130px 10px 20px 10px;
628 a img.media_image {
629 cursor: -webkit-zoom-in;
630 cursor: -moz-zoom-in;
631 cursor: zoom-in;
633 /* icons */
635 img.media_icon {
636 margin: 0 4px;
637 vertical-align: sub;
640 /* EXIF information */
642 #exif_content {
643 padding-bottom: 20px;
646 #exif_camera_information {
647 margin-bottom: 20px;
648 margin-left: 8px;
651 #exif_additional_info_button {
652 margin-left: 8px;
655 #exif_additional_info {
656 display: none;
657 margin-left: 8px;
660 #exif_additional_info table {
661 font-size: 11px;
662 margin-top: 10px;
665 #exif_additional_info td {
666 vertical-align: top;
667 padding-bottom: 5px;
670 #exif_content .col1 {
671 padding-right: 20px;
674 #exif_additional_info table tr {
675 margin-bottom: 10px;
678 /* navigation */
680 .navigation {
683 .navigation_button {
684 width: 48%;
685 display: inline-block;
686 text-align: center;
687 background-color: #1d1d1d;
688 border: 1px solid;
689 border-color: #2c2c2c #232323 #1a1a1a;
690 border-radius: 4px;
691 text-decoration: none;
692 padding: 4px 0 8px;
693 margin: 0 0 6px;
696 .navigation_left {
697 margin-right: 3px;
700 /* messages */
702 ul.mediagoblin_messages {
703 list-style: none inside;
704 color: #f7f7f7;
705 padding: 0;
708 .mediagoblin_messages li {
709 margin: 5px 0;
710 padding: 8px;
711 text-align: center;
714 .message_success {
715 background-color: #378566;
718 .message_warning {
719 background-color: #87453b;
722 .message_error {
723 background-color: #87453b;
726 .message_info {
727 background-color: #378566;
730 .message_debug {
731 background-color: #f7f7f7;
732 color: #272727;
735 ul.mediaentry_tags {
736 list-style-type: none;
739 ul.mediaentry_tags li {
740 display: inline;
741 margin: 0px 5px 0px 0px;
742 padding: 0px;
746 /* media processing panel */
748 table.media_panel {
749 width: 100%;
752 table.media_panel th {
753 font-weight: bold;
754 padding-bottom: 4px;
755 text-align: left;
758 /* moderator panels */
760 table.admin_panel {
761 width: 100%
764 table.admin_side_panel {
765 width: 90%;
766 margin-bottom: 10px;
769 table.admin_panel th, table.admin_side_panel th {
770 font-weight: bold;
771 padding-bottom: 4px;
772 text-align: left;
773 color: #fff;
776 table td.user_with_privilege {
777 font-weight: bold;
778 color: #86D4B1;
781 table td.user_without_privilege {
782 font-weight: bold;
783 color: #D486B1;
786 .return_to_panel {
787 text-align:right;
788 float: right;
789 font-size:1.2em
792 /* Delete panel */
794 .delete_checkbox_box {
795 margin-top: 10px;
796 margin-left: 10px;
799 /* code of conduct */
801 #code_of_conduct_list {
802 margin-left:25px;
803 margin-bottom: 10px;
805 #code_of_conduct_list li {
806 margin:5px 0 15px 25px;
808 #code_of_conduct_list strong{
809 color:#fff;
812 .nested_sublist {
813 margin: 5px 0 10px 25px;
814 font-size:80%;
816 .nested_sublist li {
817 margin-bottom: 10px;
820 /* ASCII art and code */
822 @font-face {
823 font-family: Inconsolata;
824 src: local('Inconsolata'), url('../fonts/Inconsolata.otf') format('opentype')
827 pre, code {
828 font-family: Inconsolata, monospace;
829 line-height: 1em;
832 pre {
833 overflow: auto;
834 margin-bottom: 20px;
837 .comment_wrapper pre {
838 margin-bottom: 2px;
841 .ascii-wrapper pre {
842 /* but it should not affect the ASCII art */
843 margin: 0;
846 /* Media queries and other responsivisivity */
847 /* initial GMG max 940 */
848 @media screen and (max-width: 960px) {
850 img.media_image {
851 max-width: 100%;
852 /* display: inline;*/
855 .media_thumbnail {
856 /* width: 21%;*/
859 .profile_sidebar {
860 width: 100%;
861 margin: 0px;
864 .profile_showcase {
865 width: 100%;
866 margin: 0px;
869 .navigation {
870 float: none;
873 .navigation_button {
874 float: right;
875 padding: 10px 0 14px;
878 .navigation_left {
879 margin-right: 0;
880 float: left;
883 .button_action, .button_action_highlight, .button_form {
884 padding: 5px 14px;
885 margin-bottom: 0.5em;
889 /* desktop resolutions */
890 @media screen and (min-width: 960px) {
891 .container .three.columns.media_thumbnail {
892 width:180px;
893 margin-left:3px;
894 margin-right:3px;
896 #thingy_view {
897 width:640px;
898 height:640px;
902 /* Tablet Portrait size to standard 960 (devices and browsers) */
903 @media only screen and (min-width: 768px) and (max-width: 959px) {
904 .container .three.columns.media_thumbnail {
905 width:147px;
906 margin-left:2px;
907 margin-right:2px;
909 .media_thumbnail.thumb_entry img {
910 max-width:100%;
912 .thumb_gallery {
913 margin-left: 0;
914 margin-right: 0;
916 .navigation_button {
918 #thingy_view {
919 width:508px;
920 height:508px;
924 /* All Mobile Sizes (devices and browser) */
925 @media screen and (max-width: 767px) {
926 .thumb_row {
927 margin-bottom: 0;
929 .thumb_gallery {
930 margin-left: 0;
931 margin-right: 0;
933 h1,h2,h3,p {
934 margin-bottom: 10px !important;
937 header {
938 text-align: center;
941 .header_right {
942 text-align: center;
945 .welcomeimage {
946 float: none;
947 display: inherit;
948 margin-left: auto;
949 margin-right: auto;
950 margin-top: 1em;
953 .media_sidebar {
954 border-left: none;
955 padding-left: 0;
956 padding-top: 1em;
957 margin-top: 1em;
960 .media_comments {
961 border-bottom: 1px solid #333333;
965 /* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
966 @media only screen and (min-width: 480px) and (max-width: 767px) {
967 #thingy_view {
968 width:420px;
969 height:420px;
973 /* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
974 @media only screen and (max-width: 479px) {
975 #thingy_view {
976 width:300px;
977 height:300px;
981 p.verifier {
982 text-align:center;
983 font-size:50px;
984 none repeat scroll 0% 0% rgb(221, 221, 221);
985 padding: 1em 0px;
988 /* for the media metadata editing table */
989 table.metadata_editor {
990 margin: 10px auto;
991 width: 800px;
994 table.metadata_editor tr td {
995 width:350px;
997 table.metadata_editor tr td.form_field_input input {
998 width:350px;
1001 .application {
1002 min-height: 30px;
1003 margin-left: 70px;
1006 .application-icon {
1007 position: absolute;
1008 left: 12px;
1009 width: 50px;
1010 height: 50px;
1013 .application-button {
1014 float: right;