Move HistoryAction CSS from mediawiki.legacy.shared
[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: 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: #f00;
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 /* The auto-generated edit comments */
288 .autocomment {
289 color: #808080;
290 }
291
292 /** Generic minor/bot/newpage styling (recent changes) */
293 .newpage,
294 .minoredit,
295 .botedit {
296 font-weight: bold;
297 }
298
299 /**
300 * Recreating deleted page warning
301 * Reupload file warning
302 * Page protection warning
303 * incl. log entries for these warnings
304 */
305 div.mw-warning-with-logexcerpt {
306 padding: 3px;
307 margin-bottom: 3px;
308 border: 2px solid #2f6fab;
309 clear: both;
310 }
311
312 div.mw-warning-with-logexcerpt ul li {
313 font-size: 90%;
314 }
315
316 /* (show/hide) revision deletion links */
317 span.mw-revdelundel-link,
318 strong.mw-revdelundel-link {
319 font-size: 90%;
320 }
321
322 span.mw-revdelundel-hidden,
323 input.mw-revdelundel-hidden {
324 visibility: hidden;
325 }
326
327 td.mw-revdel-checkbox,
328 th.mw-revdel-checkbox {
329 padding-right: 10px;
330 text-align: center;
331 }
332
333 /* red links; see bug 36276 */
334 a.new {
335 color: #ba0000;
336 }
337
338 /* Plainlinks - this can be used to switch
339 * off special external link styling */
340 .plainlinks a.external {
341 background: none !important;
342 padding: 0 !important;
343 }
344
345 /* External URLs should always be treated as LTR (bug 4330) */
346 /* @noflip */ .rtl a.external.free,
347 .rtl a.external.autonumber {
348 direction: ltr;
349 unicode-bidi: embed;
350 }
351
352 /**
353 * wikitable class for skinning normal tables
354 * keep in sync with commonPrint.css
355 */
356 table.wikitable {
357 margin: 1em 0;
358 background-color: #f9f9f9;
359 border: 1px solid #aaa;
360 border-collapse: collapse;
361 color: #000;
362 }
363
364 table.wikitable > tr > th,
365 table.wikitable > tr > td,
366 table.wikitable > * > tr > th,
367 table.wikitable > * > tr > td {
368 border: 1px solid #aaa;
369 padding: 0.2em 0.4em;
370 }
371
372 table.wikitable > tr > th,
373 table.wikitable > * > tr > th {
374 background-color: #f2f2f2;
375 text-align: center;
376 }
377
378 table.wikitable > caption {
379 font-weight: bold;
380 }
381
382 /* success and error messages */
383 .error,
384 .warning,
385 .success {
386 font-size: larger;
387 }
388
389 .error {
390 color: #c00;
391 }
392
393 .warning {
394 color: #705000;
395 }
396
397 .success {
398 color: #009000;
399 }
400
401 .errorbox,
402 .warningbox,
403 .successbox {
404 border: 1px solid;
405 padding: .5em 1em;
406 margin-bottom: 1em;
407 display: inline-block;
408 zoom: 1;
409 *display: inline;
410 }
411
412 .errorbox h2,
413 .warningbox h2,
414 .successbox h2 {
415 font-size: 1em;
416 color: inherit;
417 font-weight: bold;
418 display: inline;
419 margin: 0 .5em 0 0;
420 border: none;
421 }
422
423 .errorbox {
424 color: #c00;
425 border-color: #fac5c5;
426 background-color: #fae3e3;
427 }
428
429 .warningbox {
430 color: #705000;
431 border-color: #fde29b;
432 background-color: #fdf1d1;
433 }
434
435 .successbox {
436 color: #008000;
437 border-color: #b7fdb5;
438 background-color: #e1fddf;
439 }
440
441 /* general info/warning box for SP */
442 .mw-infobox {
443 border: 2px solid #ff7f00;
444 margin: 0.5em;
445 clear: left;
446 overflow: hidden;
447 }
448
449 .mw-infobox-left {
450 margin: 7px;
451 float: left;
452 width: 35px;
453 }
454
455 .mw-infobox-right {
456 margin: 0.5em 0.5em 0.5em 49px;
457 }
458
459 /* Note on preview page */
460 .previewnote {
461 color: #c00;
462 margin-bottom: 1em;
463 }
464
465 .previewnote p {
466 text-indent: 3em;
467 margin: 0.8em 0;
468 }
469
470 .visualClear {
471 clear: both;
472 }
473
474 /**
475 * Data table style
476 *
477 * Transparent table with suddle borders
478 * and blue row-highlighting.
479 */
480 .mw-datatable {
481 border-collapse: collapse;
482 }
483
484 .mw-datatable,
485 .mw-datatable td,
486 .mw-datatable th {
487 border: 1px solid #aaa;
488 padding: 0 0.15em 0 0.15em;
489 }
490
491 .mw-datatable th {
492 background-color: #ddf;
493 }
494
495 .mw-datatable td {
496 background-color: #fff;
497 }
498
499 .mw-datatable tr:hover td {
500 background-color: #eef;
501 }
502
503 /* Classes for Exif data display */
504 table.mw_metadata {
505 font-size: 0.8em;
506 margin-left: 0.5em;
507 margin-bottom: 0.5em;
508 width: 400px;
509 }
510
511 table.mw_metadata caption {
512 font-weight: bold;
513 }
514
515 table.mw_metadata th {
516 font-weight: normal;
517 text-align: center;
518 }
519
520 table.mw_metadata td {
521 padding: 0.1em;
522 }
523
524 table.mw_metadata {
525 border: none;
526 border-collapse: collapse;
527 }
528
529 table.mw_metadata td,
530 table.mw_metadata th {
531 border: 1px solid #aaa;
532 padding-left: 5px;
533 padding-right: 5px;
534 }
535
536 table.mw_metadata th {
537 background-color: #f9f9f9;
538 }
539
540 table.mw_metadata td {
541 background-color: #fcfcfc;
542 }
543
544 table.mw_metadata ul.metadata-langlist {
545 list-style-type: none;
546 list-style-image: none;
547 padding-right: 5px;
548 padding-left: 5px;
549 margin: 0;
550 }
551
552 /* Correct directionality when page dir is different from site/user dir */
553 .mw-content-ltr ul,
554 .mw-content-rtl .mw-content-ltr ul {
555 /* @noflip */
556 margin: 0.3em 0 0 1.6em;
557 padding: 0;
558 }
559
560 .mw-content-rtl ul,
561 .mw-content-ltr .mw-content-rtl ul {
562 /* @noflip */
563 margin: 0.3em 1.6em 0 0;
564 padding: 0;
565 }
566
567 .mw-content-ltr ol,
568 .mw-content-rtl .mw-content-ltr ol {
569 /* @noflip */
570 margin: 0.3em 0 0 3.2em;
571 padding: 0;
572 }
573
574 .mw-content-rtl ol,
575 .mw-content-ltr .mw-content-rtl ol {
576 /* @noflip */
577 margin: 0.3em 3.2em 0 0;
578 padding: 0;
579 }
580
581 /* @noflip */
582 .mw-content-ltr dd,
583 .mw-content-rtl .mw-content-ltr dd {
584 margin-left: 1.6em;
585 margin-right: 0;
586 }
587
588 /* @noflip */
589 .mw-content-rtl dd,
590 .mw-content-ltr .mw-content-rtl dd {
591 margin-right: 1.6em;
592 margin-left: 0;
593 }
594
595 .mw-ajax-loader {
596 background-image: url( images/ajax-loader.gif );
597 background-position: center center;
598 background-repeat: no-repeat;
599 padding: 16px;
600 position: relative;
601 top: -16px;
602 }
603
604 .mw-small-spinner {
605 padding: 10px !important;
606 margin-right: 0.6em;
607 background-image: url( images/spinner.gif );
608 background-position: center center;
609 background-repeat: no-repeat;
610 }
611
612 /* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
613 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
614 h1:lang(anp),
615 h1:lang(as),
616 h1:lang(bh), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
617 h1:lang(bho),
618 h1:lang(bn),
619 h1:lang(gu),
620 h1:lang(hi),
621 h1:lang(kn),
622 h1:lang(ks),
623 h1:lang(ml),
624 h1:lang(mr),
625 h1:lang(my),
626 h1:lang(mai),
627 h1:lang(ne),
628 h1:lang(new),
629 h1:lang(or),
630 h1:lang(pa),
631 h1:lang(pi),
632 h1:lang(sa),
633 h1:lang(ta),
634 h1:lang(te) {
635 line-height: 1.6em !important;
636 }
637
638 h2:lang(anp), h3:lang(anp), h4:lang(anp), h5:lang(anp), h6:lang(anp),
639 h2:lang(as), h3:lang(as), h4:lang(as), h5:lang(as), h6:lang(as),
640 h2:lang(bho), h3:lang(bho), h4:lang(bho), h5:lang(bho), h6:lang(bho),
641 h2:lang(bh), h3:lang(bh), h4:lang(bh), h5:lang(bh), h6:lang(bh),
642 h2:lang(bn), h3:lang(bn), h4:lang(bn), h5:lang(bn), h6:lang(bn),
643 h2:lang(gu), h3:lang(gu), h4:lang(gu), h5:lang(gu), h6:lang(gu),
644 h2:lang(hi), h3:lang(hi), h4:lang(hi), h5:lang(hi), h6:lang(hi),
645 h2:lang(kn), h3:lang(kn), h4:lang(kn), h5:lang(kn), h6:lang(kn),
646 h2:lang(ks), h3:lang(ks), h4:lang(ks), h5:lang(ks), h6:lang(ks),
647 h2:lang(ml), h3:lang(ml), h4:lang(ml), h5:lang(ml), h6:lang(ml),
648 h2:lang(mr), h3:lang(mr), h4:lang(mr), h5:lang(mr), h6:lang(mr),
649 h2:lang(my), h3:lang(my), h4:lang(my), h5:lang(my), h6:lang(my),
650 h2:lang(mai), h3:lang(mai), h4:lang(mai), h5:lang(mai), h6:lang(mai),
651 h2:lang(ne), h3:lang(ne), h4:lang(ne), h5:lang(ne), h6:lang(ne),
652 h2:lang(new), h3:lang(new), h4:lang(new), h5:lang(new), h6:lang(new),
653 h2:lang(or), h3:lang(or), h4:lang(or), h5:lang(or), h6:lang(or),
654 h2:lang(pa), h3:lang(pa), h4:lang(pa), h5:lang(pa), h6:lang(pa),
655 h2:lang(pi), h3:lang(pi), h4:lang(pi), h5:lang(pi), h6:lang(pi),
656 h2:lang(sa), h3:lang(sa), h4:lang(sa), h5:lang(sa), h6:lang(sa),
657 h2:lang(ta), h3:lang(ta), h4:lang(ta), h5:lang(ta), h6:lang(ta),
658 h2:lang(te), h3:lang(te), h4:lang(te), h5:lang(te), h6:lang(te) {
659 line-height: 1.2em;
660 }
661
662 /* Localised ordered list numbering for some languages */
663 ol:lang(azb) li,
664 ol:lang(bcc) li,
665 ol:lang(bgn) li,
666 ol:lang(bqi) li,
667 ol:lang(fa) li,
668 ol:lang(glk) li,
669 ol:lang(kk-arab) li,
670 ol:lang(lrc) li,
671 ol:lang(luz) li,
672 ol:lang(mzn) li {
673 list-style-type: -moz-persian;
674 list-style-type: persian;
675 }
676
677 ol:lang(ckb) li,
678 ol:lang(sdh) li {
679 list-style-type: -moz-arabic-indic;
680 list-style-type: arabic-indic;
681 }
682
683 ol:lang(hi) li,
684 ol:lang(mr) li {
685 list-style-type: -moz-devanagari;
686 list-style-type: devanagari;
687 }
688
689 ol:lang(as) li,
690 ol:lang(bn) li {
691 list-style-type: -moz-bengali;
692 list-style-type: bengali;
693 }
694
695 ol:lang(or) li {
696 list-style-type: -moz-oriya;
697 list-style-type: oriya;
698 }
699
700 #toc ul, .toc ul {
701 margin: .3em 0;
702 }
703
704 /* Correct directionality when page dir is different from site/user dir */
705 /* @noflip */ .mw-content-ltr .toc ul,
706 .mw-content-ltr #toc ul,
707 .mw-content-rtl .mw-content-ltr .toc ul,
708 .mw-content-rtl .mw-content-ltr #toc ul {
709 text-align: left;
710 }
711
712 /* @noflip */ .mw-content-rtl .toc ul,
713 .mw-content-rtl #toc ul,
714 .mw-content-ltr .mw-content-rtl .toc ul,
715 .mw-content-ltr .mw-content-rtl #toc ul {
716 text-align: right;
717 }
718
719 /* @noflip */ .mw-content-ltr .toc ul ul,
720 .mw-content-ltr #toc ul ul,
721 .mw-content-rtl .mw-content-ltr .toc ul ul,
722 .mw-content-rtl .mw-content-ltr #toc ul ul {
723 margin: 0 0 0 2em;
724 }
725
726 /* @noflip */ .mw-content-rtl .toc ul ul,
727 .mw-content-rtl #toc ul ul,
728 .mw-content-ltr .mw-content-rtl .toc ul ul,
729 .mw-content-ltr .mw-content-rtl #toc ul ul {
730 margin: 0 2em 0 0;
731 }
732
733 #toc #toctitle,
734 .toc #toctitle,
735 #toc .toctitle,
736 .toc .toctitle {
737 direction: ltr;
738 }
739
740 /* tooltip styles */
741 .mw-help-field-hint {
742 display: none;
743 margin-left: 2px;
744 margin-bottom: -8px;
745 padding: 0 0 0 15px;
746 background-image: url( images/help-question.gif );
747 background-position: left center;
748 background-repeat: no-repeat;
749 cursor: pointer;
750 font-size: .8em;
751 text-decoration: underline;
752 color: #0645ad;
753 }
754
755 .mw-help-field-hint:hover {
756 background-image: url( images/help-question-hover.gif );
757 }
758
759 .mw-help-field-data {
760 display: block;
761 background-color: #d6f3ff;
762 padding: 5px 8px 4px 8px;
763 border: 1px solid #5dc9f4;
764 margin-left: 20px;
765 }
766
767 #mw-clearyourcache,
768 #mw-sitecsspreview,
769 #mw-sitejspreview,
770 #mw-usercsspreview,
771 #mw-userjspreview {
772 direction: ltr;
773 unicode-bidi: embed;
774 }
775
776 /* Correct user & content directionality when viewing a diff */
777 .diff-currentversion-title,
778 .diff {
779 direction: ltr;
780 unicode-bidi: embed;
781 }
782
783 /* @noflip */ .diff-contentalign-right td {
784 direction: rtl;
785 unicode-bidi: embed;
786 }
787
788 /* @noflip */ .diff-contentalign-left td {
789 direction: ltr;
790 unicode-bidi: embed;
791 }
792
793 .diff-multi,
794 .diff-otitle,
795 .diff-ntitle,
796 .diff-lineno {
797 direction: ltr !important;
798 unicode-bidi: embed;
799 }
800
801 #mw-revision-info,
802 #mw-revision-info-current,
803 #mw-revision-nav {
804 direction: ltr;
805 display: inline;
806 }
807
808 /* Images */
809
810 /* @noflip */ div.tright,
811 div.floatright,
812 table.floatright {
813 clear: right;
814 float: right;
815 }
816
817 /* @noflip */ div.tleft,
818 div.floatleft,
819 table.floatleft {
820 float: left;
821 clear: left;
822 }
823
824 div.floatright,
825 table.floatright,
826 div.floatleft,
827 table.floatleft {
828 position: relative;
829 }
830
831 /* bug 12205 */
832 #mw-credits a {
833 unicode-bidi: embed;
834 }
835
836 /* Accessibility */
837 .mw-jump,
838 #jump-to-nav {
839 overflow: hidden;
840 height: 0;
841 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
842 }
843
844 /* Print footer should be hidden by default in screen. */
845 .printfooter {
846 display: none;
847 }
848
849 /* For developers */
850 .xdebug-error {
851 position: absolute;
852 z-index: 99;
853 }
854
855 .mw-editsection,
856 #jump-to-nav {
857 -moz-user-select: none;
858 -webkit-user-select: none;
859 -ms-user-select: none;
860 user-select: none;
861 }
862
863 /* Display editsection links smaller and next to headings */
864 .mw-editsection,
865 .mw-editsection-like {
866 font-size: small;
867 font-weight: normal;
868 margin-left: 1em;
869 vertical-align: baseline;
870 /* Reset line-height; headings tend to have it set to larger values */
871 line-height: 1em;
872 /* As .mw-editsection is a <span> (inline element), it is treated as part */
873 /* of the heading content when selecting text by multiple clicks and thus */
874 /* selected together with heading content, despite the user-select: none; */
875 /* rule set above. This enforces non-selection without changing the look. */
876 display: inline-block;
877 }
878
879 /* Correct directionality when page dir is different from site/user dir */
880 /* @noflip */
881 .mw-content-ltr .mw-editsection,
882 .mw-content-rtl .mw-content-ltr .mw-editsection {
883 margin-left: 1em;
884 }
885
886 /* @noflip */
887 .mw-content-rtl .mw-editsection,
888 .mw-content-ltr .mw-content-rtl .mw-editsection {
889 margin-right: 1em;
890 }
891
892 /* Prevent citations and subscripts from interfering with the line-height */
893 sup,
894 sub {
895 line-height: 1;
896 }