EditPage: Remove legacy non-OOUI render mode
[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 /* 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 /* Underline preference */
128
129 .mw-underline-always a {
130 text-decoration: underline;
131 }
132
133 .mw-underline-never a {
134 text-decoration: none;
135 }
136
137 /**
138 * rev_deleted stuff
139 */
140 li span.deleted,
141 span.history-deleted {
142 text-decoration: line-through;
143 color: #888;
144 font-style: italic;
145 }
146
147 /**
148 * Patrol stuff
149 */
150 .not-patrolled {
151 background-color: #ffa;
152 }
153
154 .unpatrolled {
155 font-weight: bold;
156 color: #f00;
157 }
158
159 div.patrollink {
160 font-size: 75%;
161 text-align: right;
162 }
163
164 /**
165 * Forms
166 */
167 td.mw-label {
168 text-align: right;
169 vertical-align: middle;
170 }
171
172 td.mw-input {
173 text-align: left;
174 }
175
176 td.mw-submit {
177 text-align: left;
178 white-space: nowrap;
179 }
180
181 .mw-input-with-label {
182 white-space: nowrap;
183 display: inline-block;
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 T33990
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 #a2a9b1;
237 margin: 0.125em 0;
238 padding: 0 0.5em;
239 zoom: 1;
240 display: inline !ie; /* stylelint-disable-line declaration-block-no-duplicate-properties */
241 }
242
243 .catlinks li:first-child {
244 padding-left: 0.25em;
245 border-left: 0;
246 }
247
248 /* (T7346) 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 #2a4b8d;
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 T38276 */
321 a.new {
322 color: #ba0000;
323 }
324
325 /* self links */
326 a.mw-selflink {
327 color: inherit;
328 font-weight: bold;
329 text-decoration: inherit;
330 }
331 a.mw-selflink:hover {
332 cursor: inherit;
333 text-decoration: inherit;
334 }
335 a.mw-selflink:active,
336 a.mw-selflink:visited {
337 color: inherit;
338 }
339
340 /* Plainlinks - this can be used to switch
341 * off special external link styling */
342 .plainlinks a.external {
343 background: none !important; /* stylelint-disable-line declaration-no-important */
344 padding: 0 !important; /* stylelint-disable-line declaration-no-important */
345 }
346
347 /* External URLs should always be treated as LTR (T6330) */
348 /* @noflip */ .rtl a.external.free,
349 .rtl a.external.autonumber {
350 direction: ltr;
351 unicode-bidi: embed;
352 }
353
354 /**
355 * wikitable class for skinning normal tables
356 * keep in sync with commonPrint.css
357 */
358 table.wikitable {
359 margin: 1em 0;
360 background-color: #f8f9fa;
361 border: 1px solid #a2a9b1;
362 border-collapse: collapse;
363 color: #000;
364 }
365
366 table.wikitable > tr > th,
367 table.wikitable > tr > td,
368 table.wikitable > * > tr > th,
369 table.wikitable > * > tr > td {
370 border: 1px solid #a2a9b1;
371 padding: 0.2em 0.4em;
372 }
373
374 table.wikitable > tr > th,
375 table.wikitable > * > tr > th {
376 background-color: #eaecf0;
377 text-align: center;
378 }
379
380 table.wikitable > caption {
381 font-weight: bold;
382 }
383
384 /* success and error messages */
385 .error,
386 .warning,
387 .success {
388 font-size: larger;
389 }
390
391 .error {
392 color: #c00;
393 }
394
395 .warning {
396 color: #705000;
397 }
398
399 .success {
400 color: #009000;
401 }
402
403 .errorbox,
404 .warningbox,
405 .successbox {
406 border: 1px solid;
407 padding: 0.5em 1em;
408 margin-bottom: 1em;
409 display: inline-block;
410 zoom: 1;
411 *display: inline; /* stylelint-disable-line declaration-block-no-duplicate-properties */
412 }
413
414 .errorbox h2,
415 .warningbox h2,
416 .successbox h2 {
417 font-size: 1em;
418 color: inherit;
419 font-weight: bold;
420 display: inline;
421 margin: 0 0.5em 0 0;
422 border: 0;
423 }
424
425 .errorbox {
426 color: #c00;
427 border-color: #fac5c5;
428 background-color: #fae3e3;
429 }
430
431 .warningbox {
432 color: #705000;
433 border-color: #fde29b;
434 background-color: #fdf1d1;
435 }
436
437 .successbox {
438 color: #008000;
439 border-color: #b7fdb5;
440 background-color: #e1fddf;
441 }
442
443 /* general info/warning box for SP */
444 .mw-infobox {
445 border: 2px solid #ff7f00;
446 margin: 0.5em;
447 clear: left;
448 overflow: hidden;
449 }
450
451 .mw-infobox-left {
452 margin: 7px;
453 float: left;
454 width: 35px;
455 }
456
457 .mw-infobox-right {
458 margin: 0.5em 0.5em 0.5em 49px;
459 }
460
461 /* Note on preview page */
462 .previewnote {
463 color: #c00;
464 margin-bottom: 1em;
465 }
466
467 .previewnote p {
468 text-indent: 3em;
469 margin: 0.8em 0;
470 }
471
472 .visualClear {
473 clear: both;
474 }
475
476 /**
477 * Data table style
478 *
479 * Transparent table with suddle borders
480 * and blue row-highlighting.
481 */
482 .mw-datatable {
483 border-collapse: collapse;
484 }
485
486 .mw-datatable,
487 .mw-datatable td,
488 .mw-datatable th {
489 border: 1px solid #a2a9b1;
490 padding: 0 0.15em 0 0.15em;
491 }
492
493 .mw-datatable th {
494 background-color: #ddf;
495 }
496
497 .mw-datatable td {
498 background-color: #fff;
499 }
500
501 .mw-datatable tr:hover td {
502 background-color: #eaf3ff;
503 }
504
505 /* Correct directionality when page dir is different from site/user dir */
506 .mw-content-ltr ul,
507 .mw-content-rtl .mw-content-ltr ul {
508 /* @noflip */
509 margin: 0.3em 0 0 1.6em;
510 padding: 0;
511 }
512
513 .mw-content-rtl ul,
514 .mw-content-ltr .mw-content-rtl ul {
515 /* @noflip */
516 margin: 0.3em 1.6em 0 0;
517 padding: 0;
518 }
519
520 .mw-content-ltr ol,
521 .mw-content-rtl .mw-content-ltr ol {
522 /* @noflip */
523 margin: 0.3em 0 0 3.2em;
524 padding: 0;
525 }
526
527 .mw-content-rtl ol,
528 .mw-content-ltr .mw-content-rtl ol {
529 /* @noflip */
530 margin: 0.3em 3.2em 0 0;
531 padding: 0;
532 }
533
534 /* @noflip */
535 .mw-content-ltr dd,
536 .mw-content-rtl .mw-content-ltr dd {
537 margin-left: 1.6em;
538 margin-right: 0;
539 }
540
541 /* @noflip */
542 .mw-content-rtl dd,
543 .mw-content-ltr .mw-content-rtl dd {
544 margin-right: 1.6em;
545 margin-left: 0;
546 }
547
548 .mw-ajax-loader {
549 background-image: url( images/ajax-loader.gif );
550 background-position: center center;
551 background-repeat: no-repeat;
552 padding: 16px;
553 position: relative;
554 top: -16px;
555 }
556
557 .mw-small-spinner {
558 padding: 10px !important; /* stylelint-disable-line declaration-no-important */
559 margin-right: 0.6em;
560 background-image: url( images/spinner.gif );
561 background-position: center center;
562 background-repeat: no-repeat;
563 }
564
565 /* Language specific height correction for titles. Ref T31405 and T32809 */
566 /* Languages like hi or ml require slightly more vertical space to show diacritics properly */
567 h1:lang( anp ),
568 h1:lang( as ),
569 h1:lang( bh ), /* Macrolanguage, used on bh.wikipedia.org, should be removed one day */
570 h1:lang( bho ),
571 h1:lang( bn ),
572 h1:lang( gu ),
573 h1:lang( hi ),
574 h1:lang( kn ),
575 h1:lang( ks ),
576 h1:lang( ml ),
577 h1:lang( mr ),
578 h1:lang( my ),
579 h1:lang( mai ),
580 h1:lang( ne ),
581 h1:lang( new ),
582 h1:lang( or ),
583 h1:lang( pa ),
584 h1:lang( pi ),
585 h1:lang( sa ),
586 h1:lang( ta ),
587 h1:lang( te ) {
588 line-height: 1.6em !important; /* stylelint-disable-line declaration-no-important */
589 }
590
591 /* stylelint-disable selector-list-comma-newline-after */
592 h2:lang( anp ), h3:lang( anp ), h4:lang( anp ), h5:lang( anp ), h6:lang( anp ),
593 h2:lang( as ), h3:lang( as ), h4:lang( as ), h5:lang( as ), h6:lang( as ),
594 h2:lang( bho ), h3:lang( bho ), h4:lang( bho ), h5:lang( bho ), h6:lang( bho ),
595 h2:lang( bh ), h3:lang( bh ), h4:lang( bh ), h5:lang( bh ), h6:lang( bh ),
596 h2:lang( bn ), h3:lang( bn ), h4:lang( bn ), h5:lang( bn ), h6:lang( bn ),
597 h2:lang( gu ), h3:lang( gu ), h4:lang( gu ), h5:lang( gu ), h6:lang( gu ),
598 h2:lang( hi ), h3:lang( hi ), h4:lang( hi ), h5:lang( hi ), h6:lang( hi ),
599 h2:lang( kn ), h3:lang( kn ), h4:lang( kn ), h5:lang( kn ), h6:lang( kn ),
600 h2:lang( ks ), h3:lang( ks ), h4:lang( ks ), h5:lang( ks ), h6:lang( ks ),
601 h2:lang( ml ), h3:lang( ml ), h4:lang( ml ), h5:lang( ml ), h6:lang( ml ),
602 h2:lang( mr ), h3:lang( mr ), h4:lang( mr ), h5:lang( mr ), h6:lang( mr ),
603 h2:lang( my ), h3:lang( my ), h4:lang( my ), h5:lang( my ), h6:lang( my ),
604 h2:lang( mai ), h3:lang( mai ), h4:lang( mai ), h5:lang( mai ), h6:lang( mai ),
605 h2:lang( ne ), h3:lang( ne ), h4:lang( ne ), h5:lang( ne ), h6:lang( ne ),
606 h2:lang( new ), h3:lang( new ), h4:lang( new ), h5:lang( new ), h6:lang( new ),
607 h2:lang( or ), h3:lang( or ), h4:lang( or ), h5:lang( or ), h6:lang( or ),
608 h2:lang( pa ), h3:lang( pa ), h4:lang( pa ), h5:lang( pa ), h6:lang( pa ),
609 h2:lang( pi ), h3:lang( pi ), h4:lang( pi ), h5:lang( pi ), h6:lang( pi ),
610 h2:lang( sa ), h3:lang( sa ), h4:lang( sa ), h5:lang( sa ), h6:lang( sa ),
611 h2:lang( ta ), h3:lang( ta ), h4:lang( ta ), h5:lang( ta ), h6:lang( ta ),
612 h2:lang( te ), h3:lang( te ), h4:lang( te ), h5:lang( te ), h6:lang( te ) {
613 line-height: 1.2em;
614 }
615 /* stylelint-enable selector-list-comma-newline-after */
616
617 /* Localised ordered list numbering for some languages */
618 ol:lang( azb ) li,
619 ol:lang( bcc ) li,
620 ol:lang( bgn ) li,
621 ol:lang( bqi ) li,
622 ol:lang( fa ) li,
623 ol:lang( glk ) li,
624 ol:lang( kk-arab ) li,
625 ol:lang( lrc ) li,
626 ol:lang( luz ) li,
627 ol:lang( mzn ) li {
628 list-style-type: -moz-persian;
629 list-style-type: persian;
630 }
631
632 ol:lang( ckb ) li,
633 ol:lang( sdh ) li {
634 list-style-type: -moz-arabic-indic;
635 list-style-type: arabic-indic;
636 }
637
638 ol:lang( hi ) li,
639 ol:lang( mai ) li,
640 ol:lang( mr ) li,
641 ol:lang( ne ) li {
642 list-style-type: -moz-devanagari;
643 list-style-type: devanagari;
644 }
645
646 ol:lang( as ) li,
647 ol:lang( bn ) li {
648 list-style-type: -moz-bengali;
649 list-style-type: bengali;
650 }
651
652 ol:lang( or ) li {
653 list-style-type: -moz-oriya;
654 list-style-type: oriya;
655 }
656
657 #toc ul,
658 .toc ul {
659 margin: 0.3em 0;
660 }
661
662 /* Correct directionality when page dir is different from site/user dir */
663 /* @noflip */ .mw-content-ltr .toc ul,
664 .mw-content-ltr #toc ul,
665 .mw-content-rtl .mw-content-ltr .toc ul,
666 .mw-content-rtl .mw-content-ltr #toc ul {
667 text-align: left;
668 }
669
670 /* @noflip */ .mw-content-rtl .toc ul,
671 .mw-content-rtl #toc ul,
672 .mw-content-ltr .mw-content-rtl .toc ul,
673 .mw-content-ltr .mw-content-rtl #toc ul {
674 text-align: right;
675 }
676
677 /* @noflip */ .mw-content-ltr .toc ul ul,
678 .mw-content-ltr #toc ul ul,
679 .mw-content-rtl .mw-content-ltr .toc ul ul,
680 .mw-content-rtl .mw-content-ltr #toc ul ul {
681 margin: 0 0 0 2em;
682 }
683
684 /* @noflip */ .mw-content-rtl .toc ul ul,
685 .mw-content-rtl #toc ul ul,
686 .mw-content-ltr .mw-content-rtl .toc ul ul,
687 .mw-content-ltr .mw-content-rtl #toc ul ul {
688 margin: 0 2em 0 0;
689 }
690
691 #toc #toctitle,
692 .toc #toctitle,
693 #toc .toctitle,
694 .toc .toctitle {
695 direction: ltr;
696 }
697
698 #mw-clearyourcache,
699 #mw-sitecsspreview,
700 #mw-sitejspreview,
701 #mw-usercsspreview,
702 #mw-userjspreview {
703 direction: ltr;
704 unicode-bidi: embed;
705 }
706
707 #mw-revision-info,
708 #mw-revision-info-current,
709 #mw-revision-nav {
710 direction: ltr;
711 }
712
713 /* Images */
714
715 /* @noflip */ div.tright,
716 div.floatright,
717 table.floatright {
718 clear: right;
719 float: right;
720 }
721
722 /* @noflip */ div.tleft,
723 div.floatleft,
724 table.floatleft {
725 float: left;
726 clear: left;
727 }
728
729 div.floatright,
730 table.floatright,
731 div.floatleft,
732 table.floatleft {
733 position: relative;
734 }
735
736 /* T14205 */
737 #mw-credits a {
738 unicode-bidi: embed;
739 }
740
741 /* Accessibility */
742 .mw-jump,
743 #jump-to-nav {
744 overflow: hidden;
745 height: 0;
746 zoom: 1; /* http://webaim.org/techniques/skipnav/#iequirk */
747 }
748
749 /* Print footer should be hidden by default in screen. */
750 .printfooter {
751 display: none;
752 }
753
754 /* For developers */
755 .xdebug-error {
756 position: absolute;
757 z-index: 99;
758 }
759
760 .mw-editsection,
761 #jump-to-nav {
762 -moz-user-select: none;
763 -webkit-user-select: none;
764 -ms-user-select: none;
765 user-select: none;
766 }
767
768 /* Display editsection links smaller and next to headings */
769 .mw-editsection,
770 .mw-editsection-like {
771 font-size: small;
772 font-weight: normal;
773 margin-left: 1em;
774 vertical-align: baseline;
775 /* Reset line-height; headings tend to have it set to larger values */
776 line-height: 1em;
777 /* As .mw-editsection is a <span> (inline element), it is treated as part */
778 /* of the heading content when selecting text by multiple clicks and thus */
779 /* selected together with heading content, despite the user-select: none; */
780 /* rule set above. This enforces non-selection without changing the look. */
781 display: inline-block;
782 }
783
784 /* Correct directionality when page dir is different from site/user dir */
785 /* @noflip */
786 .mw-content-ltr .mw-editsection,
787 .mw-content-rtl .mw-content-ltr .mw-editsection {
788 margin-left: 1em;
789 }
790
791 /* @noflip */
792 .mw-content-rtl .mw-editsection,
793 .mw-content-ltr .mw-content-rtl .mw-editsection {
794 margin-right: 1em;
795 }
796
797 /* Prevent citations and subscripts from interfering with the line-height */
798 sup,
799 sub {
800 line-height: 1;
801 }