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