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