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