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