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