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