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