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