Zero padding for #firstHeading makes text cut for scripts like Devanagari , Malayalam...
[lhc/web/wiklou.git] / skins / vector / screen.css
1 /*
2 * Any rules which should not be flipped automatically in right-to-left situations should be
3 * prepended with @noflip in a comment block. Images that should be embedded as base64 data-URLs
4 * should be prepended with @embed in a comment block.
5 *
6 * This style-sheet employs a few CSS trick to accomplish compatibility with a wide range of web
7 * browsers. The most common trick is to use some styles in IE6 only. This is accomplished by using
8 * a rule that makes things work in IE6, and then following it with a rule that begins with
9 * "html > body" or use a child selector ">", which is ignored by IE6 because it does not support
10 * the child selector. You can spot this by looking for the "OVERRIDDEN BY COMPLIANT BROWSERS" and
11 * "IGNORED BY IE6" comments.
12 */
13
14 /* Framework */
15 html,
16 body {
17 height: 100%;
18 margin: 0;
19 padding: 0;
20 font-family: sans-serif;
21 font-size: 1em;
22 }
23 body {
24 background-color: #f3f3f3;
25 /* @embed */
26 background-image: url(images/page-base.png);
27 }
28 /* Content */
29 div#content {
30 margin-left: 10em;
31 padding: 1em;
32 /* @embed */
33 background-image: url(images/border.png);
34 background-position: top left;
35 background-repeat: repeat-y;
36 background-color: white;
37 color: black;
38 direction: ltr;
39 }
40 /* Head */
41 #mw-page-base {
42 height: 5em;
43 background-color: white;
44 /* @embed */
45 background-image: url(images/page-fade.png);
46 background-position: bottom left;
47 background-repeat: repeat-x;
48 }
49 #mw-head-base {
50 margin-top: -5em;
51 margin-left: 10em;
52 height: 5em;
53 /* @embed */
54 background-image: url(images/border.png);
55 background-position: bottom left;
56 background-repeat: repeat-x;
57 }
58 div#mw-head {
59 position: absolute;
60 top: 0;
61 right: 0;
62 width: 100%;
63 }
64 div#mw-head h5 {
65 margin: 0;
66 padding: 0;
67 }
68 /* Hide empty portlets */
69 div.emptyPortlet {
70 display: none;
71 }
72 /* Personal */
73 #p-personal {
74 position: absolute;
75 top: 0;
76 right: 0.75em;
77 }
78 #p-personal h5 {
79 display: none;
80 }
81 #p-personal ul {
82 list-style: none;
83 margin: 0;
84 padding-left: 10em; /* Keep from overlapping logo */
85 }
86 /* @noflip */
87 #p-personal li {
88 line-height: 1.125em;
89 float: left;
90 }
91 /* This one flips! */
92 #p-personal li {
93 margin-left: 0.75em;
94 margin-top: 0.5em;
95 font-size: 0.75em;
96 white-space: nowrap;
97 }
98 /* Navigation Containers */
99 #left-navigation {
100 position: absolute;
101 left: 10em;
102 top: 2.5em;
103 }
104 #right-navigation {
105 float: right;
106 margin-top: 2.5em;
107 }
108 /* Navigation Labels */
109 div.vectorTabs h5,
110 div.vectorMenu h5 span {
111 display: none;
112 }
113 /* Namespaces and Views */
114 /* @noflip */
115 div.vectorTabs {
116 float: left;
117 height: 2.5em;
118 }
119 div.vectorTabs {
120 /* @embed */
121 background-image: url(images/tab-break.png);
122 background-position: bottom left;
123 background-repeat: no-repeat;
124 padding-left: 1px;
125 }
126 /* @noflip */
127 div.vectorTabs ul {
128 float: left;
129 }
130 div.vectorTabs ul {
131 height: 100%;
132 list-style: none;
133 margin: 0;
134 padding: 0;
135 }
136 /* @noflip */
137 div.vectorTabs ul li {
138 float: left;
139 }
140 /* OVERRIDDEN BY COMPLIANT BROWSERS */
141 div.vectorTabs ul li {
142 line-height: 1.125em;
143 display: inline-block;
144 height: 100%;
145 margin: 0;
146 padding: 0;
147 background-color: #f3f3f3;
148 /* @embed */
149 background-image: url(images/tab-normal-fade.png);
150 background-position: bottom left;
151 background-repeat: repeat-x;
152 white-space:nowrap;
153 }
154 /* IGNORED BY IE6 */
155 div.vectorTabs ul > li {
156 display: block;
157 }
158 div.vectorTabs li.selected {
159 /* @embed */
160 background-image: url(images/tab-current-fade.png);
161 }
162 /* OVERRIDDEN BY COMPLIANT BROWSERS */
163 div.vectorTabs li a {
164 display: inline-block;
165 height: 1.9em;
166 padding-left: 0.5em;
167 padding-right: 0.5em;
168 color: #0645ad;
169 cursor: pointer;
170 font-size: 0.8em;
171 }
172 /* IGNORED BY IE6 */
173 div.vectorTabs li > a {
174 display: block;
175 }
176 div.vectorTabs li.icon a {
177 background-position: bottom right;
178 background-repeat: no-repeat;
179 }
180 /* OVERRIDDEN BY COMPLIANT BROWSERS */
181 div.vectorTabs span a {
182 display: inline-block;
183 padding-top: 1.25em;
184 }
185 /* IGNORED BY IE6 */
186 /* @noflip */
187 div.vectorTabs span > a {
188 float: left;
189 display: block;
190 }
191 div.vectorTabs span {
192 display: inline-block;
193 /* @embed */
194 background-image: url(images/tab-break.png);
195 background-position: bottom right;
196 background-repeat: no-repeat;
197 }
198 div.vectorTabs li.selected a,
199 div.vectorTabs li.selected a:visited{
200 color: #333333;
201 text-decoration: none;
202 }
203 div.vectorTabs li.new a,
204 div.vectorTabs li.new a:visited{
205 color: #a55858;
206 }
207 /* Variants and Actions */
208 /* @noflip */
209 div.vectorMenu {
210 direction: ltr;
211 float: left;
212 /* @embed */
213 background-image: url(images/arrow-down-icon.png);
214 background-position: 0px 60%;
215 background-repeat: no-repeat;
216 cursor: pointer;
217 }
218 div.vectorMenuFocus {
219 background-position: -22px 60%;
220 }
221 /* @noflip */
222 body.rtl div.vectorMenu {
223 direction: rtl;
224 }
225 /* OVERRIDDEN BY COMPLIANT BROWSERS */
226 /* @noflip */
227 div#mw-head div.vectorMenu h5 {
228 float: left;
229 /* @embed */
230 background-image: url(images/tab-break.png);
231 background-repeat: no-repeat;
232 }
233 /* This will be flipped - unlike the one above it */
234 div#mw-head div.vectorMenu h5 {
235 background-position: bottom left;
236 margin-left: -1px;
237 }
238 /* IGNORED BY IE6 */
239 div#mw-head div.vectorMenu > h5 {
240 background-image: none;
241 }
242 div#mw-head div.vectorMenu h4 {
243 display: inline-block;
244 float: left;
245 font-size: 0.8em;
246 padding-left: 0.5em;
247 padding-top: 1.375em;
248 font-weight: normal;
249 border: none;
250 }
251 /* OVERRIDDEN BY COMPLIANT BROWSERS */
252 /* @noflip */
253 div.vectorMenu h5 a {
254 display: inline-block;
255 width: 24px;
256 height: 2.5em;
257 text-decoration: none;
258 /* @embed */
259 background-image: url(images/tab-break.png);
260 background-repeat: no-repeat;
261 }
262 /* This will be flipped - unlike the one above it */
263 div.vectorMenu h5 a {
264 background-position: bottom right;
265 }
266 /* IGNORED BY IE6 */
267 div.vectorMenu h5 > a {
268 display: block;
269 }
270 div.vectorMenu div.menu {
271 position: relative;
272 display: none;
273 clear: both;
274 text-align: left;
275 }
276 /* OVERRIDDEN BY COMPLIANT BROWSERS */
277 /* @noflip */
278 body.rtl div.vectorMenu div.menu {
279 margin-left: 24px;
280 }
281 /* IGNORED BY IE6 */
282 /* @noflip */
283 body.rtl div.vectorMenu > div.menu {
284 margin-left: auto;
285 }
286 /* IGNORED BY IE6 */
287 /* Also fixes old versions of FireFox */
288 /* @noflip */
289 body.rtl div.vectorMenu > div.menu,
290 x:-moz-any-link {
291 margin-left: 23px;
292 }
293 /* Enable forcing showing of the menu for accessibility */
294 div.vectorMenu:hover div.menu, div.vectorMenu div.menuForceShow {
295 display: block;
296 }
297 div.vectorMenu ul {
298 position: absolute;
299 background-color: white;
300 border: solid 1px silver;
301 border-top-width: 0;
302 list-style: none;
303 list-style-image: none;
304 list-style-type: none;
305 padding: 0;
306 margin: 0;
307 margin-left: -1px;
308 text-align: left;
309 }
310 /* Fixes old versions of FireFox */
311 div.vectorMenu ul,
312 x:-moz-any-link {
313 min-width: 5em;
314 }
315 /* Returns things back to normal in modern versions of FireFox */
316 div.vectorMenu ul,
317 x:-moz-any-link,
318 x:default {
319 min-width: 0;
320 }
321 div.vectorMenu li {
322 padding: 0;
323 margin: 0;
324 text-align: left;
325 line-height: 1em;
326 }
327 /* OVERRIDDEN BY COMPLIANT BROWSERS */
328 div.vectorMenu li a {
329 display: inline-block;
330 padding: 0.5em;
331 white-space: nowrap;
332 color: #0645ad;
333 cursor: pointer;
334 font-size: 0.8em;
335 }
336 /* IGNORED BY IE6 */
337 div.vectorMenu li > a {
338 display: block;
339 }
340 div.vectorMenu li.selected a,
341 div.vectorMenu li.selected a:visited {
342 color: #333333;
343 text-decoration: none;
344 }
345 /* Search */
346 #p-search h5 {
347 display: none;
348 }
349 /* @noflip */
350 #p-search {
351 float: left;
352 }
353 #p-search {
354 margin-right: 0.5em;
355 margin-left: 0.5em;
356 }
357 #p-search form,
358 #p-search input {
359 margin: 0;
360 margin-top: 0.4em;
361 }
362 div#simpleSearch {
363 display: block;
364 width: 14em;
365 height: 1.4em;
366 margin-top: 0.65em;
367 position: relative;
368 min-height: 1px; /* Gotta trigger hasLayout for IE7 */
369 border: solid 1px #AAAAAA;
370 color: black;
371 background-color: white;
372 /* @embed */
373 background-image: url(images/search-fade.png);
374 background-position: top left;
375 background-repeat: repeat-x;
376 }
377 div#simpleSearch label {
378 /*
379 * DON'T PANIC! Browsers that won't scale this properly are the same browsers that have JS issues that prevent
380 * this from ever being shown anyways.
381 */
382 font-size: 13px;
383 top: 0.25em;
384 direction: ltr;
385 }
386 div#simpleSearch input {
387 color: black;
388 direction: ltr;
389 }
390 div#simpleSearch input:focus {
391 outline: none;
392 }
393 div#simpleSearch input.placeholder {
394 color: #999999;
395 }
396 div#simpleSearch input::-webkit-input-placeholder {
397 color: #999999;
398 }
399 div#simpleSearch input#searchInput {
400 position: absolute;
401 top: 0;
402 left: 0;
403 width: 90%;
404 margin: 0;
405 padding: 0;
406 padding-left: 0.2em;
407 padding-top: 0.2em;
408 padding-bottom: 0.2em;
409 outline: none;
410 border: none;
411 /*
412 * DON'T PANIC! Browsers that won't scale this properly are the same browsers that have JS issues that prevent
413 * this from ever being shown anyways.
414 */
415 font-size: 13px;
416 background-color: transparent;
417 direction: ltr;
418 }
419 div#simpleSearch button#searchButton {
420 position: absolute;
421 width: 10%;
422 right: 0;
423 top: 0;
424 padding: 0;
425 padding-top: 0.3em;
426 padding-bottom: 0.2em;
427 padding-right: 0.4em;
428 margin: 0;
429 border: none;
430 cursor: pointer;
431 background-color: transparent;
432 background-image: none;
433 }
434 /* OVERRIDDEN BY COMPLIANT BROWSERS */
435 div#simpleSearch button#searchButton img {
436 border: none;
437 margin: 0;
438 margin-top: -3px;
439 padding: 0;
440 }
441 /* IGNORED BY IE6 */
442 div#simpleSearch button#searchButton > img {
443 margin: 0;
444 }
445 /* Panel */
446 div#mw-panel {
447 position: absolute;
448 top: 160px;
449 padding-top: 1em;
450 width: 10em;
451 left: 0;
452 }
453 div#mw-panel div.portal {
454 padding-bottom: 1.5em;
455 direction: ltr;
456 }
457 div#mw-panel div.portal h5 {
458 font-weight: normal;
459 color: #444444;
460 padding: 0.25em;
461 padding-top: 0;
462 padding-left: 1.75em;
463 cursor: default;
464 border: none;
465 font-size: 0.75em;
466 }
467 div#mw-panel div.portal div.body {
468 margin: 0;
469 padding-top: 0.5em;
470 margin-left: 1.25em;
471 /* @embed */
472 background-image: url(images/portal-break.png);
473 background-repeat: no-repeat;
474 background-position: top left;
475 }
476 div#mw-panel div.portal div.body ul {
477 list-style: none;
478 list-style-image: none;
479 list-style-type: none;
480 padding: 0;
481 margin: 0;
482 }
483 div#mw-panel div.portal div.body ul li {
484 line-height: 1.125em;
485 padding: 0;
486 padding-bottom: 0.5em;
487 margin: 0;
488 overflow: hidden;
489 font-size: 0.75em;
490 }
491 div#mw-panel div.portal div.body ul li a {
492 color: #0645ad;
493 }
494 div#mw-panel div.portal div.body ul li a:visited {
495 color: #0b0080;
496 }
497 /* Footer */
498 div#footer {
499 margin-left: 10em;
500 margin-top: 0;
501 padding: 0.75em;
502 /* @embed */
503 background-image: url(images/border.png);
504 background-position: top left;
505 background-repeat: repeat-x;
506 direction: ltr;
507 }
508 div#footer ul {
509 list-style: none;
510 list-style-image: none;
511 list-style-type: none;
512 margin: 0;
513 padding: 0;
514 }
515 div#footer ul li {
516 margin: 0;
517 padding: 0;
518 padding-top: 0.5em;
519 padding-bottom: 0.5em;
520 color: #333333;
521 font-size: 0.7em;
522 }
523 div#footer #footer-icons {
524 float: right;
525 }
526 /* @noflip */
527 body.ltr div#footer #footer-places {
528 float: left;
529 }
530 div#footer #footer-info li {
531 line-height: 1.4em;
532 }
533 div#footer #footer-icons li {
534 float: left;
535 margin-left: 0.5em;
536 line-height: 2em;
537 text-align: right;
538 }
539 div#footer #footer-places li {
540 float: left;
541 margin-right: 1em;
542 line-height: 2em;
543 }
544 /* Logo */
545 #p-logo {
546 position: absolute;
547 top: -160px;
548 left: 0;
549 width: 10em;
550 height: 160px;
551 }
552 #p-logo a {
553 display: block;
554 width: 10em;
555 height: 160px;
556 background-repeat: no-repeat;
557 background-position: center center;
558 text-decoration: none;
559 }
560
561 /*
562 *
563 * The following code is highly modified from monobook. It would be nice if the
564 * preftoc id was more human readable like preferences-toc for instance,
565 * howerver this would require backporting the other skins.
566 */
567
568 /* Preferences */
569 #preftoc {
570 /* Tabs */
571 width: 100%;
572 float: left;
573 clear: both;
574 margin: 0 !important;
575 padding: 0 !important;
576 /* @embed */
577 background-image: url(images/preferences-break.png);
578 background-position: bottom left;
579 background-repeat: no-repeat;
580 }
581 #preftoc li {
582 /* Tab */
583 float: left;
584 margin: 0;
585 padding: 0;
586 padding-right: 1px;
587 height: 2.25em;
588 white-space: nowrap;
589 list-style-type: none;
590 list-style-image: none;
591 /* @embed */
592 background-image: url(images/preferences-break.png);
593 background-position: bottom right;
594 background-repeat: no-repeat;
595 }
596 /* Sadly, IE6 won't understand this */
597 #preftoc li:first-child {
598 margin-left: 1px;
599 }
600 #preftoc a,
601 #preftoc a:active {
602 display: inline-block;
603 position: relative;
604 color: #0645ad;
605 padding: 0.5em;
606 text-decoration: none;
607 background-image: none;
608 font-size: 0.9em;
609 }
610 #preftoc a:hover,
611 #preftoc a:focus {
612 text-decoration: underline;
613 }
614 #preftoc li.selected a {
615 /* @embed */
616 background-image: url(images/preferences-fade.png);
617 background-position: bottom;
618 background-repeat: repeat-x;
619 color: #333333;
620 text-decoration: none;
621 }
622 #preferences {
623 float: left;
624 width: 100%;
625 margin: 0;
626 margin-top: -2px;
627 clear: both;
628 border: solid 1px #cccccc;
629 background-color: #f9f9f9;
630 /* @embed */
631 background-image: url(images/preferences-base.png);
632 }
633 #preferences fieldset {
634 border: none;
635 border-top: solid 1px #cccccc;
636 }
637 #preferences fieldset.prefsection {
638 border: none;
639 padding: 0;
640 margin: 1em;
641 }
642 #preferences legend {
643 color: #666666;
644 }
645 #preferences fieldset.prefsection legend.mainLegend {
646 display: none;
647 }
648 #preferences td {
649 padding-left: 0.5em;
650 padding-right: 0.5em;
651 }
652 #preferences td.htmlform-tip {
653 font-size: x-small;
654 padding: .2em 2em;
655 color: #666666;
656 }
657 #preferences div.mw-prefs-buttons {
658 padding: 1em;
659 }
660 #preferences div.mw-prefs-buttons input {
661 margin-right: 0.25em;
662 }
663
664 /*
665 *
666 * The following code is slightly modified from monobook
667 *
668 */
669 div#content {
670 line-height: 1.5em;
671 }
672 #bodyContent {
673 font-size: 0.8em;
674 }
675
676 .editsection { float: right; }
677
678 ul {
679 /* @embed */
680 list-style-image: url(images/bullet-icon.png);
681 }
682
683 pre {
684 line-height: 1.3em;
685 }
686
687 /* Site Notice (includes notices from CentralNotice extension) */
688 #siteNotice {
689 font-size: 0.8em;
690 }
691 #firstHeading {
692 margin-top: 0;
693 font-size: 1.6em;
694 }
695 div#content a.external,
696 div#content a[href ^="gopher://"] {
697 /* @embed */
698 background: url(images/external-link-ltr-icon.png) center right no-repeat;
699 padding-right: 13px;
700 }
701 div#content a[href ^="https://"],
702 .link-https {
703 /* @embed */
704 background: url(images/lock-icon.png) center right no-repeat;
705 padding-right: 13px;
706 }
707 div#content a[href ^="mailto:"],
708 .link-mailto {
709 /* @embed */
710 background: url(images/mail-icon.png) center right no-repeat;
711 padding-right: 13px;
712 }
713 div#content a[href ^="news://"] {
714 /* @embed */
715 background: url(images/news-icon.png) center right no-repeat;
716 padding-right: 13px;
717 }
718 div#content a[href ^="ftp://"],
719 .link-ftp {
720 /* @embed */
721 background: url(images/file-icon.png) center right no-repeat;
722 padding-right: 13px;
723 }
724 div#content a[href ^="irc://"],
725 div#content a.extiw[href ^="irc://"],
726 div#content a[href ^="ircs://"],
727 div#content a.extiw[href ^="ircs://"],
728 .link-irc {
729 /* @embed */
730 background: url(images/talk-icon.png) center right no-repeat;
731 padding-right: 13px;
732 }
733 div#content a.external[href $=".ogg"], div#content a.external[href $=".OGG"],
734 div#content a.external[href $=".mid"], div#content a.external[href $=".MID"],
735 div#content a.external[href $=".midi"], div#content a.external[href $=".MIDI"],
736 div#content a.external[href $=".mp3"], div#content a.external[href $=".MP3"],
737 div#content a.external[href $=".wav"], div#content a.external[href $=".WAV"],
738 div#content a.external[href $=".wma"], div#content a.external[href $=".WMA"],
739 .link-audio {
740 /* @embed */
741 background: url("images/audio-icon.png?2") center right no-repeat;
742 padding-right: 13px;
743 }
744 div#content a.external[href $=".ogm"], div#content a.external[href $=".OGM"],
745 div#content a.external[href $=".avi"], div#content a.external[href $=".AVI"],
746 div#content a.external[href $=".mpeg"], div#content a.external[href $=".MPEG"],
747 div#content a.external[href $=".mpg"], div#content a.external[href $=".MPG"],
748 .link-video {
749 /* @embed */
750 background: url("images/video-icon.png?2") center right no-repeat;
751 padding-right: 13px;
752 }
753 div#content a.external[href $=".pdf"], div#content a.external[href $=".PDF"],
754 div#content a.external[href *=".pdf#"], div#content a.external[href *=".PDF#"],
755 div#content a.external[href *=".pdf?"], div#content a.external[href *=".PDF?"],
756 .link-document {
757 /* @embed */
758 background: url("images/document-icon.png?2") center right no-repeat;
759 padding-right: 13px;
760 }
761
762 div#content .printfooter {
763 display: none;
764 }
765 /* Icon for Usernames */
766 #pt-userpage,
767 #pt-anonuserpage,
768 #pt-login {
769 /* @embed */
770 background: url(images/user-icon.png) left top no-repeat;
771 padding-left: 15px !important;
772 text-transform: none;
773 }
774
775 .redirectText {
776 font-size: 140%;
777 }
778
779 .redirectMsg img {
780 vertical-align: text-bottom;
781 }
782
783 #bodyContent {
784 position: relative;
785 width: 100%;
786 }
787 #mw-js-message {
788 font-size: 0.8em;
789 }
790 div#bodyContent {
791 line-height: 1.5em;
792 }
793
794 /* Watch/Unwatch Icon Styling */
795 #ca-unwatch.icon a,
796 #ca-watch.icon a {
797 margin: 0;
798 padding: 0;
799 outline: none;
800 display: block;
801 width: 26px;
802 /* This hides the text but shows the background image */
803 padding-top: 3.1em;
804 margin-top: 0;
805 /* Only applied in IE6 */
806 margin-top: -0.8em !ie;
807 height: 0;
808 overflow: hidden;
809 /* @embed */
810 background-image: url(images/watch-icons.png);
811 }
812 #ca-unwatch.icon a {
813 background-position: -43px 60%;
814 }
815 #ca-watch.icon a {
816 background-position: 5px 60%;
817 }
818 #ca-unwatch.icon a:hover,
819 #ca-unwatch.icon a:focus {
820 background-position: -67px 60%;
821 }
822 #ca-watch.icon a:hover,
823 #ca-watch.icon a:focus {
824 background-position: -19px 60%;
825 }
826 #ca-unwatch.icon a.loading,
827 #ca-watch.icon a.loading {
828 /* @embed */
829 background-image: url(images/watch-icon-loading.gif);
830 background-position: 5px 60%;
831 }
832 #ca-unwatch.icon a span,
833 #ca-watch.icon a span {
834 display: none;
835 }
836 div.vectorTabs ul {
837 /* @embed */
838 background-image:url(images/tab-break.png);
839 background-position:right bottom;
840 background-repeat:no-repeat;
841 }
842
843 /* Tooltips are outside of the normal body code, so this helps make the size of the text sensible */
844 .tipsy {
845 font-size: 0.8em;
846 }