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