auth: Follow up on e907d4328dc3e
[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 color: #72777d;
261 }
262
263 /** Generic minor/bot/newpage styling (recent changes) */
264 .newpage,
265 .minoredit,
266 .botedit {
267 font-weight: bold;
268 }
269
270 /**
271 * Recreating deleted page warning
272 * Reupload file warning
273 * Page protection warning
274 * incl. log entries for these warnings
275 */
276 div.mw-warning-with-logexcerpt {
277 padding: 3px;
278 margin-bottom: 3px;
279 border: 2px solid #2a4b8d;
280 clear: both;
281 }
282
283 div.mw-warning-with-logexcerpt ul li {
284 font-size: 90%;
285 }
286
287 /* (show/hide) revision deletion links */
288 span.mw-revdelundel-link,
289 strong.mw-revdelundel-link {
290 font-size: 90%;
291 }
292
293 span.mw-revdelundel-hidden,
294 input.mw-revdelundel-hidden {
295 visibility: hidden;
296 }
297
298 td.mw-revdel-checkbox,
299 th.mw-revdel-checkbox {
300 padding-right: 10px;
301 text-align: center;
302 }
303
304 /* red links; see T38276 */
305 a.new {
306 color: #ba0000;
307 }
308
309 /* Plainlinks - this can be used to switch
310 * off special external link styling */
311 .plainlinks a.external {
312 background: none !important; /* stylelint-disable-line declaration-no-important */
313 padding: 0 !important; /* stylelint-disable-line declaration-no-important */
314 }
315
316 /* External URLs should always be treated as LTR (T6330) */
317 /* @noflip */ .rtl a.external.free,
318 .rtl a.external.autonumber {
319 direction: ltr;
320 unicode-bidi: embed;
321 }
322
323 /**
324 * wikitable class for skinning normal tables
325 * keep in sync with commonPrint.css
326 */
327 table.wikitable {
328 background-color: #f8f9fa;
329 color: #222;
330 margin: 1em 0;
331 border: 1px solid #a2a9b1;
332 border-collapse: collapse;
333 }
334
335 table.wikitable > tr > th,
336 table.wikitable > tr > td,
337 table.wikitable > * > tr > th,
338 table.wikitable > * > tr > td {
339 border: 1px solid #a2a9b1;
340 padding: 0.2em 0.4em;
341 }
342
343 table.wikitable > tr > th,
344 table.wikitable > * > tr > th {
345 background-color: #eaecf0;
346 text-align: center;
347 }
348
349 table.wikitable > caption {
350 font-weight: bold;
351 }
352
353 /* success and error messages */
354 .error,
355 .warning,
356 .success {
357 font-size: larger;
358 }
359
360 .error {
361 color: #d33;
362 }
363
364 .warning {
365 color: #705000;
366 }
367
368 .success {
369 color: #009000;
370 }
371
372 .errorbox,
373 .warningbox,
374 .successbox {
375 border: 1px solid;
376 padding: 0.5em 1em;
377 margin-bottom: 1em;
378 display: inline-block;
379 zoom: 1;
380 *display: inline; /* stylelint-disable-line declaration-block-no-duplicate-properties */
381 }
382
383 .errorbox h2,
384 .warningbox h2,
385 .successbox h2 {
386 font-size: 1em;
387 color: inherit;
388 font-weight: bold;
389 display: inline;
390 margin: 0 0.5em 0 0;
391 border: 0;
392 }
393
394 .errorbox {
395 color: #d33;
396 border-color: #fac5c5;
397 background-color: #fae3e3;
398 }
399
400 .warningbox {
401 color: #705000;
402 border-color: #fde29b;
403 background-color: #fdf1d1;
404 }
405
406 .successbox {
407 color: #008000;
408 border-color: #b7fdb5;
409 background-color: #e1fddf;
410 }
411
412 /* general info/warning box for SP */
413 .mw-infobox {
414 border: 2px solid #ff7f00;
415 margin: 0.5em;
416 clear: left;
417 overflow: hidden;
418 }
419
420 .mw-infobox-left {
421 margin: 7px;
422 float: left;
423 width: 35px;
424 }
425
426 .mw-infobox-right {
427 margin: 0.5em 0.5em 0.5em 49px;
428 }
429
430 /* Note on preview page */
431 .previewnote {
432 color: #d33;
433 margin-bottom: 1em;
434 }
435
436 .previewnote p {
437 text-indent: 3em;
438 margin: 0.8em 0;
439 }
440
441 .visualClear {
442 clear: both;
443 }
444
445 /**
446 * Data table style
447 *
448 * Transparent table with suddle borders
449 * and blue row-highlighting.
450 */
451 .mw-datatable {
452 border-collapse: collapse;
453 }
454
455 .mw-datatable,
456 .mw-datatable td,
457 .mw-datatable th {
458 border: 1px solid #a2a9b1;
459 padding: 0 0.15em 0 0.15em;
460 }
461
462 .mw-datatable th {
463 background-color: #ddf;
464 }
465
466 .mw-datatable td {
467 background-color: #fff;
468 }
469
470 .mw-datatable tr:hover td {
471 background-color: #eaf3ff;
472 }
473
474 /* Correct directionality when page dir is different from site/user dir */
475 .mw-content-ltr ul,
476 .mw-content-rtl .mw-content-ltr ul {
477 /* @noflip */
478 margin: 0.3em 0 0 1.6em;
479 padding: 0;
480 }
481
482 .mw-content-rtl ul,
483 .mw-content-ltr .mw-content-rtl ul {
484 /* @noflip */
485 margin: 0.3em 1.6em 0 0;
486 padding: 0;
487 }
488
489 .mw-content-ltr ol,
490 .mw-content-rtl .mw-content-ltr ol {
491 /* @noflip */
492 margin: 0.3em 0 0 3.2em;
493 padding: 0;
494 }
495
496 .mw-content-rtl ol,
497 .mw-content-ltr .mw-content-rtl ol {
498 /* @noflip */
499 margin: 0.3em 3.2em 0 0;
500 padding: 0;
501 }
502
503 /* @noflip */
504 .mw-content-ltr dd,
505 .mw-content-rtl .mw-content-ltr dd {
506 margin-left: 1.6em;
507 margin-right: 0;
508 }
509
510 /* @noflip */
511 .mw-content-rtl dd,
512 .mw-content-ltr .mw-content-rtl dd {
513 margin-right: 1.6em;
514 margin-left: 0;
515 }
516
517 .mw-ajax-loader {
518 background-image: url( images/ajax-loader.gif );
519 background-position: center center;
520 background-repeat: no-repeat;
521 padding: 16px;
522 position: relative;
523 top: -16px;
524 }
525
526 .mw-small-spinner {
527 padding: 10px !important; /* stylelint-disable-line declaration-no-important */
528 margin-right: 0.6em;
529 background-image: url( images/spinner.gif );
530 background-position: center center;
531 background-repeat: no-repeat;
532 }
533
534 /* Language specific height correction for titles. Ref T31405 and T32809 */
535 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
536 h1:lang( anp ),
537 h1:lang( as ),
538 h1:lang( bh ), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
539 h1:lang( bho ),
540 h1:lang( bn ),
541 h1:lang( gu ),
542 h1:lang( hi ),
543 h1:lang( kn ),
544 h1:lang( ks ),
545 h1:lang( ml ),
546 h1:lang( mr ),
547 h1:lang( my ),
548 h1:lang( mai ),
549 h1:lang( ne ),
550 h1:lang( new ),
551 h1:lang( or ),
552 h1:lang( pa ),
553 h1:lang( pi ),
554 h1:lang( sa ),
555 h1:lang( ta ),
556 h1:lang( te ) {
557 line-height: 1.6em !important; /* stylelint-disable-line declaration-no-important */
558 }
559
560 /* stylelint-disable selector-list-comma-newline-after */
561 h2:lang( anp ), h3:lang( anp ), h4:lang( anp ), h5:lang( anp ), h6:lang( anp ),
562 h2:lang( as ), h3:lang( as ), h4:lang( as ), h5:lang( as ), h6:lang( as ),
563 h2:lang( bho ), h3:lang( bho ), h4:lang( bho ), h5:lang( bho ), h6:lang( bho ),
564 h2:lang( bh ), h3:lang( bh ), h4:lang( bh ), h5:lang( bh ), h6:lang( bh ),
565 h2:lang( bn ), h3:lang( bn ), h4:lang( bn ), h5:lang( bn ), h6:lang( bn ),
566 h2:lang( gu ), h3:lang( gu ), h4:lang( gu ), h5:lang( gu ), h6:lang( gu ),
567 h2:lang( hi ), h3:lang( hi ), h4:lang( hi ), h5:lang( hi ), h6:lang( hi ),
568 h2:lang( kn ), h3:lang( kn ), h4:lang( kn ), h5:lang( kn ), h6:lang( kn ),
569 h2:lang( ks ), h3:lang( ks ), h4:lang( ks ), h5:lang( ks ), h6:lang( ks ),
570 h2:lang( ml ), h3:lang( ml ), h4:lang( ml ), h5:lang( ml ), h6:lang( ml ),
571 h2:lang( mr ), h3:lang( mr ), h4:lang( mr ), h5:lang( mr ), h6:lang( mr ),
572 h2:lang( my ), h3:lang( my ), h4:lang( my ), h5:lang( my ), h6:lang( my ),
573 h2:lang( mai ), h3:lang( mai ), h4:lang( mai ), h5:lang( mai ), h6:lang( mai ),
574 h2:lang( ne ), h3:lang( ne ), h4:lang( ne ), h5:lang( ne ), h6:lang( ne ),
575 h2:lang( new ), h3:lang( new ), h4:lang( new ), h5:lang( new ), h6:lang( new ),
576 h2:lang( or ), h3:lang( or ), h4:lang( or ), h5:lang( or ), h6:lang( or ),
577 h2:lang( pa ), h3:lang( pa ), h4:lang( pa ), h5:lang( pa ), h6:lang( pa ),
578 h2:lang( pi ), h3:lang( pi ), h4:lang( pi ), h5:lang( pi ), h6:lang( pi ),
579 h2:lang( sa ), h3:lang( sa ), h4:lang( sa ), h5:lang( sa ), h6:lang( sa ),
580 h2:lang( ta ), h3:lang( ta ), h4:lang( ta ), h5:lang( ta ), h6:lang( ta ),
581 h2:lang( te ), h3:lang( te ), h4:lang( te ), h5:lang( te ), h6:lang( te ) {
582 line-height: 1.2em;
583 }
584 /* stylelint-enable selector-list-comma-newline-after */
585
586 /* Localised ordered list numbering for some languages */
587 ol:lang( azb ) li,
588 ol:lang( bcc ) li,
589 ol:lang( bgn ) li,
590 ol:lang( bqi ) li,
591 ol:lang( fa ) li,
592 ol:lang( glk ) li,
593 ol:lang( kk-arab ) li,
594 ol:lang( lrc ) li,
595 ol:lang( luz ) li,
596 ol:lang( mzn ) li {
597 list-style-type: -moz-persian;
598 list-style-type: persian;
599 }
600
601 ol:lang( ckb ) li,
602 ol:lang( sdh ) li {
603 list-style-type: -moz-arabic-indic;
604 list-style-type: arabic-indic;
605 }
606
607 ol:lang( hi ) li,
608 ol:lang( mai ) li,
609 ol:lang( mr ) li,
610 ol:lang( ne ) li {
611 list-style-type: -moz-devanagari;
612 list-style-type: devanagari;
613 }
614
615 ol:lang( as ) li,
616 ol:lang( bn ) li {
617 list-style-type: -moz-bengali;
618 list-style-type: bengali;
619 }
620
621 ol:lang( or ) li {
622 list-style-type: -moz-oriya;
623 list-style-type: oriya;
624 }
625
626 .toc ul {
627 margin: 0.3em 0;
628 }
629
630 /* Correct directionality when page dir is different from site/user dir */
631 /* @noflip */ .mw-content-ltr .toc ul,
632 .mw-content-rtl .mw-content-ltr .toc ul {
633 text-align: left;
634 }
635
636 /* @noflip */ .mw-content-rtl .toc ul,
637 .mw-content-ltr .mw-content-rtl .toc ul {
638 text-align: right;
639 }
640
641 /* @noflip */ .mw-content-ltr .toc ul ul,
642 .mw-content-rtl .mw-content-ltr .toc ul ul {
643 margin: 0 0 0 2em;
644 }
645
646 /* @noflip */ .mw-content-rtl .toc ul ul,
647 .mw-content-ltr .mw-content-rtl .toc ul ul {
648 margin: 0 2em 0 0;
649 }
650
651 .toc .toctitle {
652 direction: ltr;
653 }
654
655 #mw-clearyourcache,
656 #mw-sitecsspreview,
657 #mw-sitejspreview,
658 #mw-usercsspreview,
659 #mw-userjspreview {
660 direction: ltr;
661 unicode-bidi: embed;
662 }
663
664 #mw-revision-info,
665 #mw-revision-info-current,
666 #mw-revision-nav {
667 direction: ltr;
668 }
669
670 /* Images */
671
672 /* @noflip */ div.tright,
673 div.floatright,
674 table.floatright {
675 clear: right;
676 float: right;
677 }
678
679 /* @noflip */ div.tleft,
680 div.floatleft,
681 table.floatleft {
682 float: left;
683 clear: left;
684 }
685
686 div.floatright,
687 table.floatright,
688 div.floatleft,
689 table.floatleft {
690 position: relative;
691 }
692
693 /* T14205 */
694 #mw-credits a {
695 unicode-bidi: embed;
696 }
697
698 /* Print footer should be hidden by default in screen. */
699 .printfooter {
700 display: none;
701 }
702
703 /* For developers */
704 .xdebug-error {
705 position: absolute;
706 z-index: 99;
707 }
708
709 .mw-editsection {
710 -moz-user-select: none;
711 -webkit-user-select: none;
712 -ms-user-select: none;
713 user-select: none;
714 }
715
716 /* Display editsection links smaller and next to headings */
717 .mw-editsection,
718 .mw-editsection-like {
719 font-size: small;
720 font-weight: normal;
721 margin-left: 1em;
722 vertical-align: baseline;
723 /* Reset line-height; headings tend to have it set to larger values */
724 line-height: 1em;
725 }
726
727 /* Correct directionality when page dir is different from site/user dir */
728 /* @noflip */
729 .mw-content-ltr .mw-editsection,
730 .mw-content-rtl .mw-content-ltr .mw-editsection {
731 margin-left: 1em;
732 }
733
734 /* @noflip */
735 .mw-content-rtl .mw-editsection,
736 .mw-content-ltr .mw-content-rtl .mw-editsection {
737 margin-right: 1em;
738 }
739
740 /* Prevent citations and subscripts from interfering with the line-height */
741 sup,
742 sub {
743 line-height: 1;
744 }