2 * main-rtl.css is automatically generated using CSSJanus, a python script for
3 * creating RTL versions of otherwise LTR stylesheets.
5 * You may download the tool to rebuild this stylesheet
6 * http://code.google.com/p/cssjanus/
8 * An online version of this tool can be used at:
9 * http://cssjanus.commoner.com/
11 * The following command is used to generate the RTL version of this file
12 * ./cssjanus.py --swap_ltr_rtl_in_url < main-ltr.css > main-rtl.css
14 * Any rules which should not be flipped should be prepended with @noflip in
23 font-family: sans-serif
;
27 background-color: #f3f3f3;
28 background-image: url
(images
/page-base
.png
);
34 background-image: url
(images/border.png);
35 background-position: top right
;
36 background-repeat: repeat-y
;
37 background-color: white
;
42 background-color: white
;
43 background-image: url
(images
/page-fade
.png
);
44 background-position: bottom right
;
45 background-repeat: repeat-x
;
51 background-image: url
(images/border.png);
52 background-position: bottom right
;
53 background-repeat: repeat-x
;
88 /* Navigation Containers */
94 div#right-navigation
{
98 /* Navigation Labels */
100 div
.vectorMenu h5 span
{
103 /* Namespaces and Views */
109 background-image: url
(images
/tab-break
.png
);
110 background-position: bottom right
;
111 background-repeat: no-repeat
;
125 div
.vectorTabs ul li
{
128 /* OVERRIDDEN BY COMPLIANT BROWSERS */
129 div
.vectorTabs ul li
{
130 display: inline-block
;
134 background-color: #f3f3f3;
135 background-image: url
(images
/tab-normal-fade
.png
);
136 background-position: bottom right
;
137 background-repeat: repeat-x
;
140 div
.vectorTabs ul
> li
{
143 div
.vectorTabs li
.selected
{
144 background-image: url
(images
/tab-current-fade
.png
);
146 /* OVERRIDDEN BY COMPLIANT BROWSERS */
147 div
.vectorTabs li a
{
148 display: inline-block
;
150 padding-right: 0.5em;
152 background-image: url
(images
/tab-break
.png
);
153 background-position: bottom left
;
154 background-repeat: no-repeat
;
157 div
.vectorTabs li a span
{
162 div
.vectorTabs li
> a
{
165 /* OVERRIDDEN BY COMPLIANT BROWSERS */
166 div
.vectorTabs a span
{
167 display: inline-block
;
172 div
.vectorTabs a
> span
{
176 div
.vectorTabs li
.selected a
,
177 div
.vectorTabs li
.selected a span
,
178 div
.vectorTabs li
.selected
a:visited
179 div
.vectorTabs li
.selected
a:visited span
{
182 text-decoration: none
;
184 div
.vectorTabs li
.new a
,
185 div
.vectorTabs li
.new a span
,
186 div
.vectorTabs li
.new
a:visited
,
187 div
.vectorTabs li
.new
a:visited span
{
190 /* Variants and Actions */
195 background-image: url
(images
/arrow-down-icon
.png
);
196 background-position: center center
;
197 background-repeat: no-repeat
;
199 body
.rtl div
.vectorMenu
{
206 /* OVERRIDDEN BY COMPLIANT BROWSERS */
207 div
.vectorMenu h5 a
{
208 display: inline-block
;
211 text-decoration: none
;
212 background-image: url
(images
/tab-break
.png
);
213 background-position: bottom left
;
214 background-repeat: no-repeat
;
217 div
.vectorMenu h5
> a
{
220 div
.vectorMenu div
.menu
{
226 /* OVERRIDDEN BY COMPLIANT BROWSERS */
227 body
.rtl div
.vectorMenu div
.menu
{
231 body
.rtl div
.vectorMenu
> div
.menu
{
234 /* Fixes old versions of FireFox */
235 body
.rtl div
.vectorMenu
> div
.menu
,
239 div
.vectorMenu:hover div
.menu
{
244 background-color: white
;
245 border: solid
1px silver
;
253 /* Fixes old versions of FireFox */
258 /* Returns things back to normal in modern versions of FireFox */
269 /* OVERRIDDEN BY COMPLIANT BROWSERS */
270 div
.vectorMenu li a
{
271 display: inline-block
;
275 div
.vectorMenu li
> a
{
302 div#panel div
.portal
{
305 div#panel div
.portal h5
{
310 padding-right: 1.25em;
315 div#panel div
.portal div
.body
{
318 margin-right: 1.25em;
319 background-image: url
(images
/portal-break-rtl
.png
);
320 background-repeat: no-repeat
;
321 background-position: top right
;
323 div#panel div
.portal div
.body ul
{
328 div#panel div
.portal div
.body ul li
{
330 padding-bottom: 0.5em;
335 div#panel div
.portal div
.body ul li a
{
338 div#panel div
.portal div
.body ul li
a:visited
{
346 background-image: url
(images/border.png);
347 background-position: top right
;
348 background-repeat: repeat-x
;
359 padding-bottom: 0.5em;
363 div#foot ul#foot-icons
{
366 div#foot ul#foot-places
{
369 div#foot ul#foot-info li
{
372 div#foot ul#foot-icons li
{
377 div#foot ul#foot-places li
{
394 background-repeat: no-repeat
;
395 background-position: 50% 50%;
396 text-decoration: none
;
401 * The following code is highly modified from monobook. It would be nice if the
402 * preftoc id was more human readable like preferences-toc for instance,
403 * howerver this would require backporting the other skins.
412 margin: 0 !important
;
413 padding: 0 !important
;
414 background-image: url
(images
/preferences-break
.png
);
415 background-position: bottom right
;
416 background-repeat: no-repeat
;
426 list-style-type: none
;
427 list-style-image: none
;
428 background-image: url
(images
/preferences-break
.png
);
429 background-position: bottom left
;
430 background-repeat: no-repeat
;
433 #preftoc li:first-child
{
438 display: inline-block
;
442 text-decoration: none
;
443 background-image: none
;
447 text-decoration: underline
;
449 #preftoc li
.selected a
{
451 background-image: url
(images
/preferences-fade
.png
);
452 background-position: bottom
;
453 background-repeat: repeat-x
;
456 text-decoration: none
;
464 border: solid
1px #cccccc;
465 background-color: #f9f9f9;
466 background-image: url
(images
/preferences-base
.png
);
468 #preferences fieldset
.prefsection
{
473 #preferences fieldset
.prefsection fieldset
{
475 border-top: solid
1px #cccccc;
477 #preferences legend
{
480 #preferences fieldset
.prefsection legend
.mainLegend
{
484 padding-right: 0.5em;
487 #preferences td
.htmlform-tip
{
492 #preferences div
.mw-prefs-buttons
{
495 #preferences div
.mw-prefs-buttons input
{
501 * The following code is slightly modified from monobook
509 text-decoration: none
;
520 text-decoration: underline
;
525 a
.new
, #p-personal a
.new
{
528 a
.new:visited
, #p-personal a
.new:visited
{
532 /* Inline Elements */
535 vertical-align: middle
;
540 background-color: #aaa;
542 margin: .2em 0 .2em 0;
545 /* Structural Elements */
557 padding-bottom: .17em;
558 border-bottom: 1px solid
#aaa;
561 h1
{ font-size: 188%; }
562 h1
.editsection
{ font-size: 53%; }
563 h2
{ font-size: 150%; }
564 h2
.editsection
{ font-size: 67%; }
572 h3
{ font-size: 132%; }
573 h3
.editsection
{ font-size: 76%; font-weight: normal
; }
574 h4
{ font-size: 116%; }
575 h4
.editsection
{ font-size: 86%; font-weight: normal
; }
576 h5
{ font-size: 100%; }
577 h5
.editsection
{ font-weight: normal
; }
578 h6
{ font-size: 80%; }
579 h6
.editsection
{ font-size: 125%; font-weight: normal
; }
581 margin: .4em 0 .5em 0;
590 border-bottom: 1px dotted black
;
596 font-family: Times
, "Times New Roman", serif
;
601 font-family: Times, "Times New Roman", serif;
605 background-color: #f9f9f9;
609 border: 1px dashed
#2f6fab;
611 background-color: #f9f9f9;
616 list-style-type: square
;
617 margin: .3em 1.5em 0 0;
619 list-style-image: url
(images
/bullet-icon
.png
);
623 margin: .3em 3.2em 0 0;
625 list-style-image: none
;
647 /* we don't want the bottom borders of <h2>s to be visible through
649 background-color: white
;
651 div#content fieldset table
{
652 /* but keep table layouts in forms clean... */
656 div#content fieldset
{
657 border: 1px solid
#2f6fab;
664 padding: 0 0.5em 0.5em;
674 div#content textarea
{
681 /* Table of Contents */
685 border: 1px solid
#aaa;
686 background-color: #f9f9f9;
705 div#content
.toc ul
{
706 list-style-type: none
;
707 list-style-image: none
;
721 div
.floatright
, table
.floatright
{
725 margin: 0 .5em .5em 0;
728 div
.floatright p
{ font-style: italic
; }
729 div
.floatleft
, table
.floatleft
{
733 margin: 0 0 .5em .5em;
736 div
.floatleft p
{ font-style: italic
; }
745 border: 1px solid
#ccc;
746 padding: 3px !important
;
747 background-color: #f9f9f9;
753 border: 1px solid
#ccc;
759 padding: 3px !important
;
764 border: none
!important
;
765 background: none
!important
;
767 div
.magnify a
, div
.magnify img
{
769 border: none
!important
;
770 background: none
!important
;
775 border-width: .5em 1.4em .8em 0;
781 border-width: .5em 0 .8em 1.4em;
784 border: 1px solid
#dddddd;
797 background-color: #ffce7b;
798 border: 1px solid
#ffa500;
803 vertical-align: middle
;
809 margin-bottom: 0.9em;
817 border: 1px solid
#aaa;
818 background-color: #f9f9f9;
830 #contentSub, #contentSub2
{
833 margin: 0 1em 1.4em 0;
849 /* Small for tables and similar */
856 /* Edge Cases for Content */
857 #content h1
, #content h2
{
860 #content h3
, #content h4
, #content h5
{
867 margin-bottom: 0.1em;
872 #content a
[href ^
="gopher://"] {
873 background: url
(images
/external-link-rtl-icon
.png
) center left no-repeat
;
876 #content a
[href ^
="https://"],
878 background: url
(images
/lock-icon
.png
) center left no-repeat
;
881 #content a
[href ^
="mailto:"],
883 background: url
(images
/mail-icon
.png
) center left no-repeat
;
886 #content a
[href ^
="news://"] {
887 background: url
(images
/news-icon
.png
) center left no-repeat
;
890 #content a
[href ^
="ftp://"],
892 background: url
(images
/file-icon
.png
) center left no-repeat
;
895 #content a
[href ^
="irc://"],
896 #content a
.extiw
[href ^
="irc://"],
898 background: url
(images
/talk-icon
.png
) center left no-repeat
;
901 #content a
.external
[href $
=".ogg"], #content a
.external
[href $
=".OGG"],
902 #content a
.external
[href $
=".mid"], #content a
.external
[href $
=".MID"],
903 #content a
.external
[href $
=".midi"], #content a
.external
[href $
=".MIDI"],
904 #content a
.external
[href $
=".mp3"], #content a
.external
[href $
=".MP3"],
905 #content a
.external
[href $
=".wav"], #content a
.external
[href $
=".WAV"],
906 #content a
.external
[href $
=".wma"], #content a
.external
[href $
=".WMA"],
908 background: url
("images/audio-icon.png") center left no-repeat
;
911 #content a
.external
[href $
=".ogm"], #content a
.external
[href $
=".OGM"],
912 #content a
.external
[href $
=".avi"], #content a
.external
[href $
=".AVI"],
913 #content a
.external
[href $
=".mpeg"], #content a
.external
[href $
=".MPEG"],
914 #content a
.external
[href $
=".mpg"], #content a
.external
[href $
=".MPG"],
916 background: url
("images/video-icon.png") center left no-repeat
;
919 #content a
.external
[href $
=".pdf"], #content a
.external
[href $
=".PDF"],
920 #content a
.external
[href
*=".pdf#"], #content a
.external
[href
*=".PDF#"],
921 #content a
.external
[href
*=".pdf?"], #content a
.external
[href
*=".PDF?"],
923 background: url
("images/document-icon.png") center left no-repeat
;
926 /* Interwiki Styling (Disabled) */
928 #content a
.extiw:active
{
933 #content a
.external
{
936 #content .plainlinks a
{
937 /* this can be used in the content area to switch off special external link
939 background: none
!important
;
940 padding: 0 !important
;
942 #content .printfooter
{
950 background: url
(images
/user-icon
.png
) right top no-repeat
;
951 padding-right: 15px !important
;
952 text-transform: none
;
955 span
.newpage
, span
.minor
, span
.bot
{
960 border: 1px solid
#aaa;
961 background-color: #f9f9f9;