84ab8c445f9e2215bba50ce3cfa9562c5f0045ee
[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 /* Comment portions of RC entries */
95 span.comment {
96 font-style: italic;
97 unicode-bidi: -moz-isolate;
98 unicode-bidi: isolate;
99 }
100
101 /* Stop floats from intruding into edit area in previews */
102 #editform,
103 #toolbar,
104 #wpTextbox1 {
105 clear: both;
106 }
107
108 /**
109 * rev_deleted stuff
110 */
111 li span.deleted,
112 span.history-deleted {
113 text-decoration: line-through;
114 color: #888;
115 font-style: italic;
116 }
117
118 /**
119 * Patrol stuff
120 */
121 .not-patrolled {
122 background-color: #ffa;
123 }
124
125 .unpatrolled {
126 font-weight: bold;
127 color: #f00;
128 }
129
130 div.patrollink {
131 font-size: 75%;
132 text-align: right;
133 }
134
135 /**
136 * Forms
137 */
138 td.mw-label {
139 text-align: right;
140 }
141
142 td.mw-input {
143 text-align: left;
144 }
145
146 td.mw-submit {
147 text-align: left;
148 }
149
150 td.mw-label {
151 vertical-align: middle;
152 }
153
154 td.mw-submit {
155 white-space: nowrap;
156 }
157
158 input#wpSummary {
159 width: 80%;
160 margin-bottom: 1em;
161 }
162
163 .mw-input-with-label {
164 white-space: nowrap;
165 display: inline-block;
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 #mw-revision-info,
697 #mw-revision-info-current,
698 #mw-revision-nav {
699 direction: ltr;
700 }
701
702 /* Images */
703
704 /* @noflip */ div.tright,
705 div.floatright,
706 table.floatright {
707 clear: right;
708 float: right;
709 }
710
711 /* @noflip */ div.tleft,
712 div.floatleft,
713 table.floatleft {
714 float: left;
715 clear: left;
716 }
717
718 div.floatright,
719 table.floatright,
720 div.floatleft,
721 table.floatleft {
722 position: relative;
723 }
724
725 /* bug 12205 */
726 #mw-credits a {
727 unicode-bidi: embed;
728 }
729
730 /* Accessibility */
731 .mw-jump,
732 #jump-to-nav {
733 overflow: hidden;
734 height: 0;
735 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
736 }
737
738 /* Print footer should be hidden by default in screen. */
739 .printfooter {
740 display: none;
741 }
742
743 /* For developers */
744 .xdebug-error {
745 position: absolute;
746 z-index: 99;
747 }
748
749 .mw-editsection,
750 #jump-to-nav {
751 -moz-user-select: none;
752 -webkit-user-select: none;
753 -ms-user-select: none;
754 user-select: none;
755 }
756
757 /* Display editsection links smaller and next to headings */
758 .mw-editsection,
759 .mw-editsection-like {
760 font-size: small;
761 font-weight: normal;
762 margin-left: 1em;
763 vertical-align: baseline;
764 /* Reset line-height; headings tend to have it set to larger values */
765 line-height: 1em;
766 /* As .mw-editsection is a <span> (inline element), it is treated as part */
767 /* of the heading content when selecting text by multiple clicks and thus */
768 /* selected together with heading content, despite the user-select: none; */
769 /* rule set above. This enforces non-selection without changing the look. */
770 display: inline-block;
771 }
772
773 /* Correct directionality when page dir is different from site/user dir */
774 /* @noflip */
775 .mw-content-ltr .mw-editsection,
776 .mw-content-rtl .mw-content-ltr .mw-editsection {
777 margin-left: 1em;
778 }
779
780 /* @noflip */
781 .mw-content-rtl .mw-editsection,
782 .mw-content-ltr .mw-content-rtl .mw-editsection {
783 margin-right: 1em;
784 }
785
786 /* Prevent citations and subscripts from interfering with the line-height */
787 sup,
788 sub {
789 line-height: 1;
790 }