Test for r67549 (bug 23797)
[mediawiki.git] / skins / common / shared.css
blob34975cd5f76f848d429cf3b80e48493f5c6ad491
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 non-Monobook users either.
5 */
7 /* Colored watchlist and recent changes numbers */
8 .mw-plusminus-pos { color: #006400; } /* dark green */
9 .mw-plusminus-neg { color: #8b0000; } /* dark red */
10 .mw-plusminus-null { color: #aaa; } /* gray */
12 /* Comment and username portions of RC entries */
13 span.comment {
14 font-style: italic;
17 span.changedby {
18 font-size: 95%;
21 /* Math */
22 .texvc {
23 direction: ltr;
24 unicode-bidi: embed;
26 img.tex { vertical-align: middle; }
27 span.texhtml { font-family: serif; }
29 /* add a bit of margin space between the preview and the toolbar */
30 /* this replaces the ugly <p><br /></p> we used to insert into the page source */
31 #wikiPreview.ontop { margin-bottom: 1em; }
33 /* Stop floats from intruding into edit area in previews */
34 #editform, #toolbar, #wpTextbox1 {
35 clear: both;
38 div#mw-js-message {
39 margin: 1em 5%;
40 padding: 0.5em 2.5%;
41 border: solid 1px #ddd;
42 background-color: #fcfcfc;
45 /* Edit section links */
46 .editsection {
47 float: right;
48 margin-left: 5px;
51 /**
52 * File histories
54 h2#filehistory {
55 clear: both;
58 table.filehistory th,
59 table.filehistory td {
60 vertical-align: top;
62 table.filehistory th {
63 text-align: left;
65 table.filehistory td.mw-imagepage-filesize,
66 table.filehistory th.mw-imagepage-filesize {
67 white-space: nowrap;
70 table.filehistory td.filehistory-selected {
71 font-weight: bold;
75 * rev_deleted stuff
77 li span.deleted, span.history-deleted {
78 text-decoration: line-through;
79 color: #888;
80 font-style: italic;
83 /**
84 * Patrol stuff
86 .not-patrolled {
87 background-color: #ffa;
90 .unpatrolled {
91 font-weight: bold;
92 color: red;
95 div.patrollink {
96 font-size: 75%;
97 text-align: right;
101 * Forms
103 body.ltr td.mw-label { text-align: right; }
104 body.ltr td.mw-input { text-align: left; }
105 body.ltr td.mw-submit { text-align: left; }
106 body.rtl td.mw-label { text-align: left; }
107 body.rtl td.mw-input { text-align: right; }
108 body.rtl td.mw-submit { text-align: right; }
110 td.mw-label { vertical-align: top; }
111 .prefsection td.mw-label { width: 20%; }
112 .prefsection table { width: 100%; }
113 td.mw-submit { white-space: nowrap; }
115 table.mw-htmlform-nolabel td.mw-label {
116 width: 0 !important;
119 tr.mw-htmlform-vertical-label td.mw-label {
120 text-align: left !important;
123 input#wpSummary {
124 width: 80%;
128 * Image captions
130 body.rtl .thumbcaption { text-align: right; }
131 body.rtl .magnify { float: left; }
133 body.ltr .thumbcaption { text-align: left; }
134 body.ltr .magnify { float: right; }
137 * Hidden categories
139 .mw-hidden-cats-hidden { display: none; }
140 .catlinks-allhidden { display: none; }
142 /* Convenience links to edit block, delete and protect reasons */
143 p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
144 p.mw-filedelete-editreasons, p.mw-delete-editreasons,
145 p.mw-revdel-editreasons {
146 font-size: 90%;
147 float: right;
150 /* Search results */
151 .searchresults {
154 .searchresults p {
155 margin-left: 0.4em;
156 margin-top: 1em;
157 margin-bottom: 1.2em;
160 div.searchresult {
161 font-size: 95%;
162 width: 38em;
165 .mw-search-results {
166 margin-left: 0.4em;
169 .mw-search-results li {
170 padding-bottom: 1em;
171 list-style: none;
172 list-style-image: none;
174 .mw-search-results li a {
175 font-size: 108%;
178 .mw-search-result-data {
179 color: green;
180 font-size: 97%;
183 .mw-search-formheader {
184 background-color: #f3f3f3;
185 margin-top: 1em;
186 border: 1px solid silver;
188 .mw-search-formheader div.search-types {
189 float: left;
190 padding-left: 0.25em;
192 .rtl .mw-search-formheader div.search-types {
193 float: right;
195 .mw-search-formheader div.search-types ul {
196 margin: 0 !important;
197 padding: 0 !important;
198 list-style: none !important;
200 .mw-search-formheader div.search-types ul li {
201 float: left;
202 margin: 0;
203 padding: 0;
205 .mw-search-formheader div.search-types ul li a {
206 display: block;
207 padding: 0.5em;
209 .mw-search-formheader div.search-types ul li.current a {
210 color: #333333;
211 cursor: default;
213 .mw-search-formheader div.search-types ul li.current a:hover {
214 text-decoration: none;
216 .mw-search-formheader div.results-info {
217 float: right;
218 padding: 0.5em;
219 padding-right: 0.75em;
221 .mw-search-formheader div.results-info ul {
222 margin: 0 !important;
223 padding: 0 !important;
224 list-style: none !important;
226 .mw-search-formheader div.results-info ul li {
227 float: right;
228 margin: 0;
229 padding: 0;
231 fieldset#mw-searchoptions {
232 margin: 0;
233 padding-left: 0.75em !important;
234 padding-right: 0.75em !important;
235 padding-bottom: 0.5em !important;
236 padding-top: 0.5em !important;
237 border: none;
238 background-color: #f9f9f9;
239 border: 1px solid silver !important;
240 border-top-width: 0 !important;
242 fieldset#mw-searchoptions legend {
243 display: none;
245 fieldset#mw-searchoptions h4 {
246 padding: 0;
247 margin: 0;
248 float: left;
250 .rtl fieldset#mw-searchoptions h4 {
251 float: right;
253 fieldset#mw-searchoptions div#mw-search-togglebox {
254 float: right;
256 .rtl fieldset#mw-searchoptions div#mw-search-togglebox {
257 float: left;
260 fieldset#mw-searchoptions div#mw-search-togglebox label {
261 margin-right: 0.25em;
263 fieldset#mw-searchoptions div#mw-search-togglebox input {
264 margin-left: 0.25em;
266 fieldset#mw-searchoptions table {
267 float: left;
268 margin-right: 3em;
270 fieldset#mw-searchoptions table td {
271 padding-right: 1em;
273 .rtl fieldset#mw-searchoptions table td {
274 padding-left: 1em;
275 padding-right: 0;
277 body.rtl fieldset#mw-searchoptions table {
278 margin-right: 0;
279 margin-left: 3em;
280 float: right;
282 fieldset#mw-searchoptions div.divider {
283 clear: both;
284 border-bottom: 1px solid #DDDDDD;
285 padding-top: 0.5em;
286 margin-bottom: 0.5em;
289 td#mw-search-menu {
290 padding-left:6em;
291 font-size:85%;
294 div#mw-search-interwiki {
295 float: right;
296 width: 18em;
297 border-style: solid;
298 border-color: #AAAAAA;
299 border-width: 1px;
300 margin-top: 2ex;
303 .rtl div#mw-search-interwiki {
304 float: left;
307 div#mw-search-interwiki li {
308 font-size: 95%;
311 .mw-search-interwiki-more {
312 float: right;
313 font-size: 90%;
316 .rtl .mw-search-interwiki-more {
317 float: left;
320 div#mw-search-interwiki-caption {
321 text-align: center;
322 font-weight: bold;
323 font-size: 95%;
326 .mw-search-interwiki-project {
327 font-size: 97%;
328 text-align: left;
329 padding-left: 0.2em;
330 padding-right: 0.15em;
331 padding-bottom: 0.2em;
332 padding-top: 0.15em;
333 background-color: #ececec;
334 border-top: 1px solid #BBBBBB;
337 .rtl .mw-search-interwiki-project {
338 text-align: right;
341 span.searchalttitle {
342 font-size: 95%;
345 div.searchdidyoumean {
346 font-size: 127%;
347 margin-top: 0.8em;
348 /* Note that this color won't affect the link, as desired. */
349 color: #c00;
352 div.searchdidyoumean em {
353 font-weight: bold;
356 .searchmatch {
357 font-weight: bold;
360 table#mw-search-top-table {
361 background-color: transparent;
366 * Advanced PowerSearch box
368 td#mw-search-togglebox {
369 text-align: right;
372 table#mw-search-powertable {
373 width: 100%;
376 form#powersearch {
377 clear: both;
381 * UserRights stuff
383 .mw-userrights-disabled {
384 color: #888;
387 table.mw-userrights-groups * td,table.mw-userrights-groups * th {
388 padding-right: 1.5em;
392 * OpenSearch ajax suggestions
394 .os-suggest {
395 overflow: auto;
396 overflow-x: hidden;
397 position: absolute;
398 top: 0px;
399 left: 0px;
400 width: 0px;
401 background-color: white;
402 background-color: Window;
403 border-style: solid;
404 border-color: #AAAAAA;
405 border-width: 1px;
406 z-index:99;
407 font-size:95%;
410 table.os-suggest-results {
411 font-size: 95%;
412 cursor: pointer;
413 border: 0;
414 border-collapse: collapse;
415 width: 100%;
418 .os-suggest-result, .os-suggest-result-hl {
419 white-space: nowrap;
420 background-color: white;
421 background-color: Window;
422 color: black;
423 color: WindowText;
424 padding: 2px;
426 .os-suggest-result-hl,
427 .os-suggest-result-hl-webkit {
428 background-color: #4C59A6;
429 color: white;
431 .os-suggest-result-hl {
432 /* System colors are misimplemented in Safari 3.0 and earlier,
433 making highlighted text illegible... */
434 background-color: Highlight;
435 color: HighlightText;
438 .os-suggest-toggle {
439 position: relative;
440 left: 1ex;
441 font-size: 65%;
443 .os-suggest-toggle-def {
444 position: absolute;
445 top: 0px;
446 left: 0px;
447 font-size: 65%;
448 visibility: hidden;
451 /* Page history styling */
452 /* the auto-generated edit comments */
453 .autocomment { color: gray; }
454 #pagehistory .history-user {
455 margin-left: 0.4em;
456 margin-right: 0.2em;
458 #pagehistory span.minor {
459 font-weight: bold;
461 #pagehistory li {
462 border: 1px solid white;
464 #pagehistory li.selected {
465 background-color: #f9f9f9;
466 border: 1px dashed #aaa;
469 /** Generic minor/bot/newpage styling */
470 .newpage, .minor, .bot {
471 font-weight: bold;
474 /* Special:Contributions styling */
475 .mw-uctop {
476 font-weight: bold;
479 /* Special:ListGroupRights styling */
480 table.mw-listgrouprights-table tr {
481 vertical-align: top;
483 .listgrouprights-revoked {
484 text-decoration: line-through;
487 /* Special:Statistics styling */
488 td.mw-statistics-numbers {
489 text-align: right;
492 /* Special:SpecialPages styling */
493 h4.mw-specialpagesgroup {
494 background-color: #dcdcdc;
495 padding: 2px;
496 margin: .3em 0em 0em 0em;
498 .mw-specialpagerestricted {
499 font-weight: bold;
502 #shared-image-dup, #shared-image-conflict {
503 font-style: italic;
506 /* Special:EmailUser styling */
507 table.mw-emailuser-table {
508 width: 98%;
510 td#mw-emailuser-sender, td#mw-emailuser-recipient {
511 font-weight: bold;
514 /* Special:Allpages styling */
515 table.allpageslist {
516 background-color: transparent;
518 table.mw-allpages-table-form, table.mw-allpages-table-chunk {
519 background-color: transparent;
520 width: 100%;
522 td.mw-allpages-alphaindexline {
523 text-align: right;
525 td.mw-allpages-nav, p.mw-allpages-nav {
526 text-align: right;
527 font-size: smaller;
528 margin-bottom: 1em;
530 table.mw-allpages-table-form tr {
531 vertical-align: top;
534 /* Special:Prefixindex styling */
535 table#mw-prefixindex-list-table,
536 table#mw-prefixindex-nav-table {
537 width: 98%;
538 background-color: transparent;
540 td#mw-prefixindex-nav-form {
541 font-size: smaller;
542 margin-bottom: 1em;
543 text-align: right;
544 vertical-align: top;
548 * Recreating deleted page warning
549 * Reupload file warning
550 * Page protection warning
551 * incl. log entries for these warnings
553 div.mw-warning-with-logexcerpt {
554 padding: 3px;
555 margin-bottom: 3px;
556 border: 2px solid #2F6FAB;
557 clear: both;
559 div.mw-warning-with-logexcerpt ul li {
560 font-size: 90%;
563 /* (show/hide) revision deletion links */
564 span.mw-revdelundel-link,
565 strong.mw-revdelundel-link {
566 font-size: 90%;
568 span.mw-revdelundel-hidden,
569 input.mw-revdelundel-hidden {
570 visibility: hidden;
573 td.mw-revdel-checkbox, th.mw-revdel-checkbox {
574 padding-right: 10px;
575 text-align: center;
578 /* feed links */
579 a.feedlink {
580 background: url("images/feed-icon.png") center left no-repeat;
581 padding-left: 16px;
584 /* Plainlinks - this can be used to switch
585 * off special external link styling */
586 .plainlinks a {
587 background: none !important;
588 padding: 0 !important;
591 /* wikitable class for skinning normal tables
592 * keep on sync with commonPrint.css
594 table.wikitable {
595 margin: 1em 1em 1em 0;
596 background: #f9f9f9;
597 border: 1px #aaa solid;
598 border-collapse: collapse;
600 .wikitable th, .wikitable td {
601 border: 1px #aaa solid;
602 padding: 0.2em;
604 .wikitable th {
605 background: #f2f2f2;
606 text-align: center;
608 .wikitable caption {
609 font-weight: bold;
612 /* hide initially collapsed collapsable tables */
613 table.collapsed tr.collapsable {
614 display: none;
617 /* success and error messages */
618 .success {
619 color: green;
620 font-size: larger;
622 .error {
623 color: red;
624 font-size: larger;
626 .errorbox, .successbox {
627 font-size: larger;
628 border: 2px solid;
629 padding: .5em 1em;
630 float: left;
631 margin-bottom: 2em;
632 color: #000;
634 .errorbox {
635 border-color: red;
636 background-color: #fff2f2;
638 .successbox {
639 border-color: green;
640 background-color: #dfd;
642 .errorbox h2, .successbox h2 {
643 font-size: 1em;
644 font-weight: bold;
645 display: inline;
646 margin: 0 .5em 0 0;
647 border: none;
650 /* Note on preview page */
651 .previewnote {
652 color: #c00;
653 margin-bottom: 1em;
656 .previewnote p {
657 text-indent: 3em;
658 margin: 0.8em 0;
661 .visualClear {
662 clear: both;
665 #mw_trackbacks {
666 border: solid 1px #bbbbff;
667 background-color: #eeeeff;
668 padding: 0.2em;
672 Table pager (e.g. Special:ListFiles)
673 - remove underlines from the navigation link
674 - collapse borders
675 - set the borders to outsets (similar to Special:AllMessages)
676 - remove line wrapping for all td and th, set background color
677 - restore line wrapping for the last two table cells (description and size)
679 .TablePager {
680 min-width: 80%;
681 border-collapse: collapse;
683 .TablePager_nav a {
684 text-decoration: none;
686 .TablePager, .TablePager td, .TablePager th {
687 border: 1px solid #aaaaaa;
688 padding: 0 0.15em 0 0.15em;
690 .TablePager th {
691 background-color: #eeeeff;
693 .TablePager td {
694 background-color: #ffffff;
696 .TablePager tr:hover td {
697 background-color: #eeeeff;
700 .imagelist td, .imagelist th {
701 white-space: nowrap;
703 .imagelist .TablePager_col_links {
704 background-color: #eeeeff;
706 .imagelist .TablePager_col_img_description {
707 white-space: normal;
709 .imagelist th.TablePager_sort {
710 background-color: #ccccff;
713 /* Allmessages table */
714 #mw-allmessagestable .allmessages-customised td.am_default {
715 background-color: #fcffc4;
718 #mw-allmessagestable tr.allmessages-customised:hover td.am_default {
719 background-color: #faff90;
722 #mw-allmessagestable td.am_actual {
723 background-color: #e2ffe2;
726 #mw-allmessagestable tr.allmessages-customised:hover + tr.allmessages-customised td.am_actual {
727 background-color: #b1ffb1;
730 /* filetoc */
731 ul#filetoc {
732 text-align: center;
733 border: 1px solid #aaaaaa;
734 background-color: #f9f9f9;
735 padding: 5px;
736 font-size: 95%;
737 margin-bottom: 0.5em;
738 margin-left: 0;
739 margin-right: 0;
742 #filetoc li {
743 display: inline;
744 list-style-type: none;
745 padding-right: 2em;
748 /* Classes for EXIF data display */
749 table.mw_metadata {
750 font-size: 0.8em;
751 margin-left: 0.5em;
752 margin-bottom: 0.5em;
753 width: 300px;
756 table.mw_metadata caption {
757 font-weight: bold;
760 table.mw_metadata th {
761 font-weight: normal;
764 table.mw_metadata td {
765 padding: 0.1em;
768 table.mw_metadata {
769 border: none;
770 border-collapse: collapse;
773 table.mw_metadata td, table.mw_metadata th {
774 text-align: center;
775 border: 1px solid #aaaaaa;
776 padding-left: 0.1em;
777 padding-right: 0.1em;
780 table.mw_metadata th {
781 background-color: #f9f9f9;
784 table.mw_metadata td {
785 background-color: #fcfcfc;
788 /* Galleries */
789 table.gallery {
790 border: 1px solid #ccc;
791 margin: 2px;
792 padding: 2px;
793 background-color: white;
796 table.gallery tr {
797 vertical-align: top;
800 table.gallery td {
801 vertical-align: top;
802 background-color: #f9f9f9;
803 border: solid 2px white;
805 table.gallery caption {
806 font-weight: bold;
809 div.gallerybox {
810 margin: 2px;
813 div.gallerybox div.thumb {
814 text-align: center;
815 border: 1px solid #ccc;
816 margin: 2px;
819 div.gallerytext {
820 overflow: hidden;
821 font-size: 94%;
822 padding: 2px 4px;
825 table.mw-enhanced-rc {
826 background: none;
827 border:0;
828 border-spacing:0;
830 td.mw-enhanced-rc {
831 white-space:nowrap;
832 padding:0;
833 vertical-align:top;
834 font-family:monospace
837 #mw-addcategory-prompt {
838 display: inline;
839 margin-left: 1em;
842 #mw-addcategory-prompt input {
843 margin-left: 0.5em;
844 margin-right: 0.5em;
847 .mw-remove-category {
848 padding: 8px;
849 background-image: url(images/remove.png);
850 background-position: center center;
851 background-repeat: no-repeat;
854 .mw-ajax-addcategory {
855 padding-left: 20px;
856 background-image: url(images/add.png);
857 background-position: left center;
858 background-repeat: no-repeat;
861 .mw-ajax-loader {
862 background-image: url(images/ajax-loader.gif);
863 background-position: center center;
864 background-repeat: no-repeat;
865 padding: 16px;
866 position: relative;
867 top: -16px;
870 .mw-small-spinner {
871 padding: 10px !important;
872 margin-right: 0.6em;
873 background-image: url(images/spinner.gif);
874 background-position: center center;
875 background-repeat: no-repeat;
878 /* Sort arrows added by SortableTables */
879 a.sortheader {
880 margin: 0 0.3em;
883 .grid-table {
884 display: table;
887 .grid-row {
888 display: table-row;
891 .grid-cell {
892 display: table-cell;
893 padding: 0.33ex;
896 /* Localised ordered list numbering for some languages */
897 ol:lang(bcc) li,
898 ol:lang(bqi) li,
899 ol:lang(fa) li,
900 ol:lang(glk) li,
901 ol:lang(kk-arab) li,
902 ol:lang(mzn) li {
903 list-style-type: -moz-persian;
904 list-style-type: persian;
907 ol:lang(ckb) li {
908 list-style-type: -moz-arabic-indic;
909 list-style-type: arabic-indic;
912 ol:lang(bn) li {
913 list-style-type: -moz-bengali;
914 list-style-type: bengali;
917 /* tooltip styles */
918 .mw-help-field-hint {
919 width: 11px;
920 height: 24px;
921 display: inline-block;
922 padding: 0px;
923 margin-left: 2px;
924 margin-bottom: -8px;
925 background: url('images/help-question.gif') 0 50% no-repeat;
927 .mw-help-field-hint:hover {
928 background: url('images/help-question-hover.gif') 0 50% no-repeat;
930 .tipsy { padding: 5px 5px 10px; font-size: 12px; position: absolute; z-index: 100000; overflow: visible; }
931 .tipsy-inner { padding: 5px 8px 4px 8px; background-color: #d6f3ff; color: black; border: 1px solid #5dc9f4; max-width: 300px; text-align: left; }
932 .tipsy-arrow { position: absolute; background: url( 'images/tipsy-arrow.gif' ) no-repeat top left; width: 13px; height: 13px; }
933 .tipsy-se .tipsy-arrow { bottom: -2px; right: 10px; background-position: 0% 100%; }