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