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