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