a5508c60ab8cae69eeb55c8e809bd5cac97578cf
[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: #ff0;
48 color: #000;
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: isolate;
116 }
117
118 /* Comment portions of RC entries */
119 span.comment {
120 font-style: italic;
121 unicode-bidi: -moz-isolate;
122 unicode-bidi: isolate;
123 }
124
125 /**
126 * Add a bit of margin space between the preview and the toolbar.
127 * This replaces the ugly <p><br /></p> we used to insert into the page source
128 */
129 #wikiPreview.ontop {
130 margin-bottom: 1em;
131 }
132
133 /* Stop floats from intruding into edit area in previews */
134 #editform,
135 #toolbar,
136 #wpTextbox1 {
137 clear: both;
138 }
139
140 /**
141 * rev_deleted stuff
142 */
143 li span.deleted,
144 span.history-deleted {
145 text-decoration: line-through;
146 color: #888;
147 font-style: italic;
148 }
149
150 /**
151 * Patrol stuff
152 */
153 .not-patrolled {
154 background-color: #ffa;
155 }
156
157 .unpatrolled {
158 font-weight: bold;
159 color: #f00;
160 }
161
162 div.patrollink {
163 font-size: 75%;
164 text-align: right;
165 }
166
167 /**
168 * Forms
169 */
170 td.mw-label {
171 text-align: right;
172 }
173
174 td.mw-input {
175 text-align: left;
176 }
177
178 td.mw-submit {
179 text-align: left;
180 }
181
182 td.mw-label {
183 vertical-align: middle;
184 }
185
186 td.mw-submit {
187 white-space: nowrap;
188 }
189
190 input#wpSummary {
191 width: 80%;
192 margin-bottom: 1em;
193 }
194
195 .mw-input-with-label {
196 white-space: nowrap;
197 }
198
199 /**
200 * Image captions.
201 *
202 * This is only meant to provide the most basic of styles, visual settings shouldn't be added here.
203 */
204
205 /* @noflip */
206 .mw-content-ltr .thumbcaption {
207 text-align: left;
208 }
209
210 /* @noflip */
211 .mw-content-ltr .magnify {
212 float: right;
213 }
214
215 /* @noflip */
216 .mw-content-rtl .thumbcaption {
217 text-align: right;
218 }
219
220 /* @noflip */
221 .mw-content-rtl .magnify {
222 float: left;
223 }
224
225 /**
226 * Categories
227 */
228 #catlinks {
229 /**
230 * Overrides text justification (user preference)
231 * See bug 31990
232 */
233 text-align: left;
234 }
235
236 .catlinks ul {
237 display: inline;
238 margin: 0;
239 padding: 0;
240 list-style: none;
241 list-style-type: none;
242 list-style-image: none;
243 vertical-align: middle !ie;
244 }
245
246 .catlinks li {
247 display: inline-block;
248 line-height: 1.25em;
249 border-left: 1px solid #aaa;
250 margin: 0.125em 0;
251 padding: 0 0.5em;
252 zoom: 1;
253 display: inline !ie;
254 }
255
256 .catlinks li:first-child {
257 padding-left: 0.25em;
258 border-left: none;
259 }
260
261 /* (bug 5346) make category redirects italic */
262 .catlinks li a.mw-redirect {
263 font-style: italic;
264 }
265
266 /**
267 * Hidden categories
268 */
269 .mw-hidden-cats-hidden {
270 display: none;
271 }
272
273 .catlinks-allhidden {
274 display: none;
275 }
276
277 /**
278 * Convenience links to edit delete and protect reasons
279 */
280 p.mw-protect-editreasons,
281 p.mw-filedelete-editreasons,
282 p.mw-delete-editreasons {
283 font-size: 90%;
284 text-align: right;
285 }
286
287 /* The auto-generated edit comments */
288 .autocomment {
289 color: #808080;
290 }
291
292 /** Generic minor/bot/newpage styling (recent changes) */
293 .newpage,
294 .minoredit,
295 .botedit {
296 font-weight: bold;
297 }
298
299 /**
300 * Recreating deleted page warning
301 * Reupload file warning
302 * Page protection warning
303 * incl. log entries for these warnings
304 */
305 div.mw-warning-with-logexcerpt {
306 padding: 3px;
307 margin-bottom: 3px;
308 border: 2px solid #2f6fab;
309 clear: both;
310 }
311
312 div.mw-warning-with-logexcerpt ul li {
313 font-size: 90%;
314 }
315
316 /* (show/hide) revision deletion links */
317 span.mw-revdelundel-link,
318 strong.mw-revdelundel-link {
319 font-size: 90%;
320 }
321
322 span.mw-revdelundel-hidden,
323 input.mw-revdelundel-hidden {
324 visibility: hidden;
325 }
326
327 td.mw-revdel-checkbox,
328 th.mw-revdel-checkbox {
329 padding-right: 10px;
330 text-align: center;
331 }
332
333 /* red links; see bug 36276 */
334 a.new {
335 color: #ba0000;
336 }
337
338 /* Plainlinks - this can be used to switch
339 * off special external link styling */
340 .plainlinks a.external {
341 background: none !important;
342 padding: 0 !important;
343 }
344
345 /* External URLs should always be treated as LTR (bug 4330) */
346 /* @noflip */ .rtl a.external.free,
347 .rtl a.external.autonumber {
348 direction: ltr;
349 unicode-bidi: embed;
350 }
351
352 /**
353 * wikitable class for skinning normal tables
354 * keep in sync with commonPrint.css
355 */
356 table.wikitable {
357 margin: 1em 0;
358 background-color: #f9f9f9;
359 border: 1px solid #aaa;
360 border-collapse: collapse;
361 color: #000;
362 }
363
364 table.wikitable > tr > th,
365 table.wikitable > tr > td,
366 table.wikitable > * > tr > th,
367 table.wikitable > * > tr > td {
368 border: 1px solid #aaa;
369 padding: 0.2em 0.4em;
370 }
371
372 table.wikitable > tr > th,
373 table.wikitable > * > tr > th {
374 background-color: #f2f2f2;
375 text-align: center;
376 }
377
378 table.wikitable > caption {
379 font-weight: bold;
380 }
381
382 /* success and error messages */
383 .error,
384 .warning,
385 .success {
386 font-size: larger;
387 }
388
389 .error {
390 color: #c00;
391 }
392
393 .warning {
394 color: #705000;
395 }
396
397 .success {
398 color: #009000;
399 }
400
401 .errorbox,
402 .warningbox,
403 .successbox {
404 border: 1px solid;
405 padding: .5em 1em;
406 margin-bottom: 1em;
407 display: inline-block;
408 zoom: 1;
409 *display: inline;
410 }
411
412 .errorbox h2,
413 .warningbox h2,
414 .successbox h2 {
415 font-size: 1em;
416 color: inherit;
417 font-weight: bold;
418 display: inline;
419 margin: 0 .5em 0 0;
420 border: none;
421 }
422
423 .errorbox {
424 color: #c00;
425 border-color: #fac5c5;
426 background-color: #fae3e3;
427 }
428
429 .warningbox {
430 color: #705000;
431 border-color: #fde29b;
432 background-color: #fdf1d1;
433 }
434
435 .successbox {
436 color: #008000;
437 border-color: #b7fdb5;
438 background-color: #e1fddf;
439 }
440
441 /* general info/warning box for SP */
442 .mw-infobox {
443 border: 2px solid #ff7f00;
444 margin: 0.5em;
445 clear: left;
446 overflow: hidden;
447 }
448
449 .mw-infobox-left {
450 margin: 7px;
451 float: left;
452 width: 35px;
453 }
454
455 .mw-infobox-right {
456 margin: 0.5em 0.5em 0.5em 49px;
457 }
458
459 /* Note on preview page */
460 .previewnote {
461 color: #c00;
462 margin-bottom: 1em;
463 }
464
465 .previewnote p {
466 text-indent: 3em;
467 margin: 0.8em 0;
468 }
469
470 .visualClear {
471 clear: both;
472 }
473
474 /**
475 * Data table style
476 *
477 * Transparent table with suddle borders
478 * and blue row-highlighting.
479 */
480 .mw-datatable {
481 border-collapse: collapse;
482 }
483
484 .mw-datatable,
485 .mw-datatable td,
486 .mw-datatable th {
487 border: 1px solid #aaa;
488 padding: 0 0.15em 0 0.15em;
489 }
490
491 .mw-datatable th {
492 background-color: #ddf;
493 }
494
495 .mw-datatable td {
496 background-color: #fff;
497 }
498
499 .mw-datatable tr:hover td {
500 background-color: #eef;
501 }
502
503 /* Correct directionality when page dir is different from site/user dir */
504 .mw-content-ltr ul,
505 .mw-content-rtl .mw-content-ltr ul {
506 /* @noflip */
507 margin: 0.3em 0 0 1.6em;
508 padding: 0;
509 }
510
511 .mw-content-rtl ul,
512 .mw-content-ltr .mw-content-rtl ul {
513 /* @noflip */
514 margin: 0.3em 1.6em 0 0;
515 padding: 0;
516 }
517
518 .mw-content-ltr ol,
519 .mw-content-rtl .mw-content-ltr ol {
520 /* @noflip */
521 margin: 0.3em 0 0 3.2em;
522 padding: 0;
523 }
524
525 .mw-content-rtl ol,
526 .mw-content-ltr .mw-content-rtl ol {
527 /* @noflip */
528 margin: 0.3em 3.2em 0 0;
529 padding: 0;
530 }
531
532 /* @noflip */
533 .mw-content-ltr dd,
534 .mw-content-rtl .mw-content-ltr dd {
535 margin-left: 1.6em;
536 margin-right: 0;
537 }
538
539 /* @noflip */
540 .mw-content-rtl dd,
541 .mw-content-ltr .mw-content-rtl dd {
542 margin-right: 1.6em;
543 margin-left: 0;
544 }
545
546 .mw-ajax-loader {
547 background-image: url( images/ajax-loader.gif );
548 background-position: center center;
549 background-repeat: no-repeat;
550 padding: 16px;
551 position: relative;
552 top: -16px;
553 }
554
555 .mw-small-spinner {
556 padding: 10px !important;
557 margin-right: 0.6em;
558 background-image: url( images/spinner.gif );
559 background-position: center center;
560 background-repeat: no-repeat;
561 }
562
563 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
564 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
565 h1:lang(anp),
566 h1:lang(as),
567 h1:lang(bh), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
568 h1:lang(bho),
569 h1:lang(bn),
570 h1:lang(gu),
571 h1:lang(hi),
572 h1:lang(kn),
573 h1:lang(ks),
574 h1:lang(ml),
575 h1:lang(mr),
576 h1:lang(my),
577 h1:lang(mai),
578 h1:lang(ne),
579 h1:lang(new),
580 h1:lang(or),
581 h1:lang(pa),
582 h1:lang(pi),
583 h1:lang(sa),
584 h1:lang(ta),
585 h1:lang(te) {
586 line-height: 1.6em !important;
587 }
588
589 h2:lang(anp), h3:lang(anp), h4:lang(anp), h5:lang(anp), h6:lang(anp),
590 h2:lang(as), h3:lang(as), h4:lang(as), h5:lang(as), h6:lang(as),
591 h2:lang(bho), h3:lang(bho), h4:lang(bho), h5:lang(bho), h6:lang(bho),
592 h2:lang(bh), h3:lang(bh), h4:lang(bh), h5:lang(bh), h6:lang(bh),
593 h2:lang(bn), h3:lang(bn), h4:lang(bn), h5:lang(bn), h6:lang(bn),
594 h2:lang(gu), h3:lang(gu), h4:lang(gu), h5:lang(gu), h6:lang(gu),
595 h2:lang(hi), h3:lang(hi), h4:lang(hi), h5:lang(hi), h6:lang(hi),
596 h2:lang(kn), h3:lang(kn), h4:lang(kn), h5:lang(kn), h6:lang(kn),
597 h2:lang(ks), h3:lang(ks), h4:lang(ks), h5:lang(ks), h6:lang(ks),
598 h2:lang(ml), h3:lang(ml), h4:lang(ml), h5:lang(ml), h6:lang(ml),
599 h2:lang(mr), h3:lang(mr), h4:lang(mr), h5:lang(mr), h6:lang(mr),
600 h2:lang(my), h3:lang(my), h4:lang(my), h5:lang(my), h6:lang(my),
601 h2:lang(mai), h3:lang(mai), h4:lang(mai), h5:lang(mai), h6:lang(mai),
602 h2:lang(ne), h3:lang(ne), h4:lang(ne), h5:lang(ne), h6:lang(ne),
603 h2:lang(new), h3:lang(new), h4:lang(new), h5:lang(new), h6:lang(new),
604 h2:lang(or), h3:lang(or), h4:lang(or), h5:lang(or), h6:lang(or),
605 h2:lang(pa), h3:lang(pa), h4:lang(pa), h5:lang(pa), h6:lang(pa),
606 h2:lang(pi), h3:lang(pi), h4:lang(pi), h5:lang(pi), h6:lang(pi),
607 h2:lang(sa), h3:lang(sa), h4:lang(sa), h5:lang(sa), h6:lang(sa),
608 h2:lang(ta), h3:lang(ta), h4:lang(ta), h5:lang(ta), h6:lang(ta),
609 h2:lang(te), h3:lang(te), h4:lang(te), h5:lang(te), h6:lang(te) {
610 line-height: 1.2em;
611 }
612
613 /* Localised ordered list numbering for some languages */
614 ol:lang(azb) li,
615 ol:lang(bcc) li,
616 ol:lang(bgn) li,
617 ol:lang(bqi) li,
618 ol:lang(fa) li,
619 ol:lang(glk) li,
620 ol:lang(kk-arab) li,
621 ol:lang(lrc) li,
622 ol:lang(luz) li,
623 ol:lang(mzn) li {
624 list-style-type: -moz-persian;
625 list-style-type: persian;
626 }
627
628 ol:lang(ckb) li,
629 ol:lang(sdh) li {
630 list-style-type: -moz-arabic-indic;
631 list-style-type: arabic-indic;
632 }
633
634 ol:lang(hi) li,
635 ol:lang(mr) li {
636 list-style-type: -moz-devanagari;
637 list-style-type: devanagari;
638 }
639
640 ol:lang(as) li,
641 ol:lang(bn) li {
642 list-style-type: -moz-bengali;
643 list-style-type: bengali;
644 }
645
646 ol:lang(or) li {
647 list-style-type: -moz-oriya;
648 list-style-type: oriya;
649 }
650
651 #toc ul, .toc ul {
652 margin: .3em 0;
653 }
654
655 /* Correct directionality when page dir is different from site/user dir */
656 /* @noflip */ .mw-content-ltr .toc ul,
657 .mw-content-ltr #toc ul,
658 .mw-content-rtl .mw-content-ltr .toc ul,
659 .mw-content-rtl .mw-content-ltr #toc ul {
660 text-align: left;
661 }
662
663 /* @noflip */ .mw-content-rtl .toc ul,
664 .mw-content-rtl #toc ul,
665 .mw-content-ltr .mw-content-rtl .toc ul,
666 .mw-content-ltr .mw-content-rtl #toc ul {
667 text-align: right;
668 }
669
670 /* @noflip */ .mw-content-ltr .toc ul ul,
671 .mw-content-ltr #toc ul ul,
672 .mw-content-rtl .mw-content-ltr .toc ul ul,
673 .mw-content-rtl .mw-content-ltr #toc ul ul {
674 margin: 0 0 0 2em;
675 }
676
677 /* @noflip */ .mw-content-rtl .toc ul ul,
678 .mw-content-rtl #toc ul ul,
679 .mw-content-ltr .mw-content-rtl .toc ul ul,
680 .mw-content-ltr .mw-content-rtl #toc ul ul {
681 margin: 0 2em 0 0;
682 }
683
684 #toc #toctitle,
685 .toc #toctitle,
686 #toc .toctitle,
687 .toc .toctitle {
688 direction: ltr;
689 }
690
691 /* tooltip styles */
692 .mw-help-field-hint {
693 display: none;
694 margin-left: 2px;
695 margin-bottom: -8px;
696 padding: 0 0 0 15px;
697 background-image: url( images/help-question.gif );
698 background-position: left center;
699 background-repeat: no-repeat;
700 cursor: pointer;
701 font-size: .8em;
702 text-decoration: underline;
703 color: #0645ad;
704 }
705
706 .mw-help-field-hint:hover {
707 background-image: url( images/help-question-hover.gif );
708 }
709
710 .mw-help-field-data {
711 display: block;
712 background-color: #d6f3ff;
713 padding: 5px 8px 4px 8px;
714 border: 1px solid #5dc9f4;
715 margin-left: 20px;
716 }
717
718 #mw-clearyourcache,
719 #mw-sitecsspreview,
720 #mw-sitejspreview,
721 #mw-usercsspreview,
722 #mw-userjspreview {
723 direction: ltr;
724 unicode-bidi: embed;
725 }
726
727 /* Correct user & content directionality when viewing a diff */
728 .diff-currentversion-title,
729 .diff {
730 direction: ltr;
731 unicode-bidi: embed;
732 }
733
734 /* @noflip */ .diff-contentalign-right td {
735 direction: rtl;
736 unicode-bidi: embed;
737 }
738
739 /* @noflip */ .diff-contentalign-left td {
740 direction: ltr;
741 unicode-bidi: embed;
742 }
743
744 .diff-multi,
745 .diff-otitle,
746 .diff-ntitle,
747 .diff-lineno {
748 direction: ltr !important;
749 unicode-bidi: embed;
750 }
751
752 #mw-revision-info,
753 #mw-revision-info-current,
754 #mw-revision-nav {
755 direction: ltr;
756 display: inline;
757 }
758
759 /* Images */
760
761 /* @noflip */ div.tright,
762 div.floatright,
763 table.floatright {
764 clear: right;
765 float: right;
766 }
767
768 /* @noflip */ div.tleft,
769 div.floatleft,
770 table.floatleft {
771 float: left;
772 clear: left;
773 }
774
775 div.floatright,
776 table.floatright,
777 div.floatleft,
778 table.floatleft {
779 position: relative;
780 }
781
782 /* bug 12205 */
783 #mw-credits a {
784 unicode-bidi: embed;
785 }
786
787 /* Accessibility */
788 .mw-jump,
789 #jump-to-nav {
790 overflow: hidden;
791 height: 0;
792 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
793 }
794
795 /* Print footer should be hidden by default in screen. */
796 .printfooter {
797 display: none;
798 }
799
800 /* For developers */
801 .xdebug-error {
802 position: absolute;
803 z-index: 99;
804 }
805
806 .mw-editsection,
807 #jump-to-nav {
808 -moz-user-select: none;
809 -webkit-user-select: none;
810 -ms-user-select: none;
811 user-select: none;
812 }
813
814 /* Display editsection links smaller and next to headings */
815 .mw-editsection,
816 .mw-editsection-like {
817 font-size: small;
818 font-weight: normal;
819 margin-left: 1em;
820 vertical-align: baseline;
821 /* Reset line-height; headings tend to have it set to larger values */
822 line-height: 1em;
823 /* As .mw-editsection is a <span> (inline element), it is treated as part */
824 /* of the heading content when selecting text by multiple clicks and thus */
825 /* selected together with heading content, despite the user-select: none; */
826 /* rule set above. This enforces non-selection without changing the look. */
827 display: inline-block;
828 }
829
830 /* Correct directionality when page dir is different from site/user dir */
831 /* @noflip */
832 .mw-content-ltr .mw-editsection,
833 .mw-content-rtl .mw-content-ltr .mw-editsection {
834 margin-left: 1em;
835 }
836
837 /* @noflip */
838 .mw-content-rtl .mw-editsection,
839 .mw-content-ltr .mw-content-rtl .mw-editsection {
840 margin-right: 1em;
841 }
842
843 /* Prevent citations and subscripts from interfering with the line-height */
844 sup,
845 sub {
846 line-height: 1;
847 }