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