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