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