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