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