Move EXIF metadata CSS from mediawiki.legacy.shared
[lhc/web/wiklou.git] / resources / src / mediawiki.legacy / shared.css
1 /**
2 * CSS in this file is used by *all* skins (that have any CSS at all). Be
3 * careful what you put in here, since what looks good in one skin may not in
4 * another, but don't ignore the poor pre-Monobook users either.
5 *
6 * NOTE: The images which are referenced in this file are no longer in use in
7 * essential interface components. They should NOT be embedded, because that
8 * optimizes for the uncommon case at the cost of bloating the size of render-
9 * blocking CSS common to all pages.
10 */
11
12 /* GENERAL CLASSES FOR DIRECTIONALITY SUPPORT */
13
14 /**
15 * These classes should be used for text depending on the content direction.
16 * Content stuff like editsection, ul/ol and TOC depend on this.
17 */
18 .mw-content-ltr {
19 /* @noflip */
20 direction: ltr;
21 }
22
23 .mw-content-rtl {
24 /* @noflip */
25 direction: rtl;
26 }
27
28 /* Most input fields should be in site direction */
29 .sitedir-ltr textarea,
30 .sitedir-ltr input {
31 /* @noflip */
32 direction: ltr;
33 }
34
35 .sitedir-rtl textarea,
36 .sitedir-rtl input {
37 /* @noflip */
38 direction: rtl;
39 }
40
41 .mw-userlink {
42 unicode-bidi: embed;
43 }
44
45 /* User-Agent styles for new HTML5 elements */
46 mark {
47 background-color: #ff0;
48 color: #000;
49 }
50
51 /* Helper for wbr element on IE 8+; in HTML5, but not supported by default as of IE 11. */
52 /* Note canonical HTML5 styles recommend "content: \u200B", but this doesn't work as of IE 11. */
53 wbr {
54 display: inline-block;
55 }
56
57 /* Input types that should follow user direction, like buttons */
58 /* TODO: What about buttons in wikipage content ? */
59 input[type="submit"],
60 input[type="button"],
61 input[type="reset"],
62 input[type="file"] {
63 direction: ltr;
64 }
65
66 /* Override default values */
67 textarea[dir="ltr"],
68 input[dir="ltr"] {
69 /* @noflip */
70 direction: ltr;
71 }
72
73 textarea[dir="rtl"],
74 input[dir="rtl"] {
75 /* @noflip */
76 direction: rtl;
77 }
78
79 /* Default style for semantic tags */
80 abbr[title],
81 .explain[title] {
82 border-bottom: 1px dotted;
83 cursor: help;
84 }
85
86 @supports (text-decoration: underline dotted) {
87 abbr[title],
88 .explain[title] {
89 border-bottom: none;
90 text-decoration: underline dotted;
91 }
92 }
93
94 /* Colored watchlist and recent changes numbers */
95 .mw-plusminus-pos {
96 color: #006400; /* dark green */
97 }
98
99 .mw-plusminus-neg {
100 color: #8b0000; /* dark red */
101 }
102
103 .mw-plusminus-null {
104 color: #aaa; /* gray */
105 }
106
107 /*
108 * Bidi-isolate these numbers.
109 * See https://phabricator.wikimedia.org/T93484
110 */
111 .mw-plusminus-pos,
112 .mw-plusminus-neg,
113 .mw-plusminus-null {
114 unicode-bidi: -moz-isolate;
115 unicode-bidi: isolate;
116 }
117
118 /* Comment portions of RC entries */
119 span.comment {
120 font-style: italic;
121 unicode-bidi: -moz-isolate;
122 unicode-bidi: isolate;
123 }
124
125 /**
126 * Add a bit of margin space between the preview and the toolbar.
127 * This replaces the ugly <p><br /></p> we used to insert into the page source
128 */
129 #wikiPreview.ontop {
130 margin-bottom: 1em;
131 }
132
133 /* Stop floats from intruding into edit area in previews */
134 #editform,
135 #toolbar,
136 #wpTextbox1 {
137 clear: both;
138 }
139
140 /**
141 * rev_deleted stuff
142 */
143 li span.deleted,
144 span.history-deleted {
145 text-decoration: line-through;
146 color: #888;
147 font-style: italic;
148 }
149
150 /**
151 * Patrol stuff
152 */
153 .not-patrolled {
154 background-color: #ffa;
155 }
156
157 .unpatrolled {
158 font-weight: bold;
159 color: #f00;
160 }
161
162 div.patrollink {
163 font-size: 75%;
164 text-align: right;
165 }
166
167 /**
168 * Forms
169 */
170 td.mw-label {
171 text-align: right;
172 }
173
174 td.mw-input {
175 text-align: left;
176 }
177
178 td.mw-submit {
179 text-align: left;
180 }
181
182 td.mw-label {
183 vertical-align: middle;
184 }
185
186 td.mw-submit {
187 white-space: nowrap;
188 }
189
190 input#wpSummary {
191 width: 80%;
192 margin-bottom: 1em;
193 }
194
195 .mw-input-with-label {
196 white-space: nowrap;
197 }
198
199 /**
200 * Image captions.
201 *
202 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
203 */
204
205 /* @noflip */
206 .mw-content-ltr .thumbcaption {
207 text-align: left;
208 }
209
210 /* @noflip */
211 .mw-content-ltr .magnify {
212 float: right;
213 }
214
215 /* @noflip */
216 .mw-content-rtl .thumbcaption {
217 text-align: right;
218 }
219
220 /* @noflip */
221 .mw-content-rtl .magnify {
222 float: left;
223 }
224
225 /**
226 * Categories
227 */
228 #catlinks {
229 /**
230 * Overrides text justification (user preference)
231 * See bug 31990
232 */
233 text-align: left;
234 }
235
236 .catlinks ul {
237 display: inline;
238 margin: 0;
239 padding: 0;
240 list-style: none;
241 list-style-type: none;
242 list-style-image: none;
243 vertical-align: middle !ie;
244 }
245
246 .catlinks li {
247 display: inline-block;
248 line-height: 1.25em;
249 border-left: 1px solid #aaa;
250 margin: 0.125em 0;
251 padding: 0 0.5em;
252 zoom: 1;
253 display: inline !ie;
254 }
255
256 .catlinks li:first-child {
257 padding-left: 0.25em;
258 border-left: none;
259 }
260
261 /* (bug 5346) make category redirects italic */
262 .catlinks li a.mw-redirect {
263 font-style: italic;
264 }
265
266 /**
267 * Hidden categories
268 */
269 .mw-hidden-cats-hidden {
270 display: none;
271 }
272
273 .catlinks-allhidden {
274 display: none;
275 }
276
277 /**
278 * Convenience links to edit delete and protect reasons
279 */
280 p.mw-protect-editreasons,
281 p.mw-filedelete-editreasons,
282 p.mw-delete-editreasons {
283 font-size: 90%;
284 text-align: right;
285 }
286
287 /* Page history styling */
288
289 /* The auto-generated edit comments */
290 .autocomment {
291 color: #808080;
292 }
293
294 #pagehistory .history-user {
295 margin-left: 0.4em;
296 margin-right: 0.2em;
297 }
298
299 #pagehistory li {
300 border: 1px solid #fff;
301 }
302
303 #pagehistory li.selected {
304 background-color: #f9f9f9;
305 border: 1px dashed #aaa;
306 }
307
308 .mw-history-revisionactions {
309 float: right;
310 }
311
312 /** Generic minor/bot/newpage styling (recent changes) */
313 .newpage,
314 .minoredit,
315 .botedit {
316 font-weight: bold;
317 }
318
319 /**
320 * Recreating deleted page warning
321 * Reupload file warning
322 * Page protection warning
323 * incl. log entries for these warnings
324 */
325 div.mw-warning-with-logexcerpt {
326 padding: 3px;
327 margin-bottom: 3px;
328 border: 2px solid #2f6fab;
329 clear: both;
330 }
331
332 div.mw-warning-with-logexcerpt ul li {
333 font-size: 90%;
334 }
335
336 /* (show/hide) revision deletion links */
337 span.mw-revdelundel-link,
338 strong.mw-revdelundel-link {
339 font-size: 90%;
340 }
341
342 span.mw-revdelundel-hidden,
343 input.mw-revdelundel-hidden {
344 visibility: hidden;
345 }
346
347 td.mw-revdel-checkbox,
348 th.mw-revdel-checkbox {
349 padding-right: 10px;
350 text-align: center;
351 }
352
353 /* red links; see bug 36276 */
354 a.new {
355 color: #ba0000;
356 }
357
358 /* Plainlinks - this can be used to switch
359 * off special external link styling */
360 .plainlinks a.external {
361 background: none !important;
362 padding: 0 !important;
363 }
364
365 /* External URLs should always be treated as LTR (bug 4330) */
366 /* @noflip */ .rtl a.external.free,
367 .rtl a.external.autonumber {
368 direction: ltr;
369 unicode-bidi: embed;
370 }
371
372 /**
373 * wikitable class for skinning normal tables
374 * keep in sync with commonPrint.css
375 */
376 table.wikitable {
377 margin: 1em 0;
378 background-color: #f9f9f9;
379 border: 1px solid #aaa;
380 border-collapse: collapse;
381 color: #000;
382 }
383
384 table.wikitable > tr > th,
385 table.wikitable > tr > td,
386 table.wikitable > * > tr > th,
387 table.wikitable > * > tr > td {
388 border: 1px solid #aaa;
389 padding: 0.2em 0.4em;
390 }
391
392 table.wikitable > tr > th,
393 table.wikitable > * > tr > th {
394 background-color: #f2f2f2;
395 text-align: center;
396 }
397
398 table.wikitable > caption {
399 font-weight: bold;
400 }
401
402 /* success and error messages */
403 .error,
404 .warning,
405 .success {
406 font-size: larger;
407 }
408
409 .error {
410 color: #c00;
411 }
412
413 .warning {
414 color: #705000;
415 }
416
417 .success {
418 color: #009000;
419 }
420
421 .errorbox,
422 .warningbox,
423 .successbox {
424 border: 1px solid;
425 padding: .5em 1em;
426 margin-bottom: 1em;
427 display: inline-block;
428 zoom: 1;
429 *display: inline;
430 }
431
432 .errorbox h2,
433 .warningbox h2,
434 .successbox h2 {
435 font-size: 1em;
436 color: inherit;
437 font-weight: bold;
438 display: inline;
439 margin: 0 .5em 0 0;
440 border: none;
441 }
442
443 .errorbox {
444 color: #c00;
445 border-color: #fac5c5;
446 background-color: #fae3e3;
447 }
448
449 .warningbox {
450 color: #705000;
451 border-color: #fde29b;
452 background-color: #fdf1d1;
453 }
454
455 .successbox {
456 color: #008000;
457 border-color: #b7fdb5;
458 background-color: #e1fddf;
459 }
460
461 /* general info/warning box for SP */
462 .mw-infobox {
463 border: 2px solid #ff7f00;
464 margin: 0.5em;
465 clear: left;
466 overflow: hidden;
467 }
468
469 .mw-infobox-left {
470 margin: 7px;
471 float: left;
472 width: 35px;
473 }
474
475 .mw-infobox-right {
476 margin: 0.5em 0.5em 0.5em 49px;
477 }
478
479 /* Note on preview page */
480 .previewnote {
481 color: #c00;
482 margin-bottom: 1em;
483 }
484
485 .previewnote p {
486 text-indent: 3em;
487 margin: 0.8em 0;
488 }
489
490 .visualClear {
491 clear: both;
492 }
493
494 /**
495 * Data table style
496 *
497 * Transparent table with suddle borders
498 * and blue row-highlighting.
499 */
500 .mw-datatable {
501 border-collapse: collapse;
502 }
503
504 .mw-datatable,
505 .mw-datatable td,
506 .mw-datatable th {
507 border: 1px solid #aaa;
508 padding: 0 0.15em 0 0.15em;
509 }
510
511 .mw-datatable th {
512 background-color: #ddf;
513 }
514
515 .mw-datatable td {
516 background-color: #fff;
517 }
518
519 .mw-datatable tr:hover td {
520 background-color: #eef;
521 }
522
523 /* Correct directionality when page dir is different from site/user dir */
524 .mw-content-ltr ul,
525 .mw-content-rtl .mw-content-ltr ul {
526 /* @noflip */
527 margin: 0.3em 0 0 1.6em;
528 padding: 0;
529 }
530
531 .mw-content-rtl ul,
532 .mw-content-ltr .mw-content-rtl ul {
533 /* @noflip */
534 margin: 0.3em 1.6em 0 0;
535 padding: 0;
536 }
537
538 .mw-content-ltr ol,
539 .mw-content-rtl .mw-content-ltr ol {
540 /* @noflip */
541 margin: 0.3em 0 0 3.2em;
542 padding: 0;
543 }
544
545 .mw-content-rtl ol,
546 .mw-content-ltr .mw-content-rtl ol {
547 /* @noflip */
548 margin: 0.3em 3.2em 0 0;
549 padding: 0;
550 }
551
552 /* @noflip */
553 .mw-content-ltr dd,
554 .mw-content-rtl .mw-content-ltr dd {
555 margin-left: 1.6em;
556 margin-right: 0;
557 }
558
559 /* @noflip */
560 .mw-content-rtl dd,
561 .mw-content-ltr .mw-content-rtl dd {
562 margin-right: 1.6em;
563 margin-left: 0;
564 }
565
566 .mw-ajax-loader {
567 background-image: url( images/ajax-loader.gif );
568 background-position: center center;
569 background-repeat: no-repeat;
570 padding: 16px;
571 position: relative;
572 top: -16px;
573 }
574
575 .mw-small-spinner {
576 padding: 10px !important;
577 margin-right: 0.6em;
578 background-image: url( images/spinner.gif );
579 background-position: center center;
580 background-repeat: no-repeat;
581 }
582
583 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
584 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
585 h1:lang(anp),
586 h1:lang(as),
587 h1:lang(bh), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
588 h1:lang(bho),
589 h1:lang(bn),
590 h1:lang(gu),
591 h1:lang(hi),
592 h1:lang(kn),
593 h1:lang(ks),
594 h1:lang(ml),
595 h1:lang(mr),
596 h1:lang(my),
597 h1:lang(mai),
598 h1:lang(ne),
599 h1:lang(new),
600 h1:lang(or),
601 h1:lang(pa),
602 h1:lang(pi),
603 h1:lang(sa),
604 h1:lang(ta),
605 h1:lang(te) {
606 line-height: 1.6em !important;
607 }
608
609 h2:lang(anp), h3:lang(anp), h4:lang(anp), h5:lang(anp), h6:lang(anp),
610 h2:lang(as), h3:lang(as), h4:lang(as), h5:lang(as), h6:lang(as),
611 h2:lang(bho), h3:lang(bho), h4:lang(bho), h5:lang(bho), h6:lang(bho),
612 h2:lang(bh), h3:lang(bh), h4:lang(bh), h5:lang(bh), h6:lang(bh),
613 h2:lang(bn), h3:lang(bn), h4:lang(bn), h5:lang(bn), h6:lang(bn),
614 h2:lang(gu), h3:lang(gu), h4:lang(gu), h5:lang(gu), h6:lang(gu),
615 h2:lang(hi), h3:lang(hi), h4:lang(hi), h5:lang(hi), h6:lang(hi),
616 h2:lang(kn), h3:lang(kn), h4:lang(kn), h5:lang(kn), h6:lang(kn),
617 h2:lang(ks), h3:lang(ks), h4:lang(ks), h5:lang(ks), h6:lang(ks),
618 h2:lang(ml), h3:lang(ml), h4:lang(ml), h5:lang(ml), h6:lang(ml),
619 h2:lang(mr), h3:lang(mr), h4:lang(mr), h5:lang(mr), h6:lang(mr),
620 h2:lang(my), h3:lang(my), h4:lang(my), h5:lang(my), h6:lang(my),
621 h2:lang(mai), h3:lang(mai), h4:lang(mai), h5:lang(mai), h6:lang(mai),
622 h2:lang(ne), h3:lang(ne), h4:lang(ne), h5:lang(ne), h6:lang(ne),
623 h2:lang(new), h3:lang(new), h4:lang(new), h5:lang(new), h6:lang(new),
624 h2:lang(or), h3:lang(or), h4:lang(or), h5:lang(or), h6:lang(or),
625 h2:lang(pa), h3:lang(pa), h4:lang(pa), h5:lang(pa), h6:lang(pa),
626 h2:lang(pi), h3:lang(pi), h4:lang(pi), h5:lang(pi), h6:lang(pi),
627 h2:lang(sa), h3:lang(sa), h4:lang(sa), h5:lang(sa), h6:lang(sa),
628 h2:lang(ta), h3:lang(ta), h4:lang(ta), h5:lang(ta), h6:lang(ta),
629 h2:lang(te), h3:lang(te), h4:lang(te), h5:lang(te), h6:lang(te) {
630 line-height: 1.2em;
631 }
632
633 /* Localised ordered list numbering for some languages */
634 ol:lang(azb) li,
635 ol:lang(bcc) li,
636 ol:lang(bgn) li,
637 ol:lang(bqi) li,
638 ol:lang(fa) li,
639 ol:lang(glk) li,
640 ol:lang(kk-arab) li,
641 ol:lang(lrc) li,
642 ol:lang(luz) li,
643 ol:lang(mzn) li {
644 list-style-type: -moz-persian;
645 list-style-type: persian;
646 }
647
648 ol:lang(ckb) li,
649 ol:lang(sdh) li {
650 list-style-type: -moz-arabic-indic;
651 list-style-type: arabic-indic;
652 }
653
654 ol:lang(hi) li,
655 ol:lang(mr) li {
656 list-style-type: -moz-devanagari;
657 list-style-type: devanagari;
658 }
659
660 ol:lang(as) li,
661 ol:lang(bn) li {
662 list-style-type: -moz-bengali;
663 list-style-type: bengali;
664 }
665
666 ol:lang(or) li {
667 list-style-type: -moz-oriya;
668 list-style-type: oriya;
669 }
670
671 #toc ul, .toc ul {
672 margin: .3em 0;
673 }
674
675 /* Correct directionality when page dir is different from site/user dir */
676 /* @noflip */ .mw-content-ltr .toc ul,
677 .mw-content-ltr #toc ul,
678 .mw-content-rtl .mw-content-ltr .toc ul,
679 .mw-content-rtl .mw-content-ltr #toc ul {
680 text-align: left;
681 }
682
683 /* @noflip */ .mw-content-rtl .toc ul,
684 .mw-content-rtl #toc ul,
685 .mw-content-ltr .mw-content-rtl .toc ul,
686 .mw-content-ltr .mw-content-rtl #toc ul {
687 text-align: right;
688 }
689
690 /* @noflip */ .mw-content-ltr .toc ul ul,
691 .mw-content-ltr #toc ul ul,
692 .mw-content-rtl .mw-content-ltr .toc ul ul,
693 .mw-content-rtl .mw-content-ltr #toc ul ul {
694 margin: 0 0 0 2em;
695 }
696
697 /* @noflip */ .mw-content-rtl .toc ul ul,
698 .mw-content-rtl #toc ul ul,
699 .mw-content-ltr .mw-content-rtl .toc ul ul,
700 .mw-content-ltr .mw-content-rtl #toc ul ul {
701 margin: 0 2em 0 0;
702 }
703
704 #toc #toctitle,
705 .toc #toctitle,
706 #toc .toctitle,
707 .toc .toctitle {
708 direction: ltr;
709 }
710
711 /* tooltip styles */
712 .mw-help-field-hint {
713 display: none;
714 margin-left: 2px;
715 margin-bottom: -8px;
716 padding: 0 0 0 15px;
717 background-image: url( images/help-question.gif );
718 background-position: left center;
719 background-repeat: no-repeat;
720 cursor: pointer;
721 font-size: .8em;
722 text-decoration: underline;
723 color: #0645ad;
724 }
725
726 .mw-help-field-hint:hover {
727 background-image: url( images/help-question-hover.gif );
728 }
729
730 .mw-help-field-data {
731 display: block;
732 background-color: #d6f3ff;
733 padding: 5px 8px 4px 8px;
734 border: 1px solid #5dc9f4;
735 margin-left: 20px;
736 }
737
738 #mw-clearyourcache,
739 #mw-sitecsspreview,
740 #mw-sitejspreview,
741 #mw-usercsspreview,
742 #mw-userjspreview {
743 direction: ltr;
744 unicode-bidi: embed;
745 }
746
747 /* Correct user & content directionality when viewing a diff */
748 .diff-currentversion-title,
749 .diff {
750 direction: ltr;
751 unicode-bidi: embed;
752 }
753
754 /* @noflip */ .diff-contentalign-right td {
755 direction: rtl;
756 unicode-bidi: embed;
757 }
758
759 /* @noflip */ .diff-contentalign-left td {
760 direction: ltr;
761 unicode-bidi: embed;
762 }
763
764 .diff-multi,
765 .diff-otitle,
766 .diff-ntitle,
767 .diff-lineno {
768 direction: ltr !important;
769 unicode-bidi: embed;
770 }
771
772 #mw-revision-info,
773 #mw-revision-info-current,
774 #mw-revision-nav {
775 direction: ltr;
776 display: inline;
777 }
778
779 /* Images */
780
781 /* @noflip */ div.tright,
782 div.floatright,
783 table.floatright {
784 clear: right;
785 float: right;
786 }
787
788 /* @noflip */ div.tleft,
789 div.floatleft,
790 table.floatleft {
791 float: left;
792 clear: left;
793 }
794
795 div.floatright,
796 table.floatright,
797 div.floatleft,
798 table.floatleft {
799 position: relative;
800 }
801
802 /* bug 12205 */
803 #mw-credits a {
804 unicode-bidi: embed;
805 }
806
807 /* Accessibility */
808 .mw-jump,
809 #jump-to-nav {
810 overflow: hidden;
811 height: 0;
812 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
813 }
814
815 /* Print footer should be hidden by default in screen. */
816 .printfooter {
817 display: none;
818 }
819
820 /* For developers */
821 .xdebug-error {
822 position: absolute;
823 z-index: 99;
824 }
825
826 .mw-editsection,
827 #jump-to-nav {
828 -moz-user-select: none;
829 -webkit-user-select: none;
830 -ms-user-select: none;
831 user-select: none;
832 }
833
834 /* Display editsection links smaller and next to headings */
835 .mw-editsection,
836 .mw-editsection-like {
837 font-size: small;
838 font-weight: normal;
839 margin-left: 1em;
840 vertical-align: baseline;
841 /* Reset line-height; headings tend to have it set to larger values */
842 line-height: 1em;
843 /* As .mw-editsection is a <span> (inline element), it is treated as part */
844 /* of the heading content when selecting text by multiple clicks and thus */
845 /* selected together with heading content, despite the user-select: none; */
846 /* rule set above. This enforces non-selection without changing the look. */
847 display: inline-block;
848 }
849
850 /* Correct directionality when page dir is different from site/user dir */
851 /* @noflip */
852 .mw-content-ltr .mw-editsection,
853 .mw-content-rtl .mw-content-ltr .mw-editsection {
854 margin-left: 1em;
855 }
856
857 /* @noflip */
858 .mw-content-rtl .mw-editsection,
859 .mw-content-ltr .mw-content-rtl .mw-editsection {
860 margin-right: 1em;
861 }
862
863 /* Prevent citations and subscripts from interfering with the line-height */
864 sup,
865 sub {
866 line-height: 1;
867 }