Bug 31933: fix 1.18 regression in Monobook sidebar: huge spacing between portlets...
[lhc/web/wiklou.git] / skins / monobook / main.css
1 /*
2 ** MediaWiki 'monobook' style sheet for CSS2-capable browsers.
3 ** Copyright Gabriel Wicke - http://wikidev.net/
4 ** License: GPL (http://www.gnu.org/copyleft/gpl.html)
5 **
6 ** Loosely based on http://www.positioniseverything.net/ordered-floats.html by Big John
7 ** and the Plone 2.0 styles, see http://plone.org/ (Alexander Limi,Joe Geldart & Tom Croucher,
8 ** Michael Zeltner and Geir Bækholt)
9 ** All you guys rock :)
10 */
11
12 div#column-content {
13 width: 100%;
14 float: right;
15 margin: 0 0 .6em -12.2em;
16 padding: 0;
17 }
18 div#content {
19 margin: 2.8em 0 0 12.2em;
20 padding: 0 1em 1em 1em;
21 position: relative;
22 z-index: 2;
23 }
24 div#column-one {
25 padding-top: 160px;
26 }
27 div#content {
28 background: white;
29 color: black;
30 border: 1px solid #aaa;
31 border-right: none;
32 line-height: 1.5em;
33 }
34 /* the left column width is specified in class .portlet */
35
36 /* Font size:
37 ** We take advantage of keyword scaling- browsers won't go below 9px
38 ** More at http://www.w3.org/2003/07/30-font-size
39 ** http://style.cleverchimp.com/font_size_intervals/altintervals.html
40 */
41
42 body {
43 font: x-small sans-serif;
44 /* @embed */
45 background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat;
46 color: black;
47 margin: 0;
48 padding: 0;
49 direction: ltr; /* Needed for RTL flipping */
50 unicode-bidi: embed;
51 }
52
53 /* scale back up to a sane default */
54 div#globalWrapper {
55 font-size: 127%;
56 width: 100%;
57 margin: 0;
58 padding: 0;
59 }
60
61 /* general styles */
62 a {
63 color: #002bb8;
64 }
65 a:visited {
66 color: #5a3696;
67 }
68 a.new,
69 #p-personal a.new {
70 color: #cc2200;
71 }
72
73 ul {
74 /* @embed */
75 list-style-image: url(bullet.gif);
76 }
77
78 input.historysubmit {
79 padding: 0 .3em .3em .3em !important;
80 font-size: 94%;
81 cursor: pointer;
82 height: 1.7em !important;
83 margin-left: 1.6em;
84 }
85
86 pre {
87 line-height: 1.1em;
88 }
89
90 /*
91 ** the main content area
92 */
93
94 #siteNotice {
95 font-size: 95%;
96 padding: 0 0.9em;
97 }
98 #localNotice {
99 margin: 0;
100 }
101 #siteNotice p {
102 margin: 0;
103 padding: 0;
104 }
105
106 /* currently unused, intended to be used by a metadata box
107 in the bottom-right corner of the content area */
108 .documentDescription {
109 /* The summary text describing the document */
110 font-weight: bold;
111 display: block;
112 margin: 1em 0;
113 line-height: 1.5em;
114 }
115 .documentByLine {
116 text-align: right;
117 font-size: 90%;
118 clear: both;
119 font-weight: normal;
120 color: #76797c;
121 }
122
123 /*
124 ** classes for special content elements like town boxes
125 ** intended to be referenced directly from the wiki src
126 */
127
128 /*
129 ** User styles
130 */
131 /* table standards */
132 table.rimage {
133 float: right;
134 position: relative;
135 margin-left: 1em;
136 margin-bottom: 1em;
137 text-align: center;
138 }
139
140 /*
141 ** edit views etc
142 */
143 .special li {
144 line-height: 1.4em;
145 margin: 0;
146 padding: 0;
147 }
148
149 /*
150 ** keep the whitespace in front of the ^=, hides rule from konqueror
151 ** this is css3, the validator doesn't like it when validating as css2
152 */
153 #bodyContent a.external,
154 #bodyContent a.external[href ^="gopher://"] {
155 /* @embed */
156 background: url(external-ltr.png) center right no-repeat;
157 padding-right: 13px;
158 }
159 #bodyContent a.external[href ^="https://"],
160 .link-https {
161 /* @embed */
162 background: url(lock_icon.gif) center right no-repeat;
163 padding-right: 16px;
164 }
165 #bodyContent a.external[href ^="mailto:"],
166 .link-mailto {
167 /* @embed */
168 background: url(mail_icon.gif) center right no-repeat;
169 padding-right: 18px;
170 }
171 #bodyContent a.external[href ^="news://"] {
172 /* @embed */
173 background: url(news_icon.png) center right no-repeat;
174 padding-right: 18px;
175 }
176 #bodyContent a.external[href ^="ftp://"],
177 .link-ftp {
178 /* @embed */
179 background: url(file_icon.gif) center right no-repeat;
180 padding-right: 18px;
181 }
182 #bodyContent a.external[href ^="irc://"],
183 #bodyContent a.external[href ^="ircs://"],
184 .link-irc {
185 /* @embed */
186 background: url(discussionitem_icon.gif) center right no-repeat;
187 padding-right: 18px;
188 }
189 #bodyContent a.external[href $=".ogg"], #bodyContent a.external[href $=".OGG"],
190 #bodyContent a.external[href $=".mid"], #bodyContent a.external[href $=".MID"],
191 #bodyContent a.external[href $=".midi"], #bodyContent a.external[href $=".MIDI"],
192 #bodyContent a.external[href $=".mp3"], #bodyContent a.external[href $=".MP3"],
193 #bodyContent a.external[href $=".wav"], #bodyContent a.external[href $=".WAV"],
194 #bodyContent a.external[href $=".wma"], #bodyContent a.external[href $=".WMA"],
195 .link-audio {
196 /* @embed */
197 background: url(audio.png) center right no-repeat;
198 padding-right: 13px;
199 }
200 #bodyContent a.external[href $=".ogm"], #bodyContent a.external[href $=".OGM"],
201 #bodyContent a.external[href $=".avi"], #bodyContent a.external[href $=".AVI"],
202 #bodyContent a.external[href $=".mpeg"], #bodyContent a.external[href $=".MPEG"],
203 #bodyContent a.external[href $=".mpg"], #bodyContent a.external[href $=".MPG"],
204 .link-video {
205 /* @embed */
206 background: url(video.png) center right no-repeat;
207 padding-right: 13px;
208 }
209 #bodyContent a.external[href $=".pdf"], #bodyContent a.external[href $=".PDF"],
210 #bodyContent a.external[href *=".pdf#"], #bodyContent a.external[href *=".PDF#"],
211 #bodyContent a.external[href *=".pdf?"], #bodyContent a.external[href *=".PDF?"],
212 .link-document {
213 /* @embed */
214 background: url(document.png) center right no-repeat;
215 padding-right: 12px;
216 }
217
218 /* Interwiki Styling */
219 #bodyContent a.extiw,
220 #bodyContent a.extiw:active {
221 color: #36b;
222 }
223
224 /* External links */
225 #bodyContent a.external {
226 color: #36b;
227 }
228
229 /*
230 ** Structural Elements
231 */
232
233 /*
234 ** general portlet styles (elements in the quickbar)
235 */
236 .portlet {
237 border: none;
238 margin: 0 0 .5em;
239 padding: 0;
240 float: none;
241 width: 11.6em;
242 overflow: hidden;
243 }
244 .portlet h4 {
245 font-size: 95%;
246 font-weight: normal;
247 white-space: nowrap;
248 }
249 .portlet h5 {
250 background: transparent;
251 padding: 0 1em 0 .5em;
252 display: inline;
253 height: 1em;
254 text-transform: lowercase;
255 font-size: 91%;
256 font-weight: normal;
257 white-space: nowrap;
258 }
259 .portlet h6 {
260 background: #ffae2e;
261 border: 1px solid #2f6fab;
262 border-style: solid solid none solid;
263 padding: 0 1em 0 1em;
264 text-transform: lowercase;
265 display: block;
266 font-size: 1em;
267 height: 1.2em;
268 font-weight: normal;
269 white-space: nowrap;
270 }
271 .pBody {
272 font-size: 95%;
273 background-color: white;
274 color: black;
275 border-collapse: collapse;
276 border: 1px solid #aaa;
277 padding: 0 .8em .3em .5em;
278 }
279 .portlet h1,
280 .portlet h2,
281 .portlet h3,
282 .portlet h4 {
283 margin: 0;
284 padding: 0;
285 }
286 .portlet ul {
287 line-height: 1.5em;
288 list-style-type: square;
289 /* @embed */
290 list-style-image: url(bullet.gif);
291 font-size: 95%;
292 }
293 .portlet li {
294 padding: 0;
295 margin: 0;
296 }
297
298 /*
299 ** Logo properties
300 */
301
302 #p-logo {
303 top: 0;
304 left: 0;
305 position: absolute; /*needed to use z-index */
306 z-index: 3;
307 height: 155px;
308 width: 12em;
309 overflow: visible;
310 }
311 #p-logo h5 {
312 display: none;
313 }
314 #p-logo a,
315 #p-logo a:hover {
316 display: block;
317 height: 155px;
318 width: 12.2em;
319 background-repeat: no-repeat;
320 background-position: 35% 50% !important;
321 text-decoration: none;
322 }
323
324 /*
325 ** Search portlet
326 */
327 #p-search {
328 position: relative;
329 z-index: 3;
330 }
331 input.searchButton {
332 margin-top: 1px;
333 font-size: 95%;
334 }
335 #searchGoButton {
336 padding-left: .5em;
337 padding-right: .5em;
338 font-weight: bold;
339 }
340 #searchInput {
341 width: 10.9em;
342 margin: 0;
343 font-size: 95%;
344 }
345 #p-search .pBody {
346 padding: .5em .4em .4em .4em;
347 text-align: center;
348 }
349 #p-search #searchform div div {
350 margin-top: .4em;
351 font-size: 95%;
352 }
353 /*
354 ** the personal toolbar
355 */
356 #p-personal {
357 position: absolute;
358 left: 0;
359 top: 0;
360 z-index: 0;
361 }
362 #p-personal {
363 width: 100%;
364 white-space: nowrap;
365 padding: 0;
366 margin: 0;
367 border: none;
368 background: none;
369 overflow: visible;
370 line-height: 1.2em;
371 }
372 #p-personal h5 {
373 display: none;
374 }
375 #p-personal .portlet,
376 #p-personal .pBody {
377 z-index: 0;
378 padding: 0;
379 margin: 0;
380 border: none;
381 overflow: visible;
382 background: none;
383 }
384 /* this is the ul contained in the portlet */
385 #p-personal ul {
386 border: none;
387 line-height: 1.4em;
388 color: #2f6fab;
389 padding: 0 2em 0 3em;
390 margin: 0;
391 text-align: right;
392 list-style: none;
393 z-index: 0;
394 background: none;
395 cursor: default;
396 }
397 #p-personal li {
398 z-index: 0;
399 border: none;
400 padding: 0;
401 display: inline;
402 color: #2f6fab;
403 margin-left: 1em;
404 line-height: 1.2em;
405 background: none;
406 }
407 #p-personal li a {
408 text-decoration: none;
409 color: #005896;
410 padding-bottom: .2em;
411 background: none;
412 }
413 #p-personal li a:hover {
414 background-color: white;
415 padding-bottom: .2em;
416 text-decoration: none;
417 }
418 #p-personal li.active a:hover {
419 background-color: transparent;
420 }
421 /* the icon in front of the user name, single quotes
422 in bg url to hide it from iemac */
423 li#pt-userpage,
424 li#pt-anonuserpage,
425 li#pt-login {
426 /* @embed */
427 background: url(user.gif) top left no-repeat;
428 padding-left: 20px;
429 text-transform: none;
430 }
431 #p-personal ul {
432 text-transform: lowercase;
433 }
434 #p-personal li.active {
435 font-weight: bold;
436 }
437 /*
438 ** the page-related actions- page/talk, edit etc
439 */
440 #p-cactions {
441 position: absolute;
442 top: 1.3em;
443 left: 11.5em;
444 margin: 0;
445 white-space: nowrap;
446 width: 76%;
447 line-height: 1.1em;
448 overflow: visible;
449 background: none;
450 border-collapse: collapse;
451 padding-left: 1em;
452 list-style: none;
453 font-size: 95%;
454 }
455 #p-cactions ul {
456 list-style: none;
457 }
458 #p-cactions li {
459 display: inline;
460 border: 1px solid #aaa;
461 border-bottom: none;
462 padding: 0 0 .1em 0;
463 margin: 0 .3em 0 0;
464 overflow: visible;
465 background: white;
466 }
467 #p-cactions li.selected {
468 border-color: #fabd23;
469 padding: 0 0 .2em 0;
470 font-weight: bold;
471 }
472 #p-cactions li a {
473 background-color: #fbfbfb;
474 color: #002bb8;
475 border: none;
476 padding: 0 .8em .3em;
477 position: relative;
478 z-index: 0;
479 margin: 0;
480 text-decoration: none;
481 }
482 #p-cactions li.selected a {
483 z-index: 3;
484 background-color: white;
485 }
486 #p-cactions .new a {
487 color: #ba0000;
488 }
489 #p-cactions li a:hover {
490 z-index: 3;
491 text-decoration: none;
492 background-color: white;
493 }
494 #p-cactions h5 {
495 display: none;
496 }
497 #p-cactions li.istalk {
498 margin-right: 0;
499 }
500 #p-cactions li.istalk a {
501 padding-right: .5em;
502 }
503 #p-cactions #ca-addsection a {
504 padding-left: .4em;
505 padding-right: .4em;
506 }
507 /* offsets to distinguish the tab groups */
508 li#ca-talk {
509 margin-right: 1.6em;
510 }
511 li#ca-watch,
512 li#ca-unwatch,
513 li#ca-varlang-0,
514 li#ca-print {
515 margin-left: 1.6em;
516 }
517 #p-cactions .pBody {
518 font-size: 1em;
519 background-color: transparent;
520 color: inherit;
521 border-collapse: inherit;
522 border: 0;
523 padding: 0;
524 }
525 #p-cactions li a {
526 text-transform: lowercase;
527 }
528
529 #p-lang {
530 position: relative;
531 z-index: 3;
532 }
533
534 /* Override text-transform on languages where capitalization is significant */
535 .capitalize-all-nouns .portlet h5,
536 .capitalize-all-nouns .portlet h6,
537 .capitalize-all-nouns #p-personal ul,
538 .capitalize-all-nouns #p-cactions ul li a {
539 text-transform: none;
540 }
541
542 /* TODO: #t-iscite is only used by the Cite extension, come up with some
543 * system which allows extensions to add to this file on the fly
544 */
545 #t-ispermalink, #t-iscite {
546 color: #999;
547 }
548 /*
549 ** footer
550 */
551 div#footer {
552 background-color: white;
553 border-top: 1px solid #fabd23;
554 border-bottom: 1px solid #fabd23;
555 margin: .6em 0 1em 0;
556 padding: .4em 0 1.2em 0;
557 text-align: center;
558 font-size: 90%;
559 }
560 div#footer li {
561 display: inline;
562 margin: 0 1.3em;
563 }
564 #f-poweredbyico, #f-copyrightico {
565 margin: 0 8px;
566 position: relative;
567 top: -2px; /* Bump it up just a tad */
568 }
569 #f-poweredbyico {
570 float: right;
571 height: 1%;
572 }
573 #f-copyrightico {
574 float: left;
575 height: 1%;
576 }
577
578 .mw-htmlform-submit {
579 font-weight: bold;
580 padding-left: .3em;
581 padding-right: .3em;
582 margin-right: 2em;
583 }
584
585 /* js pref toc */
586 #preftoc {
587 margin: 0;
588 padding: 0;
589 width: 100%;
590 clear: both;
591 }
592 #preftoc li {
593 background-color: #f0f0f0;
594 color: #000;
595 }
596 #preftoc li {
597 margin: 1px -2px 1px 2px;
598 float: left;
599 padding: 2px 0 3px 0;
600 border: 1px solid #fff;
601 border-right-color: #716f64;
602 border-bottom: 0;
603 position: relative;
604 white-space: nowrap;
605 list-style-type: none;
606 list-style-image: none;
607 z-index: 3;
608 }
609 #preftoc li.selected {
610 font-weight: bold;
611 background-color: #f9f9f9;
612 border: 1px solid #aaa;
613 border-bottom: none;
614 cursor: default;
615 top: 1px;
616 padding-top: 2px;
617 margin-right: -3px;
618 }
619 #preftoc > li.selected {
620 top: 2px;
621 }
622 #preftoc a,
623 #preftoc a:active {
624 display: block;
625 color: #000;
626 padding: 0 .7em;
627 position: relative;
628 text-decoration: none;
629 }
630 #preftoc li.selected a {
631 cursor: default;
632 text-decoration: none;
633 }
634 #preferences {
635 margin: 0;
636 border: 1px solid #aaa;
637 clear: both;
638 padding: 1.5em;
639 background-color: #F9F9F9;
640 }
641 .prefsection {
642 border: none;
643 padding: 0;
644 margin: 0;
645 }
646
647 .prefsection legend {
648 font-weight: bold;
649 }
650 .prefsection table, .prefsection legend {
651 background-color: #F9F9F9;
652 }
653 .mainLegend {
654 display: none;
655 }
656 td.htmlform-tip {
657 font-size: x-small;
658 padding: .2em 2em;
659 color: #666;
660 }
661
662 .preferences-login {
663 clear: both;
664 margin-bottom: 1.5em;
665 }
666
667 .prefcache {
668 font-size: 90%;
669 margin-top: 2em;
670 }
671
672 div#userloginForm,
673 div#userlogin {
674 margin: 0 3em 1em 0;
675 border: 1px solid #aaa;
676 clear: both;
677 padding: 1.5em 2em;
678 background-color: #f9f9f9;
679 float: left;
680 }
681
682 div#userloginForm table,
683 div#userlogin table {
684 background-color: #f9f9f9;
685 }
686
687 div#userloginForm h2,
688 div#userlogin h2 {
689 padding-top: 0;
690 }
691
692 div#userlogin .captcha,
693 div#userloginForm .captcha {
694 border: 1px solid #bbb;
695 padding: 1.5em 2em;
696 background-color: white;
697 }
698
699 #loginend, #signupend {
700 clear: both;
701 }
702
703 #userloginprompt, #languagelinks {
704 font-size: 85%;
705 }
706
707 #login-sectiontip {
708 font-size: 85%;
709 line-height: 1.2;
710 padding-top: 2em;
711 }
712
713 #userlogin .loginText, #userlogin .loginPassword {
714 width: 12em;
715 }
716
717 #userloginlink a, #wpLoginattempt, #wpCreateaccount {
718 font-weight: bold;
719 }
720
721 /*
722 ** IE/Mac fixes, hope to find a validating way to move this
723 ** to a separate stylesheet. This would work but doesn't validate:
724 ** @import("IEMacFixes.css");
725 */
726 /* tabs: border on the a, not the div */
727 * > html #p-cactions li {
728 border: none;
729 }
730 * > html #p-cactions li a {
731 border: 1px solid #aaa;
732 border-bottom: none;
733 }
734 * > html #p-cactions li.selected a {
735 border-color: #fabd23;
736 }
737 /* footer icons need a fixed width */
738 * > html #f-poweredbyico,
739 * > html #f-copyrightico {
740 width: 88px;
741 }
742 * > html #bodyContent,
743 * > html #bodyContent pre {
744 overflow-x: auto;
745 width: 100%;
746 padding-bottom: 25px;
747 }
748
749 /* more IE fixes */
750 /* float/negative margin brokenness */
751 * html div#footer {
752 margin-top: 0;
753 }
754 * html div#column-content {
755 display: inline;
756 margin-bottom: 0;
757 }
758 #pagehistory li.selected {
759 position: relative;
760 }
761
762 /* Mac IE 5.0 fix; floated content turns invisible */
763 * > html div#column-content {
764 float: none;
765 }
766 * > html div#column-one {
767 position: absolute;
768 left: 0;
769 top: 0;
770 }
771 * > html div#footer {
772 margin-left: 13.2em;
773 }
774 .redirectText {
775 font-size: 150%;
776 margin: 5px;
777 }
778
779 .printfooter {
780 display: none;
781 }
782
783 div.patrollink {
784 clear: both;
785 }
786
787 .sharedUploadNotice {
788 font-style: italic;
789 }
790
791 span.updatedmarker {
792 color: black;
793 background-color: #0f0;
794 }
795
796 .editExternally {
797 border: 1px solid gray;
798 background-color: #ffffff;
799 padding: 3px;
800 margin-top: 0.5em;
801 float: left;
802 font-size: small;
803 text-align: center;
804 }
805 .editExternallyHelp {
806 font-style: italic;
807 color: gray;
808 }
809
810 .toggle {
811 margin-left: 2em;
812 text-indent: -2em;
813 }
814
815 /* @bug 1714 */
816 input#wpSave,
817 input#wpDiff {
818 margin-right: 0.33em;
819 }
820
821 #wpSave {
822 font-weight: bold;
823 }
824
825 /* noarticletext */
826 div.noarticletext {
827 border: 1px solid #ccc;
828 background: #fff;
829 padding: .2em 1em;
830 color: #000;
831 }
832
833 div#searchTargetContainer {
834 left: 10px;
835 top: 10px;
836 width: 90%;
837 background: white;
838 }
839
840 div#searchTarget {
841 padding: 3px;
842 margin: 5px;
843 background: #F0F0F0;
844 border: solid 1px blue;
845 }
846
847 div#searchTarget ul li {
848 list-style: none;
849 }
850
851 div#searchTarget ul li:before {
852 color: orange;
853 content: "\00BB \0020";
854 }
855
856 div#searchTargetHide {
857 float: right;
858 border: solid 1px black;
859 background: #DCDCDC;
860 padding: 2px;
861 }
862
863 #powersearch p {
864 margin-top:0px;
865 }
866
867 div.multipageimagenavbox {
868 border: solid 1px silver;
869 padding: 4px;
870 margin: 1em;
871 background: #f0f0f0;
872 }
873
874 div.multipageimagenavbox div.thumb {
875 border: none;
876 margin-left: 2em;
877 margin-right: 2em;
878 }
879
880 div.multipageimagenavbox hr {
881 margin: 6px;
882 }
883
884 table.multipageimage td {
885 text-align: center;
886 }
887
888 .templatesUsed {
889 margin-top: 1.5em;
890 }
891
892 .mw-summary-preview {
893 margin: 0.1em 0;
894 }
895
896 /* Friendlier slave lag warnings */
897 div.mw-lag-warn-normal,
898 div.mw-lag-warn-high {
899 padding: 3px;
900 text-align: center;
901 margin: 3px auto;
902 }
903 div.mw-lag-warn-normal {
904 border: 1px solid #FFCC66;
905 background-color: #FFFFCC;
906 }
907 div.mw-lag-warn-high {
908 font-weight: bold;
909 border: 2px solid #FF0033;
910 background-color: #FFCCCC;
911 }
912
913 .MediaTransformError {
914 background-color: #ccc;
915 padding: 0.1em;
916 }
917 .MediaTransformError td {
918 text-align: center;
919 vertical-align: middle;
920 font-size: 90%;
921 }
922
923 /* God-damned hack for the crappy layout */
924 .os-suggest {
925 font-size: 127%;
926 }
927
928 /* Sometimes people don't want personal tools to be lowercase! */
929 .no-text-transform {
930 text-transform: none;
931 }
932
933 /* Tooltips are outside of the normal body code, so this helps make the size of the text sensible */
934 .tipsy {
935 font-size: 127%;
936 }