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