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
;
89 /* Navigation Containers */
99 /* Navigation Labels */
101 div
.vectorMenu h5 span
{
104 /* Namespaces and Views */
110 background-image: url
(images
/tab-break
.png
);
111 background-position: bottom right
;
112 background-repeat: no-repeat
;
126 div
.vectorTabs ul li
{
129 /* OVERRIDDEN BY COMPLIANT BROWSERS */
130 div
.vectorTabs ul li
{
131 line-height: 1.125em;
132 display: inline-block
;
136 background-color: #f3f3f3;
137 background-image: url
(images
/tab-normal-fade
.png
);
138 background-position: bottom right
;
139 background-repeat: repeat-x
;
142 div
.vectorTabs ul
> li
{
145 div
.vectorTabs li
.selected
{
146 background-image: url
(images
/tab-current-fade
.png
);
148 /* OVERRIDDEN BY COMPLIANT BROWSERS */
149 div
.vectorTabs li a
{
150 display: inline-block
;
152 padding-right: 0.5em;
154 background-image: url
(images
/tab-break
.png
);
155 background-position: bottom left
;
156 background-repeat: no-repeat
;
159 div
.vectorTabs li a span
{
164 div
.vectorTabs li
> a
{
167 /* OVERRIDDEN BY COMPLIANT BROWSERS */
168 div
.vectorTabs a span
{
169 display: inline-block
;
174 div
.vectorTabs a
> span
{
178 div
.vectorTabs li
.selected a
,
179 div
.vectorTabs li
.selected a span
,
180 div
.vectorTabs li
.selected
a:visited
181 div
.vectorTabs li
.selected
a:visited span
{
183 text-decoration: none
;
185 div
.vectorTabs li
.new a
,
186 div
.vectorTabs li
.new a span
,
187 div
.vectorTabs li
.new
a:visited
,
188 div
.vectorTabs li
.new
a:visited span
{
191 /* Variants and Actions */
196 background-image: url
(images
/arrow-down-icon
.png
);
197 background-position: center center
;
198 background-repeat: no-repeat
;
200 body
.rtl div
.vectorMenu
{
207 /* OVERRIDDEN BY COMPLIANT BROWSERS */
208 div
.vectorMenu h5 a
{
209 display: inline-block
;
212 text-decoration: none
;
213 background-image: url
(images
/tab-break
.png
);
214 background-position: bottom left
;
215 background-repeat: no-repeat
;
218 div
.vectorMenu h5
> a
{
221 div
.vectorMenu div
.menu
{
227 /* OVERRIDDEN BY COMPLIANT BROWSERS */
228 body
.rtl div
.vectorMenu div
.menu
{
232 body
.rtl div
.vectorMenu
> div
.menu
{
235 /* Fixes old versions of FireFox */
236 body
.rtl div
.vectorMenu
> div
.menu
,
240 div
.vectorMenu:hover div
.menu
{
245 background-color: white
;
246 border: solid
1px silver
;
254 /* Fixes old versions of FireFox */
259 /* Returns things back to normal in modern versions of FireFox */
271 /* OVERRIDDEN BY COMPLIANT BROWSERS */
272 div
.vectorMenu li a
{
273 display: inline-block
;
278 div
.vectorMenu li
> a
{
301 border: solid
1px #AAAAAA;
302 background-color: white
;
303 background-image: url
(images
/search-fade
.png
);
304 background-position: top right
;
305 background-repeat: repeat-x
;
307 #simpleSearch input#searchInput
{
314 background-color: transparent
;
316 /* OVERRIDDEN BY COMPLIANT BROWSERS */
317 #simpleSearch button#searchButton
{
324 background-color: transparent
;
325 background-image: url
(images
/search-rtl
.png
);
326 background-position: center center
;
327 background-repeat: no-repeat
;
330 #simpleSearch > button#searchButton
{
343 #panel div
.portal h5
{
348 padding-right: 1.25em;
353 #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 #panel div
.portal div
.body ul
{
363 list-style-image: none
;
364 list-style-type: none
;
368 #panel div
.portal div
.body ul li
{
369 line-height: 1.125em;
371 padding-bottom: 0.5em;
376 #panel div
.portal div
.body ul li a
{
379 #panel div
.portal div
.body ul li
a:visited
{
387 background-image: url
(images/border.png);
388 background-position: top right
;
389 background-repeat: repeat-x
;
400 padding-bottom: 0.5em;
410 #foot #foot-info li
{
413 #foot #foot-icons li
{
418 #foot #foot-places li
{
435 background-repeat: no-repeat
;
436 background-position: 50% 50%;
437 text-decoration: none
;
442 * The following code is highly modified from monobook. It would be nice if the
443 * preftoc id was more human readable like preferences-toc for instance,
444 * howerver this would require backporting the other skins.
453 margin: 0 !important
;
454 padding: 0 !important
;
455 background-image: url
(images
/preferences-break
.png
);
456 background-position: bottom right
;
457 background-repeat: no-repeat
;
467 list-style-type: none
;
468 list-style-image: none
;
469 background-image: url
(images
/preferences-break
.png
);
470 background-position: bottom left
;
471 background-repeat: no-repeat
;
474 #preftoc li:first-child
{
479 display: inline-block
;
483 text-decoration: none
;
484 background-image: none
;
488 text-decoration: underline
;
490 #preftoc li
.selected a
{
491 background-image: url
(images
/preferences-fade
.png
);
492 background-position: bottom
;
493 background-repeat: repeat-x
;
495 text-decoration: none
;
503 border: solid
1px #cccccc;
504 background-color: #f9f9f9;
505 background-image: url
(images
/preferences-base
.png
);
507 #preferences fieldset
.prefsection
{
512 #preferences fieldset
.prefsection fieldset
{
514 border-top: solid
1px #cccccc;
516 #preferences legend
{
519 #preferences fieldset
.prefsection legend
.mainLegend
{
523 padding-right: 0.5em;
526 #preferences td
.htmlform-tip
{
531 #preferences div
.mw-prefs-buttons
{
534 #preferences div
.mw-prefs-buttons input
{
540 * The following code is slightly modified from monobook
548 text-decoration: none
;
559 text-decoration: underline
;
564 a
.new
, #p-personal a
.new
{
567 a
.new:visited
, #p-personal a
.new:visited
{
571 /* Inline Elements */
574 vertical-align: middle
;
579 background-color: #aaa;
581 margin: .2em 0 .2em 0;
584 /* Structural Elements */
596 padding-bottom: .17em;
597 border-bottom: 1px solid
#aaa;
600 h1
{ font-size: 188%; }
601 h1
.editsection
{ font-size: 53%; }
602 h2
{ font-size: 150%; }
603 h2
.editsection
{ font-size: 67%; }
611 h3
{ font-size: 132%; }
612 h3
.editsection
{ font-size: 76%; font-weight: normal
; }
613 h4
{ font-size: 116%; }
614 h4
.editsection
{ font-size: 86%; font-weight: normal
; }
615 h5
{ font-size: 100%; }
616 h5
.editsection
{ font-weight: normal
; }
617 h6
{ font-size: 80%; }
618 h6
.editsection
{ font-size: 125%; font-weight: normal
; }
620 margin: .4em 0 .5em 0;
629 border-bottom: 1px dotted black
;
635 font-family: Times
, "Times New Roman", serif
;
640 font-family: Times, "Times New Roman", serif;
644 background-color: #f9f9f9;
648 border: 1px dashed
#2f6fab;
650 background-color: #f9f9f9;
655 list-style-type: square
;
656 margin: .3em 1.5em 0 0;
658 list-style-image: url
(images
/bullet-icon
.png
);
662 margin: .3em 3.2em 0 0;
664 list-style-image: none
;
686 /* we don't want the bottom borders of <h2>s to be visible through
688 background-color: white
;
691 /* but keep table layouts in forms clean... */
696 border: 1px solid
#2f6fab;
703 padding: 0 0.5em 0.5em;
720 /* Table of Contents */
724 border: 1px solid
#aaa;
725 background-color: #f9f9f9;
745 list-style-type: none
;
746 list-style-image: none
;
760 div
.floatright
, table
.floatright
{
764 margin: 0 .5em .5em 0;
767 div
.floatright p
{ font-style: italic
; }
768 div
.floatleft
, table
.floatleft
{
772 margin: 0 0 .5em .5em;
775 div
.floatleft p
{ font-style: italic
; }
782 background-color: transparent
;
785 border: 1px solid
#ccc;
786 padding: 3px !important
;
787 background-color: #f9f9f9;
793 border: 1px solid
#ccc;
799 padding: 3px !important
;
804 border: none
!important
;
805 background: none
!important
;
807 div
.magnify a
, div
.magnify img
{
809 border: none
!important
;
810 background: none
!important
;
815 border-width: .5em 1.4em .8em 0;
821 border-width: .5em 0 .8em 1.4em;
824 border: 1px solid
#dddddd;
837 background-color: #ffce7b;
838 border: 1px solid
#ffa500;
843 vertical-align: middle
;
855 margin-bottom: 0.9em;
859 border: 1px solid
#aaa;
860 background-color: #f9f9f9;
872 #contentSub, #contentSub2
{
875 margin: 0 1em 1.4em 0;
891 /* Small for tables and similar */
898 /* Edge Cases for Content */
899 #content h1
, #content h2
{
902 #content h3
, #content h4
, #content h5
{
909 margin-bottom: 0.1em;
914 #content a
[href ^
="gopher://"] {
915 background: url
(images
/external-link-rtl-icon
.png
) center left no-repeat
;
918 #content a
[href ^
="https://"],
920 background: url
(images
/lock-icon
.png
) center left no-repeat
;
923 #content a
[href ^
="mailto:"],
925 background: url
(images
/mail-icon
.png
) center left no-repeat
;
928 #content a
[href ^
="news://"] {
929 background: url
(images
/news-icon
.png
) center left no-repeat
;
932 #content a
[href ^
="ftp://"],
934 background: url
(images
/file-icon
.png
) center left no-repeat
;
937 #content a
[href ^
="irc://"],
938 #content a
.extiw
[href ^
="irc://"],
940 background: url
(images
/talk-icon
.png
) center left no-repeat
;
943 #content a
.external
[href $
=".ogg"], #content a
.external
[href $
=".OGG"],
944 #content a
.external
[href $
=".mid"], #content a
.external
[href $
=".MID"],
945 #content a
.external
[href $
=".midi"], #content a
.external
[href $
=".MIDI"],
946 #content a
.external
[href $
=".mp3"], #content a
.external
[href $
=".MP3"],
947 #content a
.external
[href $
=".wav"], #content a
.external
[href $
=".WAV"],
948 #content a
.external
[href $
=".wma"], #content a
.external
[href $
=".WMA"],
950 background: url
("images/audio-icon.png") center left no-repeat
;
953 #content a
.external
[href $
=".ogm"], #content a
.external
[href $
=".OGM"],
954 #content a
.external
[href $
=".avi"], #content a
.external
[href $
=".AVI"],
955 #content a
.external
[href $
=".mpeg"], #content a
.external
[href $
=".MPEG"],
956 #content a
.external
[href $
=".mpg"], #content a
.external
[href $
=".MPG"],
958 background: url
("images/video-icon.png") center left no-repeat
;
961 #content a
.external
[href $
=".pdf"], #content a
.external
[href $
=".PDF"],
962 #content a
.external
[href
*=".pdf#"], #content a
.external
[href
*=".PDF#"],
963 #content a
.external
[href
*=".pdf?"], #content a
.external
[href
*=".PDF?"],
965 background: url
("images/document-icon.png") center left no-repeat
;
968 /* Interwiki Styling (Disabled) */
970 #content a
.extiw:active
{
975 #content a
.external
{
978 #content .printfooter
{
981 /* Icon for Usernames */
985 background: url
(images
/user-icon
.png
) right top no-repeat
;
986 padding-right: 15px !important
;
987 text-transform: none
;
991 border: 1px solid
#aaa;
992 background-color: #f9f9f9;