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