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