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