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