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