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