248ea19fc14f96f753b9e7ec9bdf81334e105023
[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: yellow;
48 color: black;
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: -webkit-isolate;
116 unicode-bidi: isolate;
117 }
118
119 /**
120 * Links to redirects appear italicized on [[Special:AllPages]], [[Special:PrefixIndex]],
121 * [[Special:Watchlist/edit]] and in category listings.
122 */
123 .allpagesredirect,
124 .redirect-in-category,
125 .watchlistredir {
126 font-style: italic;
127 }
128
129 /* Comment and username portions of RC entries */
130 span.comment {
131 font-style: italic;
132 }
133
134 span.changedby {
135 font-size: 95%;
136 }
137
138 /* Math */
139 .texvc {
140 direction: ltr;
141 unicode-bidi: embed;
142 }
143
144 img.tex {
145 vertical-align: middle;
146 }
147
148 span.texhtml {
149 font-family: serif;
150 }
151
152 /**
153 * Add a bit of margin space between the preview and the toolbar.
154 * This replaces the ugly <p><br /></p> we used to insert into the page source
155 */
156 #wikiPreview.ontop {
157 margin-bottom: 1em;
158 }
159
160 /* Stop floats from intruding into edit area in previews */
161 #editform,
162 #toolbar,
163 #wpTextbox1 {
164 clear: both;
165 }
166
167 /**
168 * File description page
169 */
170
171 div.mw-filepage-resolutioninfo {
172 font-size: smaller;
173 }
174
175 /**
176 * File histories
177 */
178 h2#filehistory {
179 clear: both;
180 }
181
182 table.filehistory th,
183 table.filehistory td {
184 vertical-align: top;
185 }
186
187 table.filehistory th {
188 text-align: left;
189 }
190
191 table.filehistory td.mw-imagepage-filesize,
192 table.filehistory th.mw-imagepage-filesize {
193 white-space: nowrap;
194 }
195
196 table.filehistory td.filehistory-selected {
197 font-weight: bold;
198 }
199
200 /**
201 * Add a checkered background image on hover for file
202 * description pages. (bug 26470)
203 */
204 .filehistory a img,
205 #file img:hover {
206 /* @embed */
207 background: white url(images/checker.png) repeat;
208 }
209
210 /**
211 * rev_deleted stuff
212 */
213 li span.deleted,
214 span.history-deleted {
215 text-decoration: line-through;
216 color: #888;
217 font-style: italic;
218 }
219
220 /**
221 * Patrol stuff
222 */
223 .not-patrolled {
224 background-color: #ffa;
225 }
226
227 .unpatrolled {
228 font-weight: bold;
229 color: red;
230 }
231
232 div.patrollink {
233 font-size: 75%;
234 text-align: right;
235 }
236
237 /**
238 * Forms
239 */
240 td.mw-label {
241 text-align: right;
242 }
243
244 td.mw-input {
245 text-align: left;
246 }
247
248 td.mw-submit {
249 text-align: left;
250 }
251
252 td.mw-label {
253 vertical-align: middle;
254 }
255
256 .prefsection td.mw-label {
257 width: 20%;
258 }
259
260 .prefsection table {
261 width: 100%;
262 }
263
264 .prefsection table.mw-htmlform-matrix {
265 width: auto;
266 }
267
268 .mw-icon-question {
269 /* SVG support using a transparent gradient to guarantee cross-browser
270 * compatibility (browsers able to understand gradient syntax support also SVG).
271 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
272 background-image: url(images/question.png);
273 background-image: -webkit-linear-gradient(transparent, transparent), url(images/question.svg);
274 background-image: linear-gradient(transparent, transparent), url(images/question.svg);
275 background-repeat: no-repeat;
276 background-size: 13px 13px;
277 display: inline-block;
278 height: 13px;
279 width: 13px;
280 margin-left: 4px;
281 }
282
283 .mw-icon-question:lang(ar),
284 .mw-icon-question:lang(fa),
285 .mw-icon-question:lang(ur) {
286 -webkit-transform: scaleX(-1);
287 -ms-transform: scaleX(-1);
288 transform: scaleX(-1);
289 }
290
291 td.mw-submit {
292 white-space: nowrap;
293 }
294
295 table.mw-htmlform-nolabel td.mw-label {
296 width: 1px;
297 }
298
299 tr.mw-htmlform-vertical-label td.mw-label {
300 text-align: left !important;
301 }
302
303 .mw-htmlform-invalid-input td.mw-input input {
304 border-color: red;
305 }
306
307 .mw-htmlform-flatlist div.mw-htmlform-flatlist-item {
308 display: inline;
309 margin-right: 1em;
310 white-space: nowrap;
311 }
312
313 .mw-htmlform-matrix td {
314 padding-left: 0.5em;
315 padding-right: 0.5em;
316 }
317
318 input#wpSummary {
319 width: 80%;
320 margin-bottom: 1em;
321 }
322
323 /**
324 * Image captions.
325 *
326 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
327 */
328
329 /* @noflip */
330 .mw-content-ltr .thumbcaption {
331 text-align: left;
332 }
333
334 /* @noflip */
335 .mw-content-ltr .magnify {
336 float: right;
337 }
338
339 /* @noflip */
340 .mw-content-rtl .thumbcaption {
341 text-align: right;
342 }
343
344 /* @noflip */
345 .mw-content-rtl .magnify {
346 float: left;
347 }
348
349 /**
350 * Categories
351 */
352 #catlinks {
353 /**
354 * Overrides text justification (user preference)
355 * See bug 31990
356 */
357 text-align: left;
358 }
359
360 .catlinks ul {
361 display: inline;
362 margin: 0;
363 padding: 0;
364 list-style: none;
365 list-style-type: none;
366 list-style-image: none;
367 vertical-align: middle !ie;
368 }
369
370 .catlinks li {
371 display: inline-block;
372 line-height: 1.25em;
373 border-left: 1px solid #AAA;
374 margin: 0.125em 0;
375 padding: 0 0.5em;
376 zoom: 1;
377 display: inline !ie;
378 }
379
380 .catlinks li:first-child {
381 padding-left: 0.25em;
382 border-left: none;
383 }
384
385 /* (bug 5346) make category redirects italic */
386 .catlinks li a.mw-redirect {
387 font-style: italic;
388 }
389
390 /**
391 * Hidden categories
392 */
393 .mw-hidden-cats-hidden {
394 display: none;
395 }
396
397 .catlinks-allhidden {
398 display: none;
399 }
400
401 /**
402 * Convenience links to edit block, delete and protect reasons
403 * and upload licenses
404 */
405 p.mw-ipb-conveniencelinks,
406 p.mw-protect-editreasons,
407 p.mw-filedelete-editreasons,
408 p.mw-delete-editreasons,
409 p.mw-revdel-editreasons,
410 p.mw-upload-editlicenses {
411 font-size: 90%;
412 text-align: right;
413 }
414
415 /* Page history styling */
416
417 /* The auto-generated edit comments */
418 .autocomment {
419 color: gray;
420 }
421
422 #pagehistory .history-user {
423 margin-left: 0.4em;
424 margin-right: 0.2em;
425 }
426
427 #pagehistory span.minor {
428 font-weight: bold;
429 }
430
431 #pagehistory li {
432 border: 1px solid white;
433 }
434
435 #pagehistory li.selected {
436 background-color: #f9f9f9;
437 border: 1px dashed #aaa;
438 }
439
440 .mw-history-revisionactions, #mw-fileduplicatesearch-icon {
441 float: right;
442 }
443
444 /** Generic minor/bot/newpage styling (recent changes) */
445 .newpage,
446 .minoredit,
447 .botedit {
448 font-weight: bold;
449 }
450
451 #shared-image-dup,
452 #shared-image-conflict {
453 font-style: italic;
454 }
455
456 /**
457 * Recreating deleted page warning
458 * Reupload file warning
459 * Page protection warning
460 * incl. log entries for these warnings
461 */
462 div.mw-warning-with-logexcerpt {
463 padding: 3px;
464 margin-bottom: 3px;
465 border: 2px solid #2F6FAB;
466 clear: both;
467 }
468
469 div.mw-warning-with-logexcerpt ul li {
470 font-size: 90%;
471 }
472
473 /* (show/hide) revision deletion links */
474 span.mw-revdelundel-link,
475 strong.mw-revdelundel-link {
476 font-size: 90%;
477 }
478
479 span.mw-revdelundel-hidden,
480 input.mw-revdelundel-hidden {
481 visibility: hidden;
482 }
483
484 td.mw-revdel-checkbox,
485 th.mw-revdel-checkbox {
486 padding-right: 10px;
487 text-align: center;
488 }
489
490 /* red links; see bug 36276 */
491 a.new {
492 color: #BA0000;
493 }
494
495 /* feed links */
496 a.feedlink {
497 /* SVG support using a transparent gradient to guarantee cross-browser
498 * compatibility (browsers able to understand gradient syntax support also SVG).
499 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
500 background-image: url(images/feed-icon.png);
501 background-image: -webkit-linear-gradient(transparent, transparent), url(images/feed-icon.svg);
502 background-image: linear-gradient(transparent, transparent), url(images/feed-icon.svg);
503 background-position: center left;
504 background-repeat: no-repeat;
505 background-size: 12px 12px;
506 padding-left: 16px;
507 }
508
509 /* Plainlinks - this can be used to switch
510 * off special external link styling */
511 .plainlinks a.external {
512 background: none !important;
513 padding: 0 !important;
514 }
515
516 /* External URLs should always be treated as LTR (bug 4330) */
517 /* @noflip */ .rtl a.external.free,
518 .rtl a.external.autonumber {
519 direction: ltr;
520 unicode-bidi: embed;
521 }
522
523 /**
524 * wikitable class for skinning normal tables
525 * keep in sync with commonPrint.css
526 */
527 table.wikitable {
528 margin: 1em 0;
529 background-color: #f9f9f9;
530 border: 1px solid #aaa;
531 border-collapse: collapse;
532 color: black;
533 }
534
535 table.wikitable > tr > th,
536 table.wikitable > tr > td,
537 table.wikitable > * > tr > th,
538 table.wikitable > * > tr > td {
539 border: 1px solid #aaa;
540 padding: 0.2em 0.4em;
541 }
542
543 table.wikitable > tr > th,
544 table.wikitable > * > tr > th {
545 background-color: #f2f2f2;
546 text-align: center;
547 }
548
549 table.wikitable > caption {
550 font-weight: bold;
551 }
552
553 /* success and error messages */
554 .error,
555 .warning,
556 .success {
557 font-size: larger;
558 }
559
560 .error {
561 color: #cc0000;
562 }
563
564 .warning {
565 color: #705000;
566 }
567
568 .success {
569 color: #009000;
570 }
571
572 .errorbox,
573 .warningbox,
574 .successbox {
575 border: 1px solid;
576 padding: .5em 1em;
577 margin-bottom: 1em;
578 display: inline-block;
579 zoom: 1;
580 *display: inline;
581 }
582
583 .errorbox h2,
584 .warningbox h2,
585 .successbox h2 {
586 font-size: 1em;
587 color: inherit;
588 font-weight: bold;
589 display: inline;
590 margin: 0 .5em 0 0;
591 border: none;
592 }
593
594 .errorbox {
595 color: #cc0000;
596 border-color: #fac5c5;
597 background-color: #fae3e3;
598 }
599
600 .warningbox {
601 color: #705000;
602 border-color: #fde29b;
603 background-color: #fdf1d1;
604 }
605
606 .successbox {
607 color: #008000;
608 border-color: #b7fdb5;
609 background-color: #e1fddf;
610 }
611
612 /* general info/warning box for SP */
613 .mw-infobox {
614 border: 2px solid #ff7f00;
615 margin: 0.5em;
616 clear: left;
617 overflow: hidden;
618 }
619
620 .mw-infobox-left {
621 margin: 7px;
622 float: left;
623 width: 35px;
624 }
625
626 .mw-infobox-right {
627 margin: 0.5em 0.5em 0.5em 49px;
628 }
629
630 /* Note on preview page */
631 .previewnote {
632 color: #c00;
633 margin-bottom: 1em;
634 }
635
636 .previewnote p {
637 text-indent: 3em;
638 margin: 0.8em 0;
639 }
640
641 .visualClear {
642 clear: both;
643 }
644
645 /**
646 * Data table style
647 *
648 * Transparent table with suddle borders
649 * and blue row-highlighting.
650 */
651 .mw-datatable {
652 border-collapse: collapse;
653 }
654
655 .mw-datatable,
656 .mw-datatable td,
657 .mw-datatable th {
658 border: 1px solid #aaaaaa;
659 padding: 0 0.15em 0 0.15em;
660 }
661
662 .mw-datatable th {
663 background-color: #ddddff;
664 }
665
666 .mw-datatable td {
667 background-color: #ffffff;
668 }
669
670 .mw-datatable tr:hover td {
671 background-color: #eeeeff;
672 }
673
674 /* filetoc */
675 ul#filetoc {
676 text-align: center;
677 border: 1px solid #aaaaaa;
678 background-color: #f9f9f9;
679 padding: 5px;
680 font-size: 95%;
681 margin-bottom: 0.5em;
682 margin-left: 0;
683 margin-right: 0;
684 }
685
686 #filetoc li {
687 display: inline;
688 list-style-type: none;
689 padding-right: 2em;
690 }
691
692 /* Classes for Exif data display */
693 table.mw_metadata {
694 font-size: 0.8em;
695 margin-left: 0.5em;
696 margin-bottom: 0.5em;
697 width: 400px;
698 }
699
700 table.mw_metadata caption {
701 font-weight: bold;
702 }
703
704 table.mw_metadata th {
705 font-weight: normal;
706 }
707
708 table.mw_metadata td {
709 padding: 0.1em;
710 }
711
712 table.mw_metadata {
713 border: none;
714 border-collapse: collapse;
715 }
716
717 table.mw_metadata td,
718 table.mw_metadata th {
719 text-align: center;
720 border: 1px solid #aaaaaa;
721 padding-left: 5px;
722 padding-right: 5px;
723 }
724
725 table.mw_metadata th {
726 background-color: #f9f9f9;
727 }
728
729 table.mw_metadata td {
730 background-color: #fcfcfc;
731 }
732
733 table.mw_metadata ul.metadata-langlist {
734 list-style-type: none;
735 list-style-image: none;
736 padding-right: 5px;
737 padding-left: 5px;
738 margin: 0;
739 }
740
741 /* Correct directionality when page dir is different from site/user dir */
742 .mw-content-ltr ul,
743 .mw-content-rtl .mw-content-ltr ul {
744 /* @noflip */
745 margin: 0.3em 0 0 1.6em;
746 padding: 0;
747 }
748
749 .mw-content-rtl ul,
750 .mw-content-ltr .mw-content-rtl ul {
751 /* @noflip */
752 margin: 0.3em 1.6em 0 0;
753 padding: 0;
754 }
755
756 .mw-content-ltr ol,
757 .mw-content-rtl .mw-content-ltr ol {
758 /* @noflip */
759 margin: 0.3em 0 0 3.2em;
760 padding: 0;
761 }
762
763 .mw-content-rtl ol,
764 .mw-content-ltr .mw-content-rtl ol {
765 /* @noflip */
766 margin: 0.3em 3.2em 0 0;
767 padding: 0;
768 }
769
770 /* @noflip */
771 .mw-content-ltr dd,
772 .mw-content-rtl .mw-content-ltr dd {
773 margin-left: 1.6em;
774 margin-right: 0;
775 }
776
777 /* @noflip */
778 .mw-content-rtl dd,
779 .mw-content-ltr .mw-content-rtl dd {
780 margin-right: 1.6em;
781 margin-left: 0;
782 }
783
784 /* Galleries */
785 /* These display attributes look nonsensical, but are needed to support IE and FF2 */
786 /* Don't forget to update commonPrint.css */
787 li.gallerybox {
788 vertical-align: top;
789 display: -moz-inline-box;
790 display: inline-block;
791 }
792
793 ul.gallery,
794 li.gallerybox {
795 zoom: 1;
796 *display: inline;
797 }
798
799 ul.gallery {
800 margin: 2px;
801 padding: 2px;
802 display: block;
803 }
804
805 li.gallerycaption {
806 font-weight: bold;
807 text-align: center;
808 display: block;
809 word-wrap: break-word;
810 }
811
812 li.gallerybox div.thumb {
813 text-align: center;
814 border: 1px solid #ccc;
815 background-color: #f9f9f9;
816 margin: 2px;
817 }
818
819 li.gallerybox div.thumb img {
820 display: block;
821 margin: 0 auto;
822 }
823
824 div.gallerytext {
825 overflow: hidden;
826 font-size: 94%;
827 padding: 2px 4px;
828 word-wrap: break-word;
829 }
830
831 /* new gallery stuff */
832 ul.mw-gallery-nolines li.gallerybox div.thumb {
833 background-color: transparent;
834 border: none;
835 }
836
837 ul.mw-gallery-nolines li.gallerybox div.gallerytext {
838 text-align: center;
839 }
840
841 /* height constrained gallery */
842
843 ul.mw-gallery-packed li.gallerybox div.thumb,
844 ul.mw-gallery-packed-overlay li.gallerybox div.thumb,
845 ul.mw-gallery-packed-hover li.gallerybox div.thumb {
846 background-color: transparent;
847 border: none;
848 }
849
850 ul.mw-gallery-packed li.gallerybox div.thumb img,
851 ul.mw-gallery-packed-overlay li.gallerybox div.thumb img,
852 ul.mw-gallery-packed-hover li.gallerybox div.thumb img {
853 margin: 0 auto;
854 }
855
856 ul.mw-gallery-packed-hover li.gallerybox,
857 ul.mw-gallery-packed-overlay li.gallerybox {
858 position: relative;
859 }
860
861 ul.mw-gallery-packed-hover div.gallerytextwrapper {
862 overflow: hidden;
863 height: 0;
864 }
865
866 ul.mw-gallery-packed-hover li.gallerybox:hover div.gallerytextwrapper,
867 ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper,
868 ul.mw-gallery-packed-hover li.gallerybox.mw-gallery-focused div.gallerytextwrapper {
869 position: absolute;
870 background: white;
871 background: rgba(255, 255, 255, 0.8);
872 padding: 5px 10px;
873 bottom: 0;
874 left: 0; /* Needed for IE */
875 height: auto;
876 font-weight: bold;
877 margin: 2px; /* correspond to style on div.thumb */
878 }
879
880 ul.mw-gallery-packed-hover,
881 ul.mw-gallery-packed-overlay,
882 ul.mw-gallery-packed {
883 text-align: center;
884 }
885
886 .mw-ajax-loader {
887 background-image: url(images/ajax-loader.gif);
888 background-position: center center;
889 background-repeat: no-repeat;
890 padding: 16px;
891 position: relative;
892 top: -16px;
893 }
894
895 .mw-small-spinner {
896 padding: 10px !important;
897 margin-right: 0.6em;
898 background-image: url(images/spinner.gif);
899 background-position: center center;
900 background-repeat: no-repeat;
901 }
902
903 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
904 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
905 h1:lang(anp),
906 h1:lang(as),
907 h1:lang(bh), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
908 h1:lang(bho),
909 h1:lang(bn),
910 h1:lang(gu),
911 h1:lang(hi),
912 h1:lang(kn),
913 h1:lang(ks),
914 h1:lang(ml),
915 h1:lang(mr),
916 h1:lang(my),
917 h1:lang(mai),
918 h1:lang(ne),
919 h1:lang(new),
920 h1:lang(or),
921 h1:lang(pa),
922 h1:lang(pi),
923 h1:lang(sa),
924 h1:lang(ta),
925 h1:lang(te) {
926 line-height: 1.6em !important;
927 }
928
929 h2:lang(anp), h3:lang(anp), h4:lang(anp), h5:lang(anp), h6:lang(anp),
930 h2:lang(as), h3:lang(as), h4:lang(as), h5:lang(as), h6:lang(as),
931 h2:lang(bho), h3:lang(bho), h4:lang(bho), h5:lang(bho), h6:lang(bho),
932 h2:lang(bh), h3:lang(bh), h4:lang(bh), h5:lang(bh), h6:lang(bh),
933 h2:lang(bn), h3:lang(bn), h4:lang(bn), h5:lang(bn), h6:lang(bn),
934 h2:lang(gu), h3:lang(gu), h4:lang(gu), h5:lang(gu), h6:lang(gu),
935 h2:lang(hi), h3:lang(hi), h4:lang(hi), h5:lang(hi), h6:lang(hi),
936 h2:lang(kn), h3:lang(kn), h4:lang(kn), h5:lang(kn), h6:lang(kn),
937 h2:lang(ks), h3:lang(ks), h4:lang(ks), h5:lang(ks), h6:lang(ks),
938 h2:lang(ml), h3:lang(ml), h4:lang(ml), h5:lang(ml), h6:lang(ml),
939 h2:lang(mr), h3:lang(mr), h4:lang(mr), h5:lang(mr), h6:lang(mr),
940 h2:lang(my), h3:lang(my), h4:lang(my), h5:lang(my), h6:lang(my),
941 h2:lang(mai), h3:lang(mai), h4:lang(mai), h5:lang(mai), h6:lang(mai),
942 h2:lang(ne), h3:lang(ne), h4:lang(ne), h5:lang(ne), h6:lang(ne),
943 h2:lang(new), h3:lang(new), h4:lang(new), h5:lang(new), h6:lang(new),
944 h2:lang(or), h3:lang(or), h4:lang(or), h5:lang(or), h6:lang(or),
945 h2:lang(pa), h3:lang(pa), h4:lang(pa), h5:lang(pa), h6:lang(pa),
946 h2:lang(pi), h3:lang(pi), h4:lang(pi), h5:lang(pi), h6:lang(pi),
947 h2:lang(sa), h3:lang(sa), h4:lang(sa), h5:lang(sa), h6:lang(sa),
948 h2:lang(ta), h3:lang(ta), h4:lang(ta), h5:lang(ta), h6:lang(ta),
949 h2:lang(te), h3:lang(te), h4:lang(te), h5:lang(te), h6:lang(te) {
950 line-height: 1.2em;
951 }
952
953 /* Localised ordered list numbering for some languages */
954 ol:lang(azb) li,
955 ol:lang(bcc) li,
956 ol:lang(bgn) li,
957 ol:lang(bqi) li,
958 ol:lang(fa) li,
959 ol:lang(glk) li,
960 ol:lang(kk-arab) li,
961 ol:lang(lrc) li,
962 ol:lang(luz) li,
963 ol:lang(mzn) li {
964 list-style-type: -moz-persian;
965 list-style-type: persian;
966 }
967
968 ol:lang(ckb) li,
969 ol:lang(sdh) li {
970 list-style-type: -moz-arabic-indic;
971 list-style-type: arabic-indic;
972 }
973
974 ol:lang(hi) li,
975 ol:lang(mr) li {
976 list-style-type: -moz-devanagari;
977 list-style-type: devanagari;
978 }
979
980 ol:lang(as) li,
981 ol:lang(bn) li {
982 list-style-type: -moz-bengali;
983 list-style-type: bengali;
984 }
985
986 ol:lang(or) li {
987 list-style-type: -moz-oriya;
988 list-style-type: oriya;
989 }
990
991 #toc ul, .toc ul {
992 margin: .3em 0;
993 }
994
995 /* Correct directionality when page dir is different from site/user dir */
996 /* @noflip */ .mw-content-ltr .toc ul,
997 .mw-content-ltr #toc ul,
998 .mw-content-rtl .mw-content-ltr .toc ul,
999 .mw-content-rtl .mw-content-ltr #toc ul {
1000 text-align: left;
1001 }
1002
1003 /* @noflip */ .mw-content-rtl .toc ul,
1004 .mw-content-rtl #toc ul,
1005 .mw-content-ltr .mw-content-rtl .toc ul,
1006 .mw-content-ltr .mw-content-rtl #toc ul {
1007 text-align: right;
1008 }
1009
1010 /* @noflip */ .mw-content-ltr .toc ul ul,
1011 .mw-content-ltr #toc ul ul,
1012 .mw-content-rtl .mw-content-ltr .toc ul ul,
1013 .mw-content-rtl .mw-content-ltr #toc ul ul {
1014 margin: 0 0 0 2em;
1015 }
1016
1017 /* @noflip */ .mw-content-rtl .toc ul ul,
1018 .mw-content-rtl #toc ul ul,
1019 .mw-content-ltr .mw-content-rtl .toc ul ul,
1020 .mw-content-ltr .mw-content-rtl #toc ul ul {
1021 margin: 0 2em 0 0;
1022 }
1023
1024 #toc #toctitle,
1025 .toc #toctitle,
1026 #toc .toctitle,
1027 .toc .toctitle {
1028 direction: ltr;
1029 }
1030
1031 /* tooltip styles */
1032 .mw-help-field-hint {
1033 display: none;
1034 margin-left: 2px;
1035 margin-bottom: -8px;
1036 padding: 0 0 0 15px;
1037 background-image: url(images/help-question.gif);
1038 background-position: left center;
1039 background-repeat: no-repeat;
1040 cursor: pointer;
1041 font-size: .8em;
1042 text-decoration: underline;
1043 color: #0645ad;
1044 }
1045
1046 .mw-help-field-hint:hover {
1047 background-image: url(images/help-question-hover.gif);
1048 }
1049
1050 .mw-help-field-data {
1051 display: block;
1052 background-color: #d6f3ff;
1053 padding: 5px 8px 4px 8px;
1054 border: 1px solid #5dc9f4;
1055 margin-left: 20px;
1056 }
1057
1058 #mw-clearyourcache,
1059 #mw-sitecsspreview,
1060 #mw-sitejspreview,
1061 #mw-usercsspreview,
1062 #mw-userjspreview {
1063 direction: ltr;
1064 unicode-bidi: embed;
1065 }
1066
1067 /* Correct user & content directionality when viewing a diff */
1068 .diff-currentversion-title,
1069 .diff {
1070 direction: ltr;
1071 unicode-bidi: embed;
1072 }
1073
1074 /* @noflip */ .diff-contentalign-right td {
1075 direction: rtl;
1076 unicode-bidi: embed;
1077 }
1078
1079 /* @noflip */ .diff-contentalign-left td {
1080 direction: ltr;
1081 unicode-bidi: embed;
1082 }
1083
1084 .diff-multi,
1085 .diff-otitle,
1086 .diff-ntitle,
1087 .diff-lineno {
1088 direction: ltr !important;
1089 unicode-bidi: embed;
1090 }
1091
1092 #mw-revision-info,
1093 #mw-revision-info-current,
1094 #mw-revision-nav {
1095 direction: ltr;
1096 display: inline;
1097 }
1098
1099 /* Images */
1100
1101 /* @noflip */ div.tright,
1102 div.floatright,
1103 table.floatright {
1104 clear: right;
1105 float: right;
1106 }
1107
1108 /* @noflip */ div.tleft,
1109 div.floatleft,
1110 table.floatleft {
1111 float: left;
1112 clear: left;
1113 }
1114
1115 div.floatright,
1116 table.floatright,
1117 div.floatleft,
1118 table.floatleft {
1119 position: relative;
1120 }
1121
1122 /* bug 12205 */
1123 #mw-credits a {
1124 unicode-bidi: embed;
1125 }
1126
1127 /* Accessibility */
1128 .mw-jump,
1129 #jump-to-nav {
1130 overflow: hidden;
1131 height: 0;
1132 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
1133 }
1134
1135 /* Print footer should be hidden by default in screen. */
1136 .printfooter {
1137 display: none;
1138 }
1139
1140 /* For developers */
1141 .xdebug-error {
1142 position: absolute;
1143 z-index: 99;
1144 }
1145
1146 .mw-editsection,
1147 .toctoggle,
1148 .tochidden,
1149 #jump-to-nav {
1150 -moz-user-select: none;
1151 -webkit-user-select: none;
1152 -ms-user-select: none;
1153 user-select: none;
1154 }
1155
1156 /* Display editsection links smaller and next to headings */
1157 .mw-editsection,
1158 .mw-editsection-like {
1159 font-size: small;
1160 font-weight: normal;
1161 margin-left: 1em;
1162 vertical-align: baseline;
1163 /* Reset line-height; headings tend to have it set to larger values */
1164 line-height: 1em;
1165 /* As .mw-editsection is a <span> (inline element), it is treated as part */
1166 /* of the heading content when selecting text by multiple clicks and thus */
1167 /* selected together with heading content, despite the user-select: none; */
1168 /* rule set above. This enforces non-selection without changing the look. */
1169 display: inline-block;
1170 }
1171
1172 /* Correct directionality when page dir is different from site/user dir */
1173 /* @noflip */
1174 .mw-content-ltr .mw-editsection,
1175 .mw-content-rtl .mw-content-ltr .mw-editsection {
1176 margin-left: 1em;
1177 }
1178
1179 /* @noflip */
1180 .mw-content-rtl .mw-editsection,
1181 .mw-content-ltr .mw-content-rtl .mw-editsection {
1182 margin-right: 1em;
1183 }
1184
1185 /* Prevent citations and subscripts from interfering with the line-height */
1186 sup,
1187 sub {
1188 line-height: 1;
1189 }