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
{
295 div#p-search div#simpleSearch
{
298 border: solid
1px #AAAAAA;
299 background-color: white
;
300 background-image: url
(images
/search-fade
.png
);
301 background-position: top right
;
302 background-repeat: repeat-x
;
304 div#p-search div#simpleSearch input#searchInput
{
311 background-color: transparent
;
313 /* OVERRIDDEN BY COMPLIANT BROWSERS */
314 div#p-search div#simpleSearch input#searchButton
{
324 background-color: transparent
;
325 background-image: url
(images/search.png);
326 background-position: center center
;
327 background-repeat: no-repeat
;
330 div#p-search div#simpleSearch
> input#searchButton
{
340 div#panel div
.portal
{
343 div#panel div
.portal h5
{
348 padding-right: 1.25em;
353 div#panel div
.portal div
.body
{
356 margin-right: 1.25em;
357 background-image: url
(images
/portal-break-rtl
.png
);
358 background-repeat: no-repeat
;
359 background-position: top right
;
361 div#panel div
.portal div
.body ul
{
366 div#panel div
.portal div
.body ul li
{
368 padding-bottom: 0.5em;
373 div#panel div
.portal div
.body ul li a
{
376 div#panel div
.portal div
.body ul li
a:visited
{
384 background-image: url
(images/border.png);
385 background-position: top right
;
386 background-repeat: repeat-x
;
397 padding-bottom: 0.5em;
401 div#foot ul#foot-icons
{
404 div#foot ul#foot-places
{
407 div#foot ul#foot-info li
{
410 div#foot ul#foot-icons li
{
415 div#foot ul#foot-places li
{
432 background-repeat: no-repeat
;
433 background-position: 50% 50%;
434 text-decoration: none
;
439 * The following code is highly modified from monobook. It would be nice if the
440 * preftoc id was more human readable like preferences-toc for instance,
441 * howerver this would require backporting the other skins.
450 margin: 0 !important
;
451 padding: 0 !important
;
452 background-image: url
(images
/preferences-break
.png
);
453 background-position: bottom right
;
454 background-repeat: no-repeat
;
464 list-style-type: none
;
465 list-style-image: none
;
466 background-image: url
(images
/preferences-break
.png
);
467 background-position: bottom left
;
468 background-repeat: no-repeat
;
471 #preftoc li:first-child
{
476 display: inline-block
;
480 text-decoration: none
;
481 background-image: none
;
485 text-decoration: underline
;
487 #preftoc li
.selected a
{
489 background-image: url
(images
/preferences-fade
.png
);
490 background-position: bottom
;
491 background-repeat: repeat-x
;
494 text-decoration: none
;
502 border: solid
1px #cccccc;
503 background-color: #f9f9f9;
504 background-image: url
(images
/preferences-base
.png
);
506 #preferences fieldset
.prefsection
{
511 #preferences fieldset
.prefsection fieldset
{
513 border-top: solid
1px #cccccc;
515 #preferences legend
{
518 #preferences fieldset
.prefsection legend
.mainLegend
{
522 padding-right: 0.5em;
525 #preferences td
.htmlform-tip
{
530 #preferences div
.mw-prefs-buttons
{
533 #preferences div
.mw-prefs-buttons input
{
539 * The following code is slightly modified from monobook
547 text-decoration: none
;
558 text-decoration: underline
;
563 a
.new
, #p-personal a
.new
{
566 a
.new:visited
, #p-personal a
.new:visited
{
570 /* Inline Elements */
573 vertical-align: middle
;
578 background-color: #aaa;
580 margin: .2em 0 .2em 0;
583 /* Structural Elements */
595 padding-bottom: .17em;
596 border-bottom: 1px solid
#aaa;
599 h1
{ font-size: 188%; }
600 h1
.editsection
{ font-size: 53%; }
601 h2
{ font-size: 150%; }
602 h2
.editsection
{ font-size: 67%; }
610 h3
{ font-size: 132%; }
611 h3
.editsection
{ font-size: 76%; font-weight: normal
; }
612 h4
{ font-size: 116%; }
613 h4
.editsection
{ font-size: 86%; font-weight: normal
; }
614 h5
{ font-size: 100%; }
615 h5
.editsection
{ font-weight: normal
; }
616 h6
{ font-size: 80%; }
617 h6
.editsection
{ font-size: 125%; font-weight: normal
; }
619 margin: .4em 0 .5em 0;
628 border-bottom: 1px dotted black
;
634 font-family: Times
, "Times New Roman", serif
;
639 font-family: Times, "Times New Roman", serif;
643 background-color: #f9f9f9;
647 border: 1px dashed
#2f6fab;
649 background-color: #f9f9f9;
654 list-style-type: square
;
655 margin: .3em 1.5em 0 0;
657 list-style-image: url
(images
/bullet-icon
.png
);
661 margin: .3em 3.2em 0 0;
663 list-style-image: none
;
685 /* we don't want the bottom borders of <h2>s to be visible through
687 background-color: white
;
689 div#content fieldset table
{
690 /* but keep table layouts in forms clean... */
694 div#content fieldset
{
695 border: 1px solid
#2f6fab;
702 padding: 0 0.5em 0.5em;
712 div#content textarea
{
719 /* Table of Contents */
723 border: 1px solid
#aaa;
724 background-color: #f9f9f9;
743 div#content
.toc ul
{
744 list-style-type: none
;
745 list-style-image: none
;
759 div
.floatright
, table
.floatright
{
763 margin: 0 .5em .5em 0;
766 div
.floatright p
{ font-style: italic
; }
767 div
.floatleft
, table
.floatleft
{
771 margin: 0 0 .5em .5em;
774 div
.floatleft p
{ font-style: italic
; }
783 border: 1px solid
#ccc;
784 padding: 3px !important
;
785 background-color: #f9f9f9;
791 border: 1px solid
#ccc;
797 padding: 3px !important
;
802 border: none
!important
;
803 background: none
!important
;
805 div
.magnify a
, div
.magnify img
{
807 border: none
!important
;
808 background: none
!important
;
813 border-width: .5em 1.4em .8em 0;
819 border-width: .5em 0 .8em 1.4em;
822 border: 1px solid
#dddddd;
835 background-color: #ffce7b;
836 border: 1px solid
#ffa500;
841 vertical-align: middle
;
847 margin-bottom: 0.9em;
855 border: 1px solid
#aaa;
856 background-color: #f9f9f9;
868 #contentSub, #contentSub2
{
871 margin: 0 1em 1.4em 0;
887 /* Small for tables and similar */
894 /* Edge Cases for Content */
895 #content h1
, #content h2
{
898 #content h3
, #content h4
, #content h5
{
905 margin-bottom: 0.1em;
910 #content a
[href ^
="gopher://"] {
911 background: url
(images
/external-link-rtl-icon
.png
) center left no-repeat
;
914 #content a
[href ^
="https://"],
916 background: url
(images
/lock-icon
.png
) center left no-repeat
;
919 #content a
[href ^
="mailto:"],
921 background: url
(images
/mail-icon
.png
) center left no-repeat
;
924 #content a
[href ^
="news://"] {
925 background: url
(images
/news-icon
.png
) center left no-repeat
;
928 #content a
[href ^
="ftp://"],
930 background: url
(images
/file-icon
.png
) center left no-repeat
;
933 #content a
[href ^
="irc://"],
934 #content a
.extiw
[href ^
="irc://"],
936 background: url
(images
/talk-icon
.png
) center left no-repeat
;
939 #content a
.external
[href $
=".ogg"], #content a
.external
[href $
=".OGG"],
940 #content a
.external
[href $
=".mid"], #content a
.external
[href $
=".MID"],
941 #content a
.external
[href $
=".midi"], #content a
.external
[href $
=".MIDI"],
942 #content a
.external
[href $
=".mp3"], #content a
.external
[href $
=".MP3"],
943 #content a
.external
[href $
=".wav"], #content a
.external
[href $
=".WAV"],
944 #content a
.external
[href $
=".wma"], #content a
.external
[href $
=".WMA"],
946 background: url
("images/audio-icon.png") center left no-repeat
;
949 #content a
.external
[href $
=".ogm"], #content a
.external
[href $
=".OGM"],
950 #content a
.external
[href $
=".avi"], #content a
.external
[href $
=".AVI"],
951 #content a
.external
[href $
=".mpeg"], #content a
.external
[href $
=".MPEG"],
952 #content a
.external
[href $
=".mpg"], #content a
.external
[href $
=".MPG"],
954 background: url
("images/video-icon.png") center left no-repeat
;
957 #content a
.external
[href $
=".pdf"], #content a
.external
[href $
=".PDF"],
958 #content a
.external
[href
*=".pdf#"], #content a
.external
[href
*=".PDF#"],
959 #content a
.external
[href
*=".pdf?"], #content a
.external
[href
*=".PDF?"],
961 background: url
("images/document-icon.png") center left no-repeat
;
964 /* Interwiki Styling (Disabled) */
966 #content a
.extiw:active
{
971 #content a
.external
{
974 #content .printfooter
{
982 background: url
(images
/user-icon
.png
) right top no-repeat
;
983 padding-right: 15px !important
;
984 text-transform: none
;
987 span
.newpage
, span
.minor
, span
.bot
{
992 border: 1px solid
#aaa;
993 background-color: #f9f9f9;