Merge "Only convert boolean true/false to !0/!1"
[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 /* To be removed before 1.26 release, moved to mediawiki.feedlink module */
497 a.feedlink {
498 /* SVG support using a transparent gradient to guarantee cross-browser
499 * compatibility (browsers able to understand gradient syntax support also SVG).
500 * http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
501 background-image: url(../mediawiki/images/feed-icon.png);
502 background-image: -webkit-linear-gradient(transparent, transparent), url(../mediawiki/images/feed-icon.svg);
503 background-image: linear-gradient(transparent, transparent), url(../mediawiki/images/feed-icon.svg);
504 background-position: center left;
505 background-repeat: no-repeat;
506 background-size: 12px 12px;
507 padding-left: 16px;
508 }
509
510 /* Plainlinks - this can be used to switch
511 * off special external link styling */
512 .plainlinks a.external {
513 background: none !important;
514 padding: 0 !important;
515 }
516
517 /* External URLs should always be treated as LTR (bug 4330) */
518 /* @noflip */ .rtl a.external.free,
519 .rtl a.external.autonumber {
520 direction: ltr;
521 unicode-bidi: embed;
522 }
523
524 /**
525 * wikitable class for skinning normal tables
526 * keep in sync with commonPrint.css
527 */
528 table.wikitable {
529 margin: 1em 0;
530 background-color: #f9f9f9;
531 border: 1px solid #aaa;
532 border-collapse: collapse;
533 color: black;
534 }
535
536 table.wikitable > tr > th,
537 table.wikitable > tr > td,
538 table.wikitable > * > tr > th,
539 table.wikitable > * > tr > td {
540 border: 1px solid #aaa;
541 padding: 0.2em 0.4em;
542 }
543
544 table.wikitable > tr > th,
545 table.wikitable > * > tr > th {
546 background-color: #f2f2f2;
547 text-align: center;
548 }
549
550 table.wikitable > caption {
551 font-weight: bold;
552 }
553
554 /* success and error messages */
555 .error,
556 .warning,
557 .success {
558 font-size: larger;
559 }
560
561 .error {
562 color: #cc0000;
563 }
564
565 .warning {
566 color: #705000;
567 }
568
569 .success {
570 color: #009000;
571 }
572
573 .errorbox,
574 .warningbox,
575 .successbox {
576 border: 1px solid;
577 padding: .5em 1em;
578 margin-bottom: 1em;
579 display: inline-block;
580 zoom: 1;
581 *display: inline;
582 }
583
584 .errorbox h2,
585 .warningbox h2,
586 .successbox h2 {
587 font-size: 1em;
588 color: inherit;
589 font-weight: bold;
590 display: inline;
591 margin: 0 .5em 0 0;
592 border: none;
593 }
594
595 .errorbox {
596 color: #cc0000;
597 border-color: #fac5c5;
598 background-color: #fae3e3;
599 }
600
601 .warningbox {
602 color: #705000;
603 border-color: #fde29b;
604 background-color: #fdf1d1;
605 }
606
607 .successbox {
608 color: #008000;
609 border-color: #b7fdb5;
610 background-color: #e1fddf;
611 }
612
613 /* general info/warning box for SP */
614 .mw-infobox {
615 border: 2px solid #ff7f00;
616 margin: 0.5em;
617 clear: left;
618 overflow: hidden;
619 }
620
621 .mw-infobox-left {
622 margin: 7px;
623 float: left;
624 width: 35px;
625 }
626
627 .mw-infobox-right {
628 margin: 0.5em 0.5em 0.5em 49px;
629 }
630
631 /* Note on preview page */
632 .previewnote {
633 color: #c00;
634 margin-bottom: 1em;
635 }
636
637 .previewnote p {
638 text-indent: 3em;
639 margin: 0.8em 0;
640 }
641
642 .visualClear {
643 clear: both;
644 }
645
646 /**
647 * Data table style
648 *
649 * Transparent table with suddle borders
650 * and blue row-highlighting.
651 */
652 .mw-datatable {
653 border-collapse: collapse;
654 }
655
656 .mw-datatable,
657 .mw-datatable td,
658 .mw-datatable th {
659 border: 1px solid #aaaaaa;
660 padding: 0 0.15em 0 0.15em;
661 }
662
663 .mw-datatable th {
664 background-color: #ddddff;
665 }
666
667 .mw-datatable td {
668 background-color: #ffffff;
669 }
670
671 .mw-datatable tr:hover td {
672 background-color: #eeeeff;
673 }
674
675 /* filetoc */
676 ul#filetoc {
677 text-align: center;
678 border: 1px solid #aaaaaa;
679 background-color: #f9f9f9;
680 padding: 5px;
681 font-size: 95%;
682 margin-bottom: 0.5em;
683 margin-left: 0;
684 margin-right: 0;
685 }
686
687 #filetoc li {
688 display: inline;
689 list-style-type: none;
690 padding-right: 2em;
691 }
692
693 /* Classes for Exif data display */
694 table.mw_metadata {
695 font-size: 0.8em;
696 margin-left: 0.5em;
697 margin-bottom: 0.5em;
698 width: 400px;
699 }
700
701 table.mw_metadata caption {
702 font-weight: bold;
703 }
704
705 table.mw_metadata th {
706 font-weight: normal;
707 }
708
709 table.mw_metadata td {
710 padding: 0.1em;
711 }
712
713 table.mw_metadata {
714 border: none;
715 border-collapse: collapse;
716 }
717
718 table.mw_metadata td,
719 table.mw_metadata th {
720 text-align: center;
721 border: 1px solid #aaaaaa;
722 padding-left: 5px;
723 padding-right: 5px;
724 }
725
726 table.mw_metadata th {
727 background-color: #f9f9f9;
728 }
729
730 table.mw_metadata td {
731 background-color: #fcfcfc;
732 }
733
734 table.mw_metadata ul.metadata-langlist {
735 list-style-type: none;
736 list-style-image: none;
737 padding-right: 5px;
738 padding-left: 5px;
739 margin: 0;
740 }
741
742 /* Correct directionality when page dir is different from site/user dir */
743 .mw-content-ltr ul,
744 .mw-content-rtl .mw-content-ltr ul {
745 /* @noflip */
746 margin: 0.3em 0 0 1.6em;
747 padding: 0;
748 }
749
750 .mw-content-rtl ul,
751 .mw-content-ltr .mw-content-rtl ul {
752 /* @noflip */
753 margin: 0.3em 1.6em 0 0;
754 padding: 0;
755 }
756
757 .mw-content-ltr ol,
758 .mw-content-rtl .mw-content-ltr ol {
759 /* @noflip */
760 margin: 0.3em 0 0 3.2em;
761 padding: 0;
762 }
763
764 .mw-content-rtl ol,
765 .mw-content-ltr .mw-content-rtl ol {
766 /* @noflip */
767 margin: 0.3em 3.2em 0 0;
768 padding: 0;
769 }
770
771 /* @noflip */
772 .mw-content-ltr dd,
773 .mw-content-rtl .mw-content-ltr dd {
774 margin-left: 1.6em;
775 margin-right: 0;
776 }
777
778 /* @noflip */
779 .mw-content-rtl dd,
780 .mw-content-ltr .mw-content-rtl dd {
781 margin-right: 1.6em;
782 margin-left: 0;
783 }
784
785 /* Galleries */
786 /* These display attributes look nonsensical, but are needed to support IE and FF2 */
787 /* Don't forget to update commonPrint.css */
788 li.gallerybox {
789 vertical-align: top;
790 display: -moz-inline-box;
791 display: inline-block;
792 }
793
794 ul.gallery,
795 li.gallerybox {
796 zoom: 1;
797 *display: inline;
798 }
799
800 ul.gallery {
801 margin: 2px;
802 padding: 2px;
803 display: block;
804 }
805
806 li.gallerycaption {
807 font-weight: bold;
808 text-align: center;
809 display: block;
810 word-wrap: break-word;
811 }
812
813 li.gallerybox div.thumb {
814 text-align: center;
815 border: 1px solid #ccc;
816 background-color: #f9f9f9;
817 margin: 2px;
818 }
819
820 li.gallerybox div.thumb img {
821 display: block;
822 margin: 0 auto;
823 }
824
825 div.gallerytext {
826 overflow: hidden;
827 font-size: 94%;
828 padding: 2px 4px;
829 word-wrap: break-word;
830 }
831
832 /* new gallery stuff */
833 ul.mw-gallery-nolines li.gallerybox div.thumb {
834 background-color: transparent;
835 border: none;
836 }
837
838 ul.mw-gallery-nolines li.gallerybox div.gallerytext {
839 text-align: center;
840 }
841
842 /* height constrained gallery */
843
844 ul.mw-gallery-packed li.gallerybox div.thumb,
845 ul.mw-gallery-packed-overlay li.gallerybox div.thumb,
846 ul.mw-gallery-packed-hover li.gallerybox div.thumb {
847 background-color: transparent;
848 border: none;
849 }
850
851 ul.mw-gallery-packed li.gallerybox div.thumb img,
852 ul.mw-gallery-packed-overlay li.gallerybox div.thumb img,
853 ul.mw-gallery-packed-hover li.gallerybox div.thumb img {
854 margin: 0 auto;
855 }
856
857 ul.mw-gallery-packed-hover li.gallerybox,
858 ul.mw-gallery-packed-overlay li.gallerybox {
859 position: relative;
860 }
861
862 ul.mw-gallery-packed-hover div.gallerytextwrapper {
863 overflow: hidden;
864 height: 0;
865 }
866
867 ul.mw-gallery-packed-hover li.gallerybox:hover div.gallerytextwrapper,
868 ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper,
869 ul.mw-gallery-packed-hover li.gallerybox.mw-gallery-focused div.gallerytextwrapper {
870 position: absolute;
871 background: white;
872 background: rgba(255, 255, 255, 0.8);
873 padding: 5px 10px;
874 bottom: 0;
875 left: 0; /* Needed for IE */
876 height: auto;
877 font-weight: bold;
878 margin: 2px; /* correspond to style on div.thumb */
879 }
880
881 ul.mw-gallery-packed-hover,
882 ul.mw-gallery-packed-overlay,
883 ul.mw-gallery-packed {
884 text-align: center;
885 }
886
887 .mw-ajax-loader {
888 background-image: url(images/ajax-loader.gif);
889 background-position: center center;
890 background-repeat: no-repeat;
891 padding: 16px;
892 position: relative;
893 top: -16px;
894 }
895
896 .mw-small-spinner {
897 padding: 10px !important;
898 margin-right: 0.6em;
899 background-image: url(images/spinner.gif);
900 background-position: center center;
901 background-repeat: no-repeat;
902 }
903
904 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
905 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
906 h1:lang(anp),
907 h1:lang(as),
908 h1:lang(bh), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
909 h1:lang(bho),
910 h1:lang(bn),
911 h1:lang(gu),
912 h1:lang(hi),
913 h1:lang(kn),
914 h1:lang(ks),
915 h1:lang(ml),
916 h1:lang(mr),
917 h1:lang(my),
918 h1:lang(mai),
919 h1:lang(ne),
920 h1:lang(new),
921 h1:lang(or),
922 h1:lang(pa),
923 h1:lang(pi),
924 h1:lang(sa),
925 h1:lang(ta),
926 h1:lang(te) {
927 line-height: 1.6em !important;
928 }
929
930 h2:lang(anp), h3:lang(anp), h4:lang(anp), h5:lang(anp), h6:lang(anp),
931 h2:lang(as), h3:lang(as), h4:lang(as), h5:lang(as), h6:lang(as),
932 h2:lang(bho), h3:lang(bho), h4:lang(bho), h5:lang(bho), h6:lang(bho),
933 h2:lang(bh), h3:lang(bh), h4:lang(bh), h5:lang(bh), h6:lang(bh),
934 h2:lang(bn), h3:lang(bn), h4:lang(bn), h5:lang(bn), h6:lang(bn),
935 h2:lang(gu), h3:lang(gu), h4:lang(gu), h5:lang(gu), h6:lang(gu),
936 h2:lang(hi), h3:lang(hi), h4:lang(hi), h5:lang(hi), h6:lang(hi),
937 h2:lang(kn), h3:lang(kn), h4:lang(kn), h5:lang(kn), h6:lang(kn),
938 h2:lang(ks), h3:lang(ks), h4:lang(ks), h5:lang(ks), h6:lang(ks),
939 h2:lang(ml), h3:lang(ml), h4:lang(ml), h5:lang(ml), h6:lang(ml),
940 h2:lang(mr), h3:lang(mr), h4:lang(mr), h5:lang(mr), h6:lang(mr),
941 h2:lang(my), h3:lang(my), h4:lang(my), h5:lang(my), h6:lang(my),
942 h2:lang(mai), h3:lang(mai), h4:lang(mai), h5:lang(mai), h6:lang(mai),
943 h2:lang(ne), h3:lang(ne), h4:lang(ne), h5:lang(ne), h6:lang(ne),
944 h2:lang(new), h3:lang(new), h4:lang(new), h5:lang(new), h6:lang(new),
945 h2:lang(or), h3:lang(or), h4:lang(or), h5:lang(or), h6:lang(or),
946 h2:lang(pa), h3:lang(pa), h4:lang(pa), h5:lang(pa), h6:lang(pa),
947 h2:lang(pi), h3:lang(pi), h4:lang(pi), h5:lang(pi), h6:lang(pi),
948 h2:lang(sa), h3:lang(sa), h4:lang(sa), h5:lang(sa), h6:lang(sa),
949 h2:lang(ta), h3:lang(ta), h4:lang(ta), h5:lang(ta), h6:lang(ta),
950 h2:lang(te), h3:lang(te), h4:lang(te), h5:lang(te), h6:lang(te) {
951 line-height: 1.2em;
952 }
953
954 /* Localised ordered list numbering for some languages */
955 ol:lang(azb) li,
956 ol:lang(bcc) li,
957 ol:lang(bgn) li,
958 ol:lang(bqi) li,
959 ol:lang(fa) li,
960 ol:lang(glk) li,
961 ol:lang(kk-arab) li,
962 ol:lang(lrc) li,
963 ol:lang(luz) li,
964 ol:lang(mzn) li {
965 list-style-type: -moz-persian;
966 list-style-type: persian;
967 }
968
969 ol:lang(ckb) li,
970 ol:lang(sdh) li {
971 list-style-type: -moz-arabic-indic;
972 list-style-type: arabic-indic;
973 }
974
975 ol:lang(hi) li,
976 ol:lang(mr) li {
977 list-style-type: -moz-devanagari;
978 list-style-type: devanagari;
979 }
980
981 ol:lang(as) li,
982 ol:lang(bn) li {
983 list-style-type: -moz-bengali;
984 list-style-type: bengali;
985 }
986
987 ol:lang(or) li {
988 list-style-type: -moz-oriya;
989 list-style-type: oriya;
990 }
991
992 #toc ul, .toc ul {
993 margin: .3em 0;
994 }
995
996 /* Correct directionality when page dir is different from site/user dir */
997 /* @noflip */ .mw-content-ltr .toc ul,
998 .mw-content-ltr #toc ul,
999 .mw-content-rtl .mw-content-ltr .toc ul,
1000 .mw-content-rtl .mw-content-ltr #toc ul {
1001 text-align: left;
1002 }
1003
1004 /* @noflip */ .mw-content-rtl .toc ul,
1005 .mw-content-rtl #toc ul,
1006 .mw-content-ltr .mw-content-rtl .toc ul,
1007 .mw-content-ltr .mw-content-rtl #toc ul {
1008 text-align: right;
1009 }
1010
1011 /* @noflip */ .mw-content-ltr .toc ul ul,
1012 .mw-content-ltr #toc ul ul,
1013 .mw-content-rtl .mw-content-ltr .toc ul ul,
1014 .mw-content-rtl .mw-content-ltr #toc ul ul {
1015 margin: 0 0 0 2em;
1016 }
1017
1018 /* @noflip */ .mw-content-rtl .toc ul ul,
1019 .mw-content-rtl #toc ul ul,
1020 .mw-content-ltr .mw-content-rtl .toc ul ul,
1021 .mw-content-ltr .mw-content-rtl #toc ul ul {
1022 margin: 0 2em 0 0;
1023 }
1024
1025 #toc #toctitle,
1026 .toc #toctitle,
1027 #toc .toctitle,
1028 .toc .toctitle {
1029 direction: ltr;
1030 }
1031
1032 /* tooltip styles */
1033 .mw-help-field-hint {
1034 display: none;
1035 margin-left: 2px;
1036 margin-bottom: -8px;
1037 padding: 0 0 0 15px;
1038 background-image: url(images/help-question.gif);
1039 background-position: left center;
1040 background-repeat: no-repeat;
1041 cursor: pointer;
1042 font-size: .8em;
1043 text-decoration: underline;
1044 color: #0645ad;
1045 }
1046
1047 .mw-help-field-hint:hover {
1048 background-image: url(images/help-question-hover.gif);
1049 }
1050
1051 .mw-help-field-data {
1052 display: block;
1053 background-color: #d6f3ff;
1054 padding: 5px 8px 4px 8px;
1055 border: 1px solid #5dc9f4;
1056 margin-left: 20px;
1057 }
1058
1059 #mw-clearyourcache,
1060 #mw-sitecsspreview,
1061 #mw-sitejspreview,
1062 #mw-usercsspreview,
1063 #mw-userjspreview {
1064 direction: ltr;
1065 unicode-bidi: embed;
1066 }
1067
1068 /* Correct user & content directionality when viewing a diff */
1069 .diff-currentversion-title,
1070 .diff {
1071 direction: ltr;
1072 unicode-bidi: embed;
1073 }
1074
1075 /* @noflip */ .diff-contentalign-right td {
1076 direction: rtl;
1077 unicode-bidi: embed;
1078 }
1079
1080 /* @noflip */ .diff-contentalign-left td {
1081 direction: ltr;
1082 unicode-bidi: embed;
1083 }
1084
1085 .diff-multi,
1086 .diff-otitle,
1087 .diff-ntitle,
1088 .diff-lineno {
1089 direction: ltr !important;
1090 unicode-bidi: embed;
1091 }
1092
1093 #mw-revision-info,
1094 #mw-revision-info-current,
1095 #mw-revision-nav {
1096 direction: ltr;
1097 display: inline;
1098 }
1099
1100 /* Images */
1101
1102 /* @noflip */ div.tright,
1103 div.floatright,
1104 table.floatright {
1105 clear: right;
1106 float: right;
1107 }
1108
1109 /* @noflip */ div.tleft,
1110 div.floatleft,
1111 table.floatleft {
1112 float: left;
1113 clear: left;
1114 }
1115
1116 div.floatright,
1117 table.floatright,
1118 div.floatleft,
1119 table.floatleft {
1120 position: relative;
1121 }
1122
1123 /* bug 12205 */
1124 #mw-credits a {
1125 unicode-bidi: embed;
1126 }
1127
1128 /* Accessibility */
1129 .mw-jump,
1130 #jump-to-nav {
1131 overflow: hidden;
1132 height: 0;
1133 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
1134 }
1135
1136 /* Print footer should be hidden by default in screen. */
1137 .printfooter {
1138 display: none;
1139 }
1140
1141 /* For developers */
1142 .xdebug-error {
1143 position: absolute;
1144 z-index: 99;
1145 }
1146
1147 .mw-editsection,
1148 .toctoggle,
1149 .tochidden,
1150 #jump-to-nav {
1151 -moz-user-select: none;
1152 -webkit-user-select: none;
1153 -ms-user-select: none;
1154 user-select: none;
1155 }
1156
1157 /* Display editsection links smaller and next to headings */
1158 .mw-editsection,
1159 .mw-editsection-like {
1160 font-size: small;
1161 font-weight: normal;
1162 margin-left: 1em;
1163 vertical-align: baseline;
1164 /* Reset line-height; headings tend to have it set to larger values */
1165 line-height: 1em;
1166 /* As .mw-editsection is a <span> (inline element), it is treated as part */
1167 /* of the heading content when selecting text by multiple clicks and thus */
1168 /* selected together with heading content, despite the user-select: none; */
1169 /* rule set above. This enforces non-selection without changing the look. */
1170 display: inline-block;
1171 }
1172
1173 /* Correct directionality when page dir is different from site/user dir */
1174 /* @noflip */
1175 .mw-content-ltr .mw-editsection,
1176 .mw-content-rtl .mw-content-ltr .mw-editsection {
1177 margin-left: 1em;
1178 }
1179
1180 /* @noflip */
1181 .mw-content-rtl .mw-editsection,
1182 .mw-content-ltr .mw-content-rtl .mw-editsection {
1183 margin-right: 1em;
1184 }
1185
1186 /* Prevent citations and subscripts from interfering with the line-height */
1187 sup,
1188 sub {
1189 line-height: 1;
1190 }