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