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