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