Follow r86861, replace spaces with tabs. It's my vim's fault!
[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: 100% 60%;
215 background-repeat: no-repeat;
216 cursor: pointer;
217 }
218 div.vectorMenuFocus {
219 /* @embed */
220 background-image: url(images/arrow-down-focus-icon.png);
221 background-position: 100% 60%;
222 }
223 /* @noflip */
224 body.rtl div.vectorMenu {
225 direction: rtl;
226 }
227 /* OVERRIDDEN BY COMPLIANT BROWSERS */
228 /* @noflip */
229 div#mw-head div.vectorMenu h5 {
230 float: left;
231 /* @embed */
232 background-image: url(images/tab-break.png);
233 background-repeat: no-repeat;
234 }
235 /* This will be flipped - unlike the one above it */
236 div#mw-head div.vectorMenu h5 {
237 background-position: bottom left;
238 margin-left: -1px;
239 }
240 /* IGNORED BY IE6 */
241 div#mw-head div.vectorMenu > h5 {
242 background-image: none;
243 }
244 div#mw-head div.vectorMenu h4 {
245 display: inline-block;
246 float: left;
247 font-size: 0.8em;
248 padding-left: 0.5em;
249 padding-top: 1.375em;
250 font-weight: normal;
251 border: none;
252 }
253 /* OVERRIDDEN BY COMPLIANT BROWSERS */
254 /* @noflip */
255 div.vectorMenu h5 a {
256 display: inline-block;
257 width: 24px;
258 height: 2.5em;
259 text-decoration: none;
260 /* @embed */
261 background-image: url(images/tab-break.png);
262 background-repeat: no-repeat;
263 }
264 /* This will be flipped - unlike the one above it */
265 div.vectorMenu h5 a {
266 background-position: bottom right;
267 }
268 /* IGNORED BY IE6 */
269 div.vectorMenu h5 > a {
270 display: block;
271 }
272 div.vectorMenu div.menu {
273 position: relative;
274 display: none;
275 clear: both;
276 text-align: left;
277 }
278 /* OVERRIDDEN BY COMPLIANT BROWSERS */
279 /* @noflip */
280 body.rtl div.vectorMenu div.menu {
281 margin-left: 24px;
282 }
283 /* IGNORED BY IE6 */
284 /* @noflip */
285 body.rtl div.vectorMenu > div.menu {
286 margin-left: auto;
287 }
288 /* IGNORED BY IE6 */
289 /* Also fixes old versions of FireFox */
290 /* @noflip */
291 body.rtl div.vectorMenu > div.menu,
292 x:-moz-any-link {
293 margin-left: 23px;
294 }
295 /* Enable forcing showing of the menu for accessibility */
296 div.vectorMenu:hover div.menu, div.vectorMenu div.menuForceShow {
297 display: block;
298 }
299 div.vectorMenu ul {
300 position: absolute;
301 background-color: white;
302 border: solid 1px silver;
303 border-top-width: 0;
304 list-style: none;
305 list-style-image: none;
306 list-style-type: none;
307 padding: 0;
308 margin: 0;
309 margin-left: -1px;
310 text-align: left;
311 }
312 /* Fixes old versions of FireFox */
313 div.vectorMenu ul,
314 x:-moz-any-link {
315 min-width: 5em;
316 }
317 /* Returns things back to normal in modern versions of FireFox */
318 div.vectorMenu ul,
319 x:-moz-any-link,
320 x:default {
321 min-width: 0;
322 }
323 div.vectorMenu li {
324 padding: 0;
325 margin: 0;
326 text-align: left;
327 line-height: 1em;
328 }
329 /* OVERRIDDEN BY COMPLIANT BROWSERS */
330 div.vectorMenu li a {
331 display: inline-block;
332 padding: 0.5em;
333 white-space: nowrap;
334 color: #0645ad;
335 cursor: pointer;
336 font-size: 0.8em;
337 }
338 /* IGNORED BY IE6 */
339 div.vectorMenu li > a {
340 display: block;
341 }
342 div.vectorMenu li.selected a,
343 div.vectorMenu li.selected a:visited {
344 color: #333333;
345 text-decoration: none;
346 }
347 /* Search */
348 #p-search h5 {
349 display: none;
350 }
351 /* @noflip */
352 #p-search {
353 float: left;
354 }
355 #p-search {
356 margin-right: 0.5em;
357 margin-left: 0.5em;
358 }
359 #p-search form,
360 #p-search input {
361 margin: 0;
362 margin-top: 0.4em;
363 }
364 div#simpleSearch {
365 display: block;
366 width: 14em;
367 height: 1.4em;
368 margin-top: 0.65em;
369 position: relative;
370 min-height: 1px; /* Gotta trigger hasLayout for IE7 */
371 border: solid 1px #AAAAAA;
372 color: black;
373 background-color: white;
374 /* @embed */
375 background-image: url(images/search-fade.png);
376 background-position: top left;
377 background-repeat: repeat-x;
378 }
379 div#simpleSearch label {
380 /*
381 * DON'T PANIC! Browsers that won't scale this properly are the same browsers that have JS issues that prevent
382 * this from ever being shown anyways.
383 */
384 font-size: 13px;
385 top: 0.25em;
386 direction: ltr;
387 }
388 div#simpleSearch input {
389 color: black;
390 direction: ltr;
391 }
392 div#simpleSearch input:focus {
393 outline: none;
394 }
395 div#simpleSearch input.placeholder {
396 color: #999999;
397 }
398 div#simpleSearch input::-webkit-input-placeholder {
399 color: #999999;
400 }
401 div#simpleSearch input#searchInput {
402 position: absolute;
403 top: 0;
404 left: 0;
405 width: 90%;
406 margin: 0;
407 padding: 0;
408 padding-left: 0.2em;
409 padding-top: 0.2em;
410 padding-bottom: 0.2em;
411 outline: none;
412 border: none;
413 /*
414 * DON'T PANIC! Browsers that won't scale this properly are the same browsers that have JS issues that prevent
415 * this from ever being shown anyways.
416 */
417 font-size: 13px;
418 background-color: transparent;
419 direction: ltr;
420 }
421 div#simpleSearch button#searchButton {
422 position: absolute;
423 width: 10%;
424 right: 0;
425 top: 0;
426 padding: 0;
427 padding-top: 0.3em;
428 padding-bottom: 0.2em;
429 padding-right: 0.4em;
430 margin: 0;
431 border: none;
432 cursor: pointer;
433 background-color: transparent;
434 background-image: none;
435 }
436 /* OVERRIDDEN BY COMPLIANT BROWSERS */
437 div#simpleSearch button#searchButton img {
438 border: none;
439 margin: 0;
440 margin-top: -3px;
441 padding: 0;
442 }
443 /* IGNORED BY IE6 */
444 div#simpleSearch button#searchButton > img {
445 margin: 0;
446 }
447 /* Panel */
448 div#mw-panel {
449 position: absolute;
450 top: 160px;
451 padding-top: 1em;
452 width: 10em;
453 left: 0;
454 }
455 div#mw-panel div.portal {
456 padding-bottom: 1.5em;
457 direction: ltr;
458 }
459 div#mw-panel div.portal h5 {
460 font-weight: normal;
461 color: #444444;
462 padding: 0.25em;
463 padding-top: 0;
464 padding-left: 1.75em;
465 cursor: default;
466 border: none;
467 font-size: 0.75em;
468 }
469 div#mw-panel div.portal div.body {
470 margin: 0;
471 padding-top: 0.5em;
472 margin-left: 1.25em;
473 /* @embed */
474 background-image: url(images/portal-break.png);
475 background-repeat: no-repeat;
476 background-position: top left;
477 }
478 div#mw-panel div.portal div.body ul {
479 list-style: none;
480 list-style-image: none;
481 list-style-type: none;
482 padding: 0;
483 margin: 0;
484 }
485 div#mw-panel div.portal div.body ul li {
486 line-height: 1.125em;
487 padding: 0;
488 padding-bottom: 0.5em;
489 margin: 0;
490 overflow: hidden;
491 font-size: 0.75em;
492 }
493 div#mw-panel div.portal div.body ul li a {
494 color: #0645ad;
495 }
496 div#mw-panel div.portal div.body ul li a:visited {
497 color: #0b0080;
498 }
499 /* Footer */
500 div#footer {
501 margin-left: 10em;
502 margin-top: 0;
503 padding: 0.75em;
504 /* @embed */
505 background-image: url(images/border.png);
506 background-position: top left;
507 background-repeat: repeat-x;
508 direction: ltr;
509 }
510 div#footer ul {
511 list-style: none;
512 list-style-image: none;
513 list-style-type: none;
514 margin: 0;
515 padding: 0;
516 }
517 div#footer ul li {
518 margin: 0;
519 padding: 0;
520 padding-top: 0.5em;
521 padding-bottom: 0.5em;
522 color: #333333;
523 font-size: 0.7em;
524 }
525 div#footer #footer-icons {
526 float: right;
527 }
528 /* @noflip */
529 body.ltr div#footer #footer-places {
530 float: left;
531 }
532 div#footer #footer-info li {
533 line-height: 1.4em;
534 }
535 div#footer #footer-icons li {
536 float: left;
537 margin-left: 0.5em;
538 line-height: 2em;
539 text-align: right;
540 }
541 div#footer #footer-places li {
542 float: left;
543 margin-right: 1em;
544 line-height: 2em;
545 }
546 /* Logo */
547 #p-logo {
548 position: absolute;
549 top: -160px;
550 left: 0;
551 width: 10em;
552 height: 160px;
553 }
554 #p-logo a {
555 display: block;
556 width: 10em;
557 height: 160px;
558 background-repeat: no-repeat;
559 background-position: center center;
560 text-decoration: none;
561 }
562
563 /*
564 *
565 * The following code is highly modified from monobook. It would be nice if the
566 * preftoc id was more human readable like preferences-toc for instance,
567 * howerver this would require backporting the other skins.
568 */
569
570 /* Preferences */
571 #preftoc {
572 /* Tabs */
573 width: 100%;
574 float: left;
575 clear: both;
576 margin: 0 !important;
577 padding: 0 !important;
578 /* @embed */
579 background-image: url(images/preferences-break.png);
580 background-position: bottom left;
581 background-repeat: no-repeat;
582 }
583 #preftoc li {
584 /* Tab */
585 float: left;
586 margin: 0;
587 padding: 0;
588 padding-right: 1px;
589 height: 2.25em;
590 white-space: nowrap;
591 list-style-type: none;
592 list-style-image: none;
593 /* @embed */
594 background-image: url(images/preferences-break.png);
595 background-position: bottom right;
596 background-repeat: no-repeat;
597 }
598 /* Sadly, IE6 won't understand this */
599 #preftoc li:first-child {
600 margin-left: 1px;
601 }
602 #preftoc a,
603 #preftoc a:active {
604 display: inline-block;
605 position: relative;
606 color: #0645ad;
607 padding: 0.5em;
608 text-decoration: none;
609 background-image: none;
610 font-size: 0.9em;
611 }
612 #preftoc a:hover,
613 #preftoc a:focus {
614 text-decoration: underline;
615 }
616 #preftoc li.selected a {
617 /* @embed */
618 background-image: url(images/preferences-fade.png);
619 background-position: bottom;
620 background-repeat: repeat-x;
621 color: #333333;
622 text-decoration: none;
623 }
624 #preferences {
625 float: left;
626 width: 100%;
627 margin: 0;
628 margin-top: -2px;
629 clear: both;
630 border: solid 1px #cccccc;
631 background-color: #f9f9f9;
632 /* @embed */
633 background-image: url(images/preferences-base.png);
634 }
635 #preferences fieldset {
636 border: none;
637 border-top: solid 1px #cccccc;
638 }
639 #preferences fieldset.prefsection {
640 border: none;
641 padding: 0;
642 margin: 1em;
643 }
644 #preferences legend {
645 color: #666666;
646 }
647 #preferences fieldset.prefsection legend.mainLegend {
648 display: none;
649 }
650 #preferences td {
651 padding-left: 0.5em;
652 padding-right: 0.5em;
653 }
654 #preferences td.htmlform-tip {
655 font-size: x-small;
656 padding: .2em 2em;
657 color: #666666;
658 }
659 #preferences div.mw-prefs-buttons {
660 padding: 1em;
661 }
662 #preferences div.mw-prefs-buttons input {
663 margin-right: 0.25em;
664 }
665
666 /*
667 *
668 * The following code is slightly modified from monobook
669 *
670 */
671 div#content {
672 line-height: 1.5em;
673 }
674 #bodyContent {
675 font-size: 0.8em;
676 }
677
678 .editsection { float: right; }
679
680 ul {
681 /* @embed */
682 list-style-image: url(images/bullet-icon.png);
683 }
684
685 pre {
686 line-height: 1.3em;
687 }
688
689 /* Site Notice (includes notices from CentralNotice extension) */
690 #siteNotice {
691 font-size: 0.8em;
692 }
693 #firstHeading {
694 padding-top: 0;
695 margin-top: 0;
696 padding-top: 0;
697 font-size: 1.6em;
698 }
699 div#content a.external,
700 div#content a.external[href ^="gopher://"] {
701 /* @embed */
702 background: url(images/external-link-ltr-icon.png) center right no-repeat;
703 padding-right: 13px;
704 }
705 div#content a.external[href ^="https://"],
706 .link-https {
707 /* @embed */
708 background: url(images/lock-icon.png) center right no-repeat;
709 padding-right: 13px;
710 }
711 div#content a.external[href ^="mailto:"],
712 .link-mailto {
713 /* @embed */
714 background: url(images/mail-icon.png) center right no-repeat;
715 padding-right: 13px;
716 }
717 div#content a.external[href ^="news://"] {
718 /* @embed */
719 background: url(images/news-icon.png) center right no-repeat;
720 padding-right: 13px;
721 }
722 div#content a.external[href ^="ftp://"],
723 .link-ftp {
724 /* @embed */
725 background: url(images/file-icon.png) center right no-repeat;
726 padding-right: 13px;
727 }
728 div#content a.external[href ^="irc://"],
729 div#content a.external[href ^="ircs://"],
730 .link-irc {
731 /* @embed */
732 background: url(images/talk-icon.png) center right no-repeat;
733 padding-right: 13px;
734 }
735 div#content a.external[href $=".ogg"], div#content a.external[href $=".OGG"],
736 div#content a.external[href $=".mid"], div#content a.external[href $=".MID"],
737 div#content a.external[href $=".midi"], div#content a.external[href $=".MIDI"],
738 div#content a.external[href $=".mp3"], div#content a.external[href $=".MP3"],
739 div#content a.external[href $=".wav"], div#content a.external[href $=".WAV"],
740 div#content a.external[href $=".wma"], div#content a.external[href $=".WMA"],
741 .link-audio {
742 /* @embed */
743 background: url("images/audio-icon.png?2") center right no-repeat;
744 padding-right: 13px;
745 }
746 div#content a.external[href $=".ogm"], div#content a.external[href $=".OGM"],
747 div#content a.external[href $=".avi"], div#content a.external[href $=".AVI"],
748 div#content a.external[href $=".mpeg"], div#content a.external[href $=".MPEG"],
749 div#content a.external[href $=".mpg"], div#content a.external[href $=".MPG"],
750 .link-video {
751 /* @embed */
752 background: url("images/video-icon.png?2") center right no-repeat;
753 padding-right: 13px;
754 }
755 div#content a.external[href $=".pdf"], div#content a.external[href $=".PDF"],
756 div#content a.external[href *=".pdf#"], div#content a.external[href *=".PDF#"],
757 div#content a.external[href *=".pdf?"], div#content a.external[href *=".PDF?"],
758 .link-document {
759 /* @embed */
760 background: url("images/document-icon.png?2") center right no-repeat;
761 padding-right: 13px;
762 }
763
764 div#content .printfooter {
765 display: none;
766 }
767 /* Icon for Usernames */
768 #pt-userpage,
769 #pt-anonuserpage,
770 #pt-login {
771 /* @embed */
772 background: url(images/user-icon.png) left top no-repeat;
773 padding-left: 15px !important;
774 text-transform: none;
775 }
776
777 .redirectText {
778 font-size: 140%;
779 }
780
781 .redirectMsg img {
782 vertical-align: text-bottom;
783 }
784
785 #bodyContent {
786 position: relative;
787 width: 100%;
788 }
789 #mw-js-message {
790 font-size: 0.8em;
791 }
792 div#bodyContent {
793 line-height: 1.5em;
794 }
795
796 /* Watch/Unwatch Icon Styling */
797 #ca-unwatch.icon a,
798 #ca-watch.icon a {
799 margin: 0;
800 padding: 0;
801 outline: none;
802 display: block;
803 width: 26px;
804 /* This hides the text but shows the background image */
805 padding-top: 3.1em;
806 margin-top: 0;
807 /* Only applied in IE6 */
808 margin-top: -0.8em !ie;
809 height: 0;
810 overflow: hidden;
811 /* @embed */
812 background-image: url(images/watch-icons.png);
813 }
814 #ca-unwatch.icon a {
815 background-position: -43px 60%;
816 }
817 #ca-watch.icon a {
818 background-position: 5px 60%;
819 }
820 #ca-unwatch.icon a:hover,
821 #ca-unwatch.icon a:focus {
822 background-position: -67px 60%;
823 }
824 #ca-watch.icon a:hover,
825 #ca-watch.icon a:focus {
826 background-position: -19px 60%;
827 }
828 #ca-unwatch.icon a.loading,
829 #ca-watch.icon a.loading {
830 /* @embed */
831 background-image: url(images/watch-icon-loading.gif);
832 background-position: 5px 60%;
833 }
834 #ca-unwatch.icon a span,
835 #ca-watch.icon a span {
836 display: none;
837 }
838 div.vectorTabs ul {
839 /* @embed */
840 background-image:url(images/tab-break.png);
841 background-position:right bottom;
842 background-repeat:no-repeat;
843 }
844
845 /* Tooltips are outside of the normal body code, so this helps make the size of the text sensible */
846 .tipsy {
847 font-size: 0.8em;
848 }