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
{
366 #panel div
.portal div
.body ul li
{
367 line-height: 1.125em;
369 padding-bottom: 0.5em;
374 #panel div
.portal div
.body ul li a
{
377 #panel div
.portal div
.body ul li
a:visited
{
385 background-image: url
(images/border.png);
386 background-position: top right
;
387 background-repeat: repeat-x
;
398 padding-bottom: 0.5em;
408 #foot #foot-info li
{
411 #foot #foot-icons li
{
416 #foot #foot-places li
{
433 background-repeat: no-repeat
;
434 background-position: 50% 50%;
435 text-decoration: none
;
440 * The following code is highly modified from monobook. It would be nice if the
441 * preftoc id was more human readable like preferences-toc for instance,
442 * howerver this would require backporting the other skins.
451 margin: 0 !important
;
452 padding: 0 !important
;
453 background-image: url
(images
/preferences-break
.png
);
454 background-position: bottom right
;
455 background-repeat: no-repeat
;
465 list-style-type: none
;
466 list-style-image: none
;
467 background-image: url
(images
/preferences-break
.png
);
468 background-position: bottom left
;
469 background-repeat: no-repeat
;
472 #preftoc li:first-child
{
477 display: inline-block
;
481 text-decoration: none
;
482 background-image: none
;
486 text-decoration: underline
;
488 #preftoc li
.selected a
{
489 background-image: url
(images
/preferences-fade
.png
);
490 background-position: bottom
;
491 background-repeat: repeat-x
;
493 text-decoration: none
;
501 border: solid
1px #cccccc;
502 background-color: #f9f9f9;
503 background-image: url
(images
/preferences-base
.png
);
505 #preferences fieldset
.prefsection
{
510 #preferences fieldset
.prefsection fieldset
{
512 border-top: solid
1px #cccccc;
514 #preferences legend
{
517 #preferences fieldset
.prefsection legend
.mainLegend
{
521 padding-right: 0.5em;
524 #preferences td
.htmlform-tip
{
529 #preferences div
.mw-prefs-buttons
{
532 #preferences div
.mw-prefs-buttons input
{
538 * The following code is slightly modified from monobook
546 text-decoration: none
;
557 text-decoration: underline
;
562 a
.new
, #p-personal a
.new
{
565 a
.new:visited
, #p-personal a
.new:visited
{
569 /* Inline Elements */
572 vertical-align: middle
;
577 background-color: #aaa;
579 margin: .2em 0 .2em 0;
582 /* Structural Elements */
594 padding-bottom: .17em;
595 border-bottom: 1px solid
#aaa;
598 h1
{ font-size: 188%; }
599 h1
.editsection
{ font-size: 53%; }
600 h2
{ font-size: 150%; }
601 h2
.editsection
{ font-size: 67%; }
609 h3
{ font-size: 132%; }
610 h3
.editsection
{ font-size: 76%; font-weight: normal
; }
611 h4
{ font-size: 116%; }
612 h4
.editsection
{ font-size: 86%; font-weight: normal
; }
613 h5
{ font-size: 100%; }
614 h5
.editsection
{ font-weight: normal
; }
615 h6
{ font-size: 80%; }
616 h6
.editsection
{ font-size: 125%; font-weight: normal
; }
618 margin: .4em 0 .5em 0;
627 border-bottom: 1px dotted black
;
633 font-family: Times
, "Times New Roman", serif
;
638 font-family: Times, "Times New Roman", serif;
642 background-color: #f9f9f9;
646 border: 1px dashed
#2f6fab;
648 background-color: #f9f9f9;
653 list-style-type: square
;
654 margin: .3em 1.5em 0 0;
656 list-style-image: url
(images
/bullet-icon
.png
);
660 margin: .3em 3.2em 0 0;
662 list-style-image: none
;
684 /* we don't want the bottom borders of <h2>s to be visible through
686 background-color: white
;
689 /* but keep table layouts in forms clean... */
694 border: 1px solid
#2f6fab;
701 padding: 0 0.5em 0.5em;
718 /* Table of Contents */
722 border: 1px solid
#aaa;
723 background-color: #f9f9f9;
743 list-style-type: none
;
744 list-style-image: none
;
758 div
.floatright
, table
.floatright
{
762 margin: 0 .5em .5em 0;
765 div
.floatright p
{ font-style: italic
; }
766 div
.floatleft
, table
.floatleft
{
770 margin: 0 0 .5em .5em;
773 div
.floatleft p
{ font-style: italic
; }
780 background-color: transparent
;
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
;
853 margin-bottom: 0.9em;
857 border: 1px solid
#aaa;
858 background-color: #f9f9f9;
870 #contentSub, #contentSub2
{
873 margin: 0 1em 1.4em 0;
889 /* Small for tables and similar */
896 /* Edge Cases for Content */
897 #content h1
, #content h2
{
900 #content h3
, #content h4
, #content h5
{
907 margin-bottom: 0.1em;
912 #content a
[href ^
="gopher://"] {
913 background: url
(images
/external-link-rtl-icon
.png
) center left no-repeat
;
916 #content a
[href ^
="https://"],
918 background: url
(images
/lock-icon
.png
) center left no-repeat
;
921 #content a
[href ^
="mailto:"],
923 background: url
(images
/mail-icon
.png
) center left no-repeat
;
926 #content a
[href ^
="news://"] {
927 background: url
(images
/news-icon
.png
) center left no-repeat
;
930 #content a
[href ^
="ftp://"],
932 background: url
(images
/file-icon
.png
) center left no-repeat
;
935 #content a
[href ^
="irc://"],
936 #content a
.extiw
[href ^
="irc://"],
938 background: url
(images
/talk-icon
.png
) center left no-repeat
;
941 #content a
.external
[href $
=".ogg"], #content a
.external
[href $
=".OGG"],
942 #content a
.external
[href $
=".mid"], #content a
.external
[href $
=".MID"],
943 #content a
.external
[href $
=".midi"], #content a
.external
[href $
=".MIDI"],
944 #content a
.external
[href $
=".mp3"], #content a
.external
[href $
=".MP3"],
945 #content a
.external
[href $
=".wav"], #content a
.external
[href $
=".WAV"],
946 #content a
.external
[href $
=".wma"], #content a
.external
[href $
=".WMA"],
948 background: url
("images/audio-icon.png") center left no-repeat
;
951 #content a
.external
[href $
=".ogm"], #content a
.external
[href $
=".OGM"],
952 #content a
.external
[href $
=".avi"], #content a
.external
[href $
=".AVI"],
953 #content a
.external
[href $
=".mpeg"], #content a
.external
[href $
=".MPEG"],
954 #content a
.external
[href $
=".mpg"], #content a
.external
[href $
=".MPG"],
956 background: url
("images/video-icon.png") center left no-repeat
;
959 #content a
.external
[href $
=".pdf"], #content a
.external
[href $
=".PDF"],
960 #content a
.external
[href
*=".pdf#"], #content a
.external
[href
*=".PDF#"],
961 #content a
.external
[href
*=".pdf?"], #content a
.external
[href
*=".PDF?"],
963 background: url
("images/document-icon.png") center left no-repeat
;
966 /* Interwiki Styling (Disabled) */
968 #content a
.extiw:active
{
973 #content a
.external
{
976 #content .printfooter
{
979 /* Icon for Usernames */
983 background: url
(images
/user-icon
.png
) right top no-repeat
;
984 padding-right: 15px !important
;
985 text-transform: none
;
989 border: 1px solid
#aaa;
990 background-color: #f9f9f9;