Followup r95837; Return the list-style-image for ul{} back to vector since I ended...
[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 * Styles for the user login and create account forms
666 */
667 #userlogin, #userloginForm {
668 border: solid 1px #cccccc;
669 padding: 1.2em;
670 margin: .5em;
671 float: left;
672 }
673
674 #userlogin {
675 min-width: 20em;
676 max-width: 90%;
677 width: 40em;
678 }
679
680 /*
681 *
682 * The following code is slightly modified from monobook
683 *
684 */
685 div#content {
686 line-height: 1.5em;
687 }
688 #bodyContent {
689 font-size: 0.8em;
690 }
691
692 .editsection { float: right; }
693
694 ul {
695 /* @embed */
696 list-style-image: url(images/bullet-icon.png);
697 }
698
699 pre {
700 line-height: 1.3em;
701 }
702
703 /* Site Notice (includes notices from CentralNotice extension) */
704 #siteNotice {
705 position: relative;
706 text-align: center;
707 font-size: 0.8em;
708 margin: 0;
709 }
710 #localNotice {
711 margin-bottom: 0.9em;
712 }
713 /* Edge Cases for Content */
714 h1, h2 {
715 margin-bottom: .6em;
716 }
717 h3, h4, h5 {
718 margin-bottom: .3em;
719 }
720 #firstHeading {
721 padding-top: 0;
722 margin-top: 0;
723 padding-top: 0;
724 margin-bottom: 0.1em;
725 line-height: 1.2em;
726 font-size: 1.6em;
727 padding-bottom: 0;
728 }
729 div#content a.external,
730 div#content a[href ^="gopher://"] {
731 /* @embed */
732 background: url(images/external-link-ltr-icon.png) center right no-repeat;
733 padding-right: 13px;
734 }
735 div#content a[href ^="https://"],
736 .link-https {
737 /* @embed */
738 background: url(images/lock-icon.png) center right no-repeat;
739 padding-right: 13px;
740 }
741 div#content a[href ^="mailto:"],
742 .link-mailto {
743 /* @embed */
744 background: url(images/mail-icon.png) center right no-repeat;
745 padding-right: 13px;
746 }
747 div#content a[href ^="news://"] {
748 /* @embed */
749 background: url(images/news-icon.png) center right no-repeat;
750 padding-right: 13px;
751 }
752 div#content a[href ^="ftp://"],
753 .link-ftp {
754 /* @embed */
755 background: url(images/file-icon.png) center right no-repeat;
756 padding-right: 13px;
757 }
758 div#content a[href ^="irc://"],
759 div#content a.extiw[href ^="irc://"],
760 div#content a[href ^="ircs://"],
761 div#content a.extiw[href ^="ircs://"],
762 .link-irc {
763 /* @embed */
764 background: url(images/talk-icon.png) center right no-repeat;
765 padding-right: 13px;
766 }
767 div#content a.external[href $=".ogg"], div#content a.external[href $=".OGG"],
768 div#content a.external[href $=".mid"], div#content a.external[href $=".MID"],
769 div#content a.external[href $=".midi"], div#content a.external[href $=".MIDI"],
770 div#content a.external[href $=".mp3"], div#content a.external[href $=".MP3"],
771 div#content a.external[href $=".wav"], div#content a.external[href $=".WAV"],
772 div#content a.external[href $=".wma"], div#content a.external[href $=".WMA"],
773 .link-audio {
774 /* @embed */
775 background: url("images/audio-icon.png?2") center right no-repeat;
776 padding-right: 13px;
777 }
778 div#content a.external[href $=".ogm"], div#content a.external[href $=".OGM"],
779 div#content a.external[href $=".avi"], div#content a.external[href $=".AVI"],
780 div#content a.external[href $=".mpeg"], div#content a.external[href $=".MPEG"],
781 div#content a.external[href $=".mpg"], div#content a.external[href $=".MPG"],
782 .link-video {
783 /* @embed */
784 background: url("images/video-icon.png?2") center right no-repeat;
785 padding-right: 13px;
786 }
787 div#content a.external[href $=".pdf"], div#content a.external[href $=".PDF"],
788 div#content a.external[href *=".pdf#"], div#content a.external[href *=".PDF#"],
789 div#content a.external[href *=".pdf?"], div#content a.external[href *=".PDF?"],
790 .link-document {
791 /* @embed */
792 background: url("images/document-icon.png?2") center right no-repeat;
793 padding-right: 13px;
794 }
795
796 div#content .printfooter {
797 display: none;
798 }
799 /* Icon for Usernames */
800 #pt-userpage,
801 #pt-anonuserpage,
802 #pt-login {
803 /* @embed */
804 background: url(images/user-icon.png) left top no-repeat;
805 padding-left: 15px !important;
806 text-transform: none;
807 }
808
809 .redirectText {
810 font-size: 140%;
811 }
812
813 .redirectMsg img {
814 vertical-align: text-bottom;
815 }
816
817 #bodyContent {
818 position: relative;
819 width: 100%;
820 }
821 #mw-js-message {
822 font-size: 0.8em;
823 }
824 div#bodyContent {
825 line-height: 1.5em;
826 }
827
828 /* Watch/Unwatch Icon Styling */
829 #ca-unwatch.icon a,
830 #ca-watch.icon a {
831 margin: 0;
832 padding: 0;
833 outline: none;
834 display: block;
835 width: 26px;
836 /* This hides the text but shows the background image */
837 padding-top: 3.1em;
838 margin-top: 0;
839 /* Only applied in IE6 */
840 margin-top: -0.8em !ie;
841 height: 0;
842 overflow: hidden;
843 /* @embed */
844 background-image: url(images/watch-icons.png);
845 }
846 #ca-unwatch.icon a {
847 background-position: -43px 60%;
848 }
849 #ca-watch.icon a {
850 background-position: 5px 60%;
851 }
852 #ca-unwatch.icon a:hover,
853 #ca-unwatch.icon a:focus {
854 background-position: -67px 60%;
855 }
856 #ca-watch.icon a:hover,
857 #ca-watch.icon a:focus {
858 background-position: -19px 60%;
859 }
860 #ca-unwatch.icon a.loading,
861 #ca-watch.icon a.loading {
862 /* @embed */
863 background-image: url(images/watch-icon-loading.gif);
864 background-position: 5px 60%;
865 }
866 #ca-unwatch.icon a span,
867 #ca-watch.icon a span {
868 display: none;
869 }
870 div.vectorTabs ul {
871 /* @embed */
872 background-image:url(images/tab-break.png);
873 background-position:right bottom;
874 background-repeat:no-repeat;
875 }
876
877 /* Tooltips are outside of the normal body code, so this helps make the size of the text sensible */
878 .tipsy {
879 font-size: 0.8em;
880 }