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