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