revert r93284 and follow up r93285
[lhc/web/wiklou.git] / skins / common / 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
7 /* GENERAL CLASSES FOR DIRECTIONALITY SUPPORT */
8 /* These classes should be used for text depending on the content direction.
9 Content stuff like editsection, ul/ol and TOC depend on this. */
10 /* @noflip */.mw-content-ltr { direction: ltr; }
11 /* @noflip */.mw-content-rtl { direction: rtl; }
12 /* Most input fields should be in site direction */
13 /* @noflip */.sitedir-ltr textarea, .sitedir-ltr input { direction: ltr; }
14 /* @noflip */.sitedir-rtl textarea, .sitedir-rtl input { direction: rtl; }
15 /* Input types that should follow user direction, like buttons */
16 input[type="submit"], input[type="button"], input[type="reset"], input[type="file"] { direction: ltr; }
17 /* Override default values */
18 /* @noflip */textarea[dir="ltr"], input[dir="ltr"] { direction: ltr; }
19 /* @noflip */textarea[dir="rtl"], input[dir="rtl"] { direction: rtl; }
20
21 .mw-float-start { float: left; }
22 .mw-float-end { float: right; }
23 .mw-align-start { text-align: left; }
24 .mw-align-end { text-align: right; }
25
26 /* The scripts of these languages are very hard to read with underlines */
27 [lang="ar"] a, [lang="ckb"] a, [lang="fa"] a, [lang="kk-arab"] a,
28 [lang="mzn"] a, [lang="ps"] a, [lang="ur"] a {
29 text-decoration: none;
30 }
31
32 /* Default style for semantic tags */
33 abbr, acronym, .explain {
34 border-bottom: 1px dotted black;
35 cursor: help;
36 }
37
38 /* Colored watchlist and recent changes numbers */
39 .mw-plusminus-pos { color: #006400; } /* dark green */
40 .mw-plusminus-neg { color: #8b0000; } /* dark red */
41 .mw-plusminus-null { color: #aaa; } /* gray */
42
43 /* Links to redirects appear italicized on [[Special:AllPages]], [[Special:PrefixIndex]],
44 [[Special:Watchlist/edit]] and in category listings */
45 .allpagesredirect, .redirect-in-category, .watchlistredir {
46 font-style: italic;
47 }
48
49
50 /* Comment and username portions of RC entries */
51 span.comment {
52 font-style: italic;
53 }
54
55 span.changedby {
56 font-size: 95%;
57 }
58
59 /* Math */
60 .texvc {
61 direction: ltr;
62 unicode-bidi: embed;
63 }
64 img.tex { vertical-align: middle; }
65 span.texhtml { font-family: serif; }
66
67 /* add a bit of margin space between the preview and the toolbar */
68 /* this replaces the ugly <p><br /></p> we used to insert into the page source */
69 #wikiPreview.ontop { margin-bottom: 1em; }
70
71 /* Stop floats from intruding into edit area in previews */
72 #editform, #toolbar, #wpTextbox1 {
73 clear: both;
74 }
75 #toolbar img {
76 cursor: pointer;
77 }
78 div#mw-js-message {
79 margin: 1em 5%;
80 padding: 0.5em 2.5%;
81 border: solid 1px #ddd;
82 background-color: #fcfcfc;
83 }
84
85 /* Edit section links */
86 .editsection {
87 float: right;
88 margin-left: 5px;
89 }
90 /* Correct directionality when page dir is different from site/user dir */
91 /* @noflip */.mw-content-ltr .editsection, .mw-content-rtl .mw-content-ltr .editsection { float: right; }
92 /* @noflip */.mw-content-rtl .editsection, .mw-content-ltr .mw-content-rtl .editsection { float: left; }
93 /**
94 * File histories
95 */
96 h2#filehistory {
97 clear: both;
98 }
99
100 table.filehistory th,
101 table.filehistory td {
102 vertical-align: top;
103 }
104 table.filehistory th {
105 text-align: left;
106 }
107 table.filehistory td.mw-imagepage-filesize,
108 table.filehistory th.mw-imagepage-filesize {
109 white-space: nowrap;
110 }
111
112 table.filehistory td.filehistory-selected {
113 font-weight: bold;
114 }
115
116 /*
117 * rev_deleted stuff
118 */
119 li span.deleted, span.history-deleted {
120 text-decoration: line-through;
121 color: #888;
122 font-style: italic;
123 }
124
125 /**
126 * Patrol stuff
127 */
128 .not-patrolled {
129 background-color: #ffa;
130 }
131
132 .unpatrolled {
133 font-weight: bold;
134 color: red;
135 }
136
137 div.patrollink {
138 font-size: 75%;
139 text-align: right;
140 }
141
142 /**
143 * Forms
144 */
145 td.mw-label { text-align: right; }
146 td.mw-input { text-align: left; }
147 td.mw-submit { text-align: left; }
148
149 td.mw-label { vertical-align: top; }
150 .prefsection td.mw-label { width: 20%; }
151 .prefsection table { width: 100%; }
152 td.mw-submit { white-space: nowrap; }
153
154 table.mw-htmlform-nolabel td.mw-label {
155 width: 0 !important;
156 }
157
158 tr.mw-htmlform-vertical-label td.mw-label {
159 text-align: left !important;
160 }
161
162 .mw-htmlform-invalid-input td.mw-input input {
163 border-color: red;
164 }
165 .mw-htmlform-multiselect-flatlist div.mw-htmlform-multiselect-item {
166 display: inline;
167 margin-right: 1em;
168 white-space: nowrap;
169 }
170
171 input#wpSummary {
172 width: 80%;
173 }
174
175 /**
176 * Image captions
177 */
178 .thumbcaption { text-align: left; }
179 .magnify { float: right; }
180
181 /**
182 * Categories
183 */
184 #catlinks ul {
185 display:inline;
186 margin: 0px;
187 list-style:none;
188 list-style-type:none;
189 list-style-image:none;
190 vertical-align: middle !ie;
191 }
192
193 #catlinks li {
194 display:inline-block;
195 line-height: 1.35em;
196 padding: 0 .7em;
197 border-left: 1px solid #AAA;
198 margin: 0.3em 0;
199 zoom: 1;
200 display:inline !ie;
201 }
202
203 #catlinks li:first-child {
204 padding-left: .4em;
205 border-left: none;
206 }
207 /**
208 * Hidden categories
209 */
210 .mw-hidden-cats-hidden { display: none; }
211 .catlinks-allhidden { display: none; }
212
213 /* Convenience links to edit block, delete and protect reasons */
214 p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
215 p.mw-filedelete-editreasons, p.mw-delete-editreasons,
216 p.mw-revdel-editreasons {
217 font-size: 90%;
218 text-align: right;
219 }
220
221 /*
222 * OpenSearch ajax suggestions
223 */
224 .open-search-suggestions .ui-autocomplete {
225 font-size: 95%;
226 border: 1px solid #AAA!important;
227 overflow: auto;
228 height: 100px;
229 background: #FFF;
230 background: Window;
231 }
232 .open-search-suggestions .ui-autocomplete #ui-active-menuitem {
233 background: #4C59A6;
234 background: Highlight;
235 color: white;
236 color: HighlightText;
237 border-color: #4C59A6;
238 border-color: Highlight;
239 }
240 .open-search-suggestions .ui-autocomplete .ui-menu-item a{
241 line-height: 1.1!important;
242 font-size: 95%;
243 }
244
245 /* Page history styling */
246 /* the auto-generated edit comments */
247 .autocomment { color: gray; }
248 #pagehistory .history-user {
249 margin-left: 0.4em;
250 margin-right: 0.2em;
251 }
252 #pagehistory span.minor {
253 font-weight: bold;
254 }
255 #pagehistory li {
256 border: 1px solid white;
257 }
258 #pagehistory li.selected {
259 background-color: #f9f9f9;
260 border: 1px dashed #aaa;
261 }
262
263 /** Generic minor/bot/newpage styling */
264 .newpage, .minor, .bot {
265 font-weight: bold;
266 }
267
268 #shared-image-dup, #shared-image-conflict {
269 font-style: italic;
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 #2F6FAB;
282 clear: both;
283 }
284 div.mw-warning-with-logexcerpt ul li {
285 font-size: 90%;
286 }
287
288 /* (show/hide) revision deletion links */
289 span.mw-revdelundel-link,
290 strong.mw-revdelundel-link {
291 font-size: 90%;
292 }
293 span.mw-revdelundel-hidden,
294 input.mw-revdelundel-hidden {
295 visibility: hidden;
296 }
297
298 td.mw-revdel-checkbox, th.mw-revdel-checkbox {
299 padding-right: 10px;
300 text-align: center;
301 }
302
303 /* feed links */
304 a.feedlink {
305 /* @embed */
306 background: url("images/feed-icon.png") center left no-repeat;
307 padding-left: 16px;
308 }
309
310 /* Plainlinks - this can be used to switch
311 * off special external link styling */
312 .plainlinks a {
313 background: none !important;
314 padding: 0 !important;
315 }
316 /* External URLs should always be treated as LTR (bug 4330) */
317 /* @noflip */ .rtl a.external.free, .rtl a.external.autonumber {
318 direction: ltr;
319 unicode-bidi: embed;
320 }
321
322 /* wikitable class for skinning normal tables
323 * keep on sync with commonPrint.css
324 */
325 table.wikitable {
326 margin: 1em 1em 1em 0;
327 background: #f9f9f9;
328 border: 1px #aaa solid;
329 border-collapse: collapse;
330 color: black;
331 }
332 .wikitable th, .wikitable td {
333 border: 1px #aaa solid;
334 padding: 0.2em;
335 }
336 .wikitable th {
337 background: #f2f2f2;
338 text-align: center;
339 }
340 .wikitable caption {
341 font-weight: bold;
342 }
343
344 /* hide initially collapsed collapsable tables */
345 table.collapsed tr.collapsable {
346 display: none;
347 }
348
349 /* success and error messages */
350 .success {
351 color: green;
352 font-size: larger;
353 }
354 .warning {
355 color: #FFA500; /* orange */
356 font-size: larger;
357 }
358 .error {
359 color: red;
360 font-size: larger;
361 }
362 .errorbox, .warningbox, .successbox {
363 font-size: larger;
364 border: 2px solid;
365 padding: .5em 1em;
366 float: left;
367 margin-bottom: 2em;
368 color: #000;
369 }
370 .errorbox {
371 border-color: red;
372 background-color: #fff2f2;
373 }
374 .warningbox {
375 border-color: #FF8C00; /* darkorange */
376 background-color: #FFFFC0;
377 }
378 .successbox {
379 border-color: green;
380 background-color: #dfd;
381 }
382 .errorbox h2, .warningbox h2, .successbox h2 {
383 font-size: 1em;
384 font-weight: bold;
385 display: inline;
386 margin: 0 .5em 0 0;
387 border: none;
388 }
389
390 /* general info/warning box for SP */
391 .mw-infobox {
392 border: 2px solid #ff7f00;
393 margin: 0.5em;
394 clear: left;
395 overflow: hidden;
396 }
397
398 .mw-infobox-left {
399 margin: 7px;
400 float: left;
401 width: 35px;
402 }
403
404 .mw-infobox-right {
405 margin: 0.5em 0.5em 0.5em 49px;
406 }
407
408 /* Note on preview page */
409 .previewnote {
410 color: #c00;
411 margin-bottom: 1em;
412 }
413
414 .previewnote p {
415 text-indent: 3em;
416 margin: 0.8em 0;
417 }
418
419 .visualClear {
420 clear: both;
421 }
422
423 #mw_trackbacks {
424 border: solid 1px #bbbbff;
425 background-color: #eeeeff;
426 padding: 0.2em;
427 }
428
429 /*
430 Table pager (e.g. Special:ListFiles)
431 - remove underlines from the navigation link
432 - collapse borders
433 - set the borders to outsets (similar to Special:AllMessages)
434 - remove line wrapping for all td and th, set background color
435 - restore line wrapping for the last two table cells (description and size)
436 */
437 .TablePager {
438 min-width: 80%;
439 border-collapse: collapse;
440 }
441 .TablePager_nav {
442 margin: 0 auto;
443 }
444 .TablePager_nav td {
445 padding: 3px;
446 text-align: center;
447 }
448 .TablePager_nav a {
449 text-decoration: none;
450 }
451 .TablePager, .TablePager td, .TablePager th {
452 border: 1px solid #aaaaaa;
453 padding: 0 0.15em 0 0.15em;
454 }
455 .TablePager th {
456 background-color: #eeeeff;
457 }
458 .TablePager td {
459 background-color: #ffffff;
460 }
461 .TablePager tr:hover td {
462 background-color: #eeeeff;
463 }
464
465 .imagelist td, .imagelist th {
466 white-space: nowrap;
467 }
468 .imagelist .TablePager_col_links {
469 background-color: #eeeeff;
470 }
471 .imagelist .TablePager_col_img_description {
472 white-space: normal;
473 }
474 .imagelist th.TablePager_sort {
475 background-color: #ccccff;
476 }
477
478 /* filetoc */
479 ul#filetoc {
480 text-align: center;
481 border: 1px solid #aaaaaa;
482 background-color: #f9f9f9;
483 padding: 5px;
484 font-size: 95%;
485 margin-bottom: 0.5em;
486 margin-left: 0;
487 margin-right: 0;
488 }
489
490 #filetoc li {
491 display: inline;
492 list-style-type: none;
493 padding-right: 2em;
494 }
495
496 /* Classes for EXIF data display */
497 table.mw_metadata {
498 font-size: 0.8em;
499 margin-left: 0.5em;
500 margin-bottom: 0.5em;
501 width: 400px;
502 }
503
504 table.mw_metadata caption {
505 font-weight: bold;
506 }
507
508 table.mw_metadata th {
509 font-weight: normal;
510 }
511
512 table.mw_metadata td {
513 padding: 0.1em;
514 }
515
516 table.mw_metadata {
517 border: none;
518 border-collapse: collapse;
519 }
520
521 table.mw_metadata td, table.mw_metadata th {
522 text-align: center;
523 border: 1px solid #aaaaaa;
524 padding-left: 5px;
525 padding-right: 5px;
526 }
527
528 table.mw_metadata th {
529 background-color: #f9f9f9;
530 }
531
532 table.mw_metadata td {
533 background-color: #fcfcfc;
534 }
535
536 table.mw_metadata ul.metadata-langlist {
537 list-style-type: none;
538 list-style-image: none;
539 padding-right: 5px;
540 padding-left: 5px;
541 margin: 0;
542 }
543
544 /* Galleries */
545 /* These display attributes look nonsensical, but are needed to support IE and FF2 */
546 /* Don't forget to update commonPrint.css */
547 li.gallerybox {
548 vertical-align: top;
549 background-color: #f9f9f9;
550 border: solid 2px white;
551 display: -moz-inline-box;
552 display: inline-block;
553 }
554
555 ul.gallery, li.gallerybox {
556 zoom: 1;
557 *display: inline;
558 }
559
560 ul.gallery {
561 margin: 2px;
562 padding: 2px;
563 display: block;
564 }
565
566 li.gallerycaption {
567 font-weight: bold;
568 text-align: center;
569 display: block;
570 word-wrap: break-word;
571 }
572
573 li.gallerybox div.thumb {
574 text-align: center;
575 border: 1px solid #ccc;
576 margin: 2px;
577 }
578
579 li.gallerybox div.thumb img {
580 display: block;
581 margin: 0 auto;
582 }
583
584 div.gallerytext {
585 overflow: hidden;
586 font-size: 94%;
587 padding: 2px 4px;
588 word-wrap: break-word;
589 }
590
591 .mw-ajax-loader {
592 /* @embed */
593 background-image: url(images/ajax-loader.gif);
594 background-position: center center;
595 background-repeat: no-repeat;
596 padding: 16px;
597 position: relative;
598 top: -16px;
599 }
600
601 .mw-small-spinner {
602 padding: 10px !important;
603 margin-right: 0.6em;
604 /* @embed */
605 background-image: url(images/spinner.gif);
606 background-position: center center;
607 background-repeat: no-repeat;
608 }
609
610 /* Correct directionality when page dir is different from site/user dir */
611 /* @noflip */.mw-content-ltr ul, .mw-content-rtl .mw-content-ltr ul {
612 margin: .3em 0 0 1.5em;
613 }
614 /* @noflip */.mw-content-rtl ul, .mw-content-ltr .mw-content-rtl ul {
615 margin: .3em 1.5em 0 0;
616 }
617 /* @noflip */.mw-content-ltr ol, .mw-content-rtl .mw-content-ltr ol {
618 margin: .3em 0 0 3.2em;
619 }
620 /* @noflip */.mw-content-rtl ol, .mw-content-ltr .mw-content-rtl ol {
621 margin: .3em 3.2em 0 0;
622 }
623
624 /* Localised ordered list numbering for some languages */
625 ol:lang(bcc) li,
626 ol:lang(bqi) li,
627 ol:lang(fa) li,
628 ol:lang(glk) li,
629 ol:lang(kk-arab) li,
630 ol:lang(mzn) li {
631 list-style-type: -moz-persian;
632 list-style-type: persian;
633 }
634
635 ol:lang(ckb) li {
636 list-style-type: -moz-arabic-indic;
637 list-style-type: arabic-indic;
638 }
639
640 ol:lang(bn) li {
641 list-style-type: -moz-bengali;
642 list-style-type: bengali;
643 }
644
645 ol:lang(or) li {
646 list-style-type: -moz-oriya;
647 list-style-type: oriya;
648 }
649
650 /* Correct directionality when page dir is different from site/user dir */
651 /* @noflip */.mw-content-ltr .toc ul, .mw-content-ltr #toc ul,
652 .mw-content-rtl .mw-content-ltr .toc ul, .mw-content-rtl .mw-content-ltr #toc ul {
653 text-align: left;
654 margin-left: 0;
655 }
656 /* @noflip */.mw-content-rtl .toc ul, .mw-content-rtl #toc ul,
657 .mw-content-ltr .mw-content-rtl .toc ul, .mw-content-ltr .mw-content-rtl #toc ul {
658 text-align: right;
659 margin-right: 0;
660 }
661 /* @noflip */.mw-content-ltr .toc ul ul, .mw-content-ltr #toc ul ul,
662 .mw-content-rtl .mw-content-ltr .toc ul ul, .mw-content-rtl .mw-content-ltr #toc ul ul {
663 margin: 0 0 0 2em;
664 }
665 /* @noflip */.mw-content-rtl .toc ul ul, .mw-content-rtl #toc ul ul,
666 .mw-content-ltr .mw-content-rtl .toc ul ul, .mw-content-ltr .mw-content-rtl #toc ul ul {
667 margin: 0 2em 0 0;
668 }
669
670 /* tooltip styles */
671 .mw-help-field-hint {
672 display: none;
673 margin-left: 2px;
674 margin-bottom: -8px;
675 padding: 0px 0px 0px 15px;
676 /* @embed */
677 background-image: url('images/help-question.gif');
678 background-position: left center;
679 background-repeat: no-repeat;
680 cursor: pointer;
681 font-size: .8em;
682 text-decoration: underline;
683 color: #0645ad;
684 }
685 .mw-help-field-hint:hover {
686 /* @embed */
687 background-image: url('images/help-question-hover.gif');
688 }
689 .mw-help-field-data {
690 display: block;
691 background-color: #d6f3ff;
692 padding:5px 8px 4px 8px;
693 border: 1px solid #5dc9f4;
694 margin-left: 20px;
695 }
696 .tipsy {
697 padding: 5px 5px 10px;
698 font-size: 12px;
699 position: absolute;
700 z-index: 100000;
701 overflow: visible;
702 }
703 .tipsy-inner {
704 padding: 5px 8px 4px 8px;
705 background-color: #d6f3ff;
706 color: black;
707 border: 1px solid #5dc9f4;
708 max-width: 300px;
709 text-align: left;
710 }
711 .tipsy-arrow {
712 position: absolute;
713 /* @embed */
714 background: url(images/tipsy-arrow.gif) no-repeat top left;
715 width: 13px;
716 height: 13px;
717 }
718 .tipsy-se .tipsy-arrow {
719 bottom: -2px;
720 right: 10px;
721 background-position: 0% 100%;
722 }
723 /* Table Sorting */
724 th.headerSort {
725 background-image: url(images/sort_both.gif);
726 cursor: pointer;
727 background-repeat: no-repeat;
728 background-position: center right;
729 padding-right: 21px;
730 }
731 th.headerSortUp {
732 background-image: url(images/sort_up.gif);
733 }
734 th.headerSortDown {
735 background-image: url(images/sort_down.gif);
736 }
737
738 /* LTR content in RTL layout */
739 .ltr {
740 /* @noflip */
741 direction: ltr;
742 unicode-bidi: embed;
743 }
744
745 #mw-clearyourcache, #mw-sitecsspreview, #mw-sitejspreview, #mw-usercsspreview, #mw-userjspreview {
746 direction: ltr;
747 unicode-bidi: embed;
748 }
749
750 /* Correct user & content directionality when viewing a diff */
751 .diff-currentversion-title, .diff {
752 direction: ltr;
753 unicode-bidi: embed;
754 }
755 /* @noflip */ .diff-contentalign-right td {
756 direction: rtl;
757 unicode-bidi: embed;
758 }
759 /* @noflip */ .diff-contentalign-left td {
760 direction: ltr;
761 unicode-bidi: embed;
762 }
763 .diff-otitle, .diff-ntitle, .diff-lineno {
764 direction: ltr !important;
765 unicode-bidi: embed;
766 }
767
768 #mw-revision-info, #mw-revision-nav {
769 direction: ltr;
770 }
771
772 /* Images */
773 /* @noflip */div.tright, div.floatright, table.floatright {
774 clear: right;
775 float: right;
776 }
777 /* @noflip */div.tleft, div.floatleft, table.floatleft {
778 float: left;
779 clear: left;
780 }
781 div.floatright, table.floatright, div.floatleft, table.floatleft {
782 position: relative;
783 }
784
785 /* bug 12205 */
786 #mw-credits a { unicode-bidi: embed; }