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
;
65 /* Hide empty portlets */
93 /* Navigation Containers */
103 /* Navigation Labels */
105 div
.vectorMenu h5 span
{
108 /* Namespaces and Views */
114 background-image: url
(images
/tab-break
.png
);
115 background-position: bottom right
;
116 background-repeat: no-repeat
;
130 div
.vectorTabs ul li
{
133 /* OVERRIDDEN BY COMPLIANT BROWSERS */
134 div
.vectorTabs ul li
{
135 line-height: 1.125em;
136 display: inline-block
;
140 background-color: #f3f3f3;
141 background-image: url
(images
/tab-normal-fade
.png
);
142 background-position: bottom right
;
143 background-repeat: repeat-x
;
147 div
.vectorTabs ul
> li
{
150 div
.vectorTabs li
.selected
{
151 background-image: url
(images
/tab-current-fade
.png
);
153 /* OVERRIDDEN BY COMPLIANT BROWSERS */
154 div
.vectorTabs li a
{
155 display: inline-block
;
157 padding-right: 0.4em;
159 background-image: url
(images
/tab-break
.png
);
160 background-position: bottom left
;
161 background-repeat: no-repeat
;
164 div
.vectorTabs li a span
{
168 div
.vectorTabs li a span
{
172 div
.vectorTabs li
> a
{
175 /* OVERRIDDEN BY COMPLIANT BROWSERS */
176 div
.vectorTabs a span
{
177 display: inline-block
;
182 div
.vectorTabs a
> span
{
186 div
.vectorTabs li
.selected a
,
187 div
.vectorTabs li
.selected a span
,
188 div
.vectorTabs li
.selected
a:visited
189 div
.vectorTabs li
.selected
a:visited span
{
191 text-decoration: none
;
193 div
.vectorTabs li
.new a
,
194 div
.vectorTabs li
.new a span
,
195 div
.vectorTabs li
.new
a:visited
,
196 div
.vectorTabs li
.new
a:visited span
{
199 /* Variants and Actions */
204 background-image: url
(images
/arrow-down-icon
.png
);
205 background-position: center center
;
206 background-repeat: no-repeat
;
208 body
.rtl div
.vectorMenu
{
211 /* OVERRIDDEN BY COMPLIANT BROWSERS */
213 #head div
.vectorMenu h5
{
215 background-image: url
(images
/tab-break
.png
);
216 background-position: bottom left
;
217 background-repeat: no-repeat
;
220 #head div
.vectorMenu h5
{
223 /* OVERRIDDEN BY COMPLIANT BROWSERS */
225 div
.vectorMenu h5 a
{
226 display: inline-block
;
229 text-decoration: none
;
230 background-image: url
(images
/tab-break
.png
);
231 background-position: bottom right
;
232 background-repeat: no-repeat
;
235 div
.vectorMenu h5
> a
{
238 div
.vectorMenu div
.menu
{
244 /* OVERRIDDEN BY COMPLIANT BROWSERS */
245 body
.rtl div
.vectorMenu div
.menu
{
249 body
.rtl div
.vectorMenu
> div
.menu
{
252 /* Fixes old versions of FireFox */
253 body
.rtl div
.vectorMenu
> div
.menu
,
257 div
.vectorMenu:hover div
.menu
{
262 background-color: white
;
263 border: solid
1px silver
;
266 list-style-image: none
;
267 list-style-type: none
;
273 /* Fixes old versions of FireFox */
278 /* Returns things back to normal in modern versions of FireFox */
290 /* OVERRIDDEN BY COMPLIANT BROWSERS */
291 div
.vectorMenu li a
{
292 display: inline-block
;
297 div
.vectorMenu li
> a
{
300 div
.vectorMenu li a
{
305 div
.vectorMenu li
.selected a
,
306 div
.vectorMenu li
.selected
a:visited
{
308 text-decoration: none
;
330 border: solid
1px #AAAAAA;
331 background-color: white
;
332 background-image: url
(images
/search-fade
.png
);
333 background-position: top right
;
334 background-repeat: repeat-x
;
336 #simpleSearch label
{
340 #simpleSearch input#searchInput
{
347 background-color: transparent
;
349 /* OVERRIDDEN BY COMPLIANT BROWSERS */
350 #simpleSearch button#searchButton
{
357 background-color: transparent
;
358 background-image: url
(images
/search-rtl
.png
);
359 background-position: center center
;
360 background-repeat: no-repeat
;
363 #simpleSearch > button#searchButton
{
366 .suggestions-special .special-label {
370 .suggestions-special .special-query {
374 .suggestions-special .special-hover {
375 background-color: silver
;
386 padding-bottom: 1.5em;
388 #panel div
.portal h5
{
393 padding-right: 1.75em;
398 #panel div
.portal div
.body
{
401 margin-right: 1.25em;
402 background-image: url
(images
/portal-break-rtl
.png
);
403 background-repeat: no-repeat
;
404 background-position: top right
;
406 #panel div
.portal div
.body ul
{
408 list-style-image: none
;
409 list-style-type: none
;
413 #panel div
.portal div
.body ul li
{
414 line-height: 1.125em;
416 padding-bottom: 0.5em;
421 #panel div
.portal div
.body ul li a
{
424 #panel div
.portal div
.body ul li
a:visited
{
432 background-image: url
(images/border.png);
433 background-position: top right
;
434 background-repeat: repeat-x
;
438 list-style-image: none
;
439 list-style-type: none
;
447 padding-bottom: 0.5em;
451 #footer #footer-icons
{
454 #footer #footer-places
{
457 #footer #footer-info li
{
460 #footer #footer-icons li
{
465 #footer #footer-places li
{
482 background-repeat: no-repeat
;
483 background-position: center center
;
484 text-decoration: none
;
489 * The following code is highly modified from monobook. It would be nice if the
490 * preftoc id was more human readable like preferences-toc for instance,
491 * howerver this would require backporting the other skins.
500 margin: 0 !important
;
501 padding: 0 !important
;
502 background-image: url
(images
/preferences-break
.png
);
503 background-position: bottom right
;
504 background-repeat: no-repeat
;
514 list-style-type: none
;
515 list-style-image: none
;
516 background-image: url
(images
/preferences-break
.png
);
517 background-position: bottom left
;
518 background-repeat: no-repeat
;
521 #preftoc li:first-child
{
526 display: inline-block
;
530 text-decoration: none
;
531 background-image: none
;
535 text-decoration: underline
;
537 #preftoc li
.selected a
{
538 background-image: url
(images
/preferences-fade
.png
);
539 background-position: bottom
;
540 background-repeat: repeat-x
;
542 text-decoration: none
;
550 border: solid
1px #cccccc;
551 background-color: #f9f9f9;
552 background-image: url
(images
/preferences-base
.png
);
554 #preferences fieldset
.prefsection
{
559 #preferences fieldset
.prefsection fieldset
{
561 border-top: solid
1px #cccccc;
563 #preferences legend
{
566 #preferences fieldset
.prefsection legend
.mainLegend
{
570 padding-right: 0.5em;
573 #preferences td
.htmlform-tip
{
578 #preferences div
.mw-prefs-buttons
{
581 #preferences div
.mw-prefs-buttons input
{
586 * Styles for the user login and create account forms
588 #userlogin, #userloginForm
{
589 border: solid
1px #cccccc;
603 * The following code is slightly modified from monobook
614 text-decoration: none
;
625 text-decoration: underline
;
630 a
.new
, #p-personal a
.new
{
633 a
.new:visited
, #p-personal a
.new:visited
{
637 /* Inline Elements */
640 vertical-align: middle
;
645 background-color: #aaa;
647 margin: .2em 0 .2em 0;
650 /* Structural Elements */
662 padding-bottom: .17em;
663 border-bottom: 1px solid
#aaa;
666 h1
{ font-size: 188%; }
667 h1
.editsection
{ font-size: 53%; }
668 h2
{ font-size: 150%; }
669 h2
.editsection
{ font-size: 67%; }
677 h3
{ font-size: 132%; }
678 h3
.editsection
{ font-size: 76%; font-weight: normal
; }
679 h4
{ font-size: 116%; }
680 h4
.editsection
{ font-size: 86%; font-weight: normal
; }
681 h5
{ font-size: 100%; }
682 h5
.editsection
{ font-weight: normal
; }
683 h6
{ font-size: 80%; }
684 h6
.editsection
{ font-size: 125%; font-weight: normal
; }
686 margin: .4em 0 .5em 0;
695 border-bottom: 1px dotted black
;
701 font-family: Times
, "Times New Roman", serif
;
706 font-family: Times, "Times New Roman", serif;
710 background-color: #f9f9f9;
714 border: 1px dashed
#2f6fab;
716 background-color: #f9f9f9;
721 list-style-type: square
;
722 margin: .3em 1.5em 0 0;
724 list-style-image: url
(images
/bullet-icon
.png
);
728 margin: .3em 3.2em 0 0;
730 list-style-image: none
;
752 /* we don't want the bottom borders of <h2>s to be visible through
754 background-color: white
;
757 /* but keep table layouts in forms clean... */
762 border: 1px solid
#2f6fab;
769 padding: 0 0.5em 0.5em;
786 /* Table of Contents */
790 border: 1px solid
#aaa;
791 background-color: #f9f9f9;
811 list-style-type: none
;
812 list-style-image: none
;
826 div
.floatright
, table
.floatright
{
830 margin: 0 .5em .5em 0;
833 div
.floatright p
{ font-style: italic
; }
834 div
.floatleft
, table
.floatleft
{
838 margin: 0 0 .5em .5em;
841 div
.floatleft p
{ font-style: italic
; }
848 background-color: transparent
;
851 border: 1px solid
#ccc;
852 padding: 3px !important
;
853 background-color: #f9f9f9;
859 border: 1px solid
#ccc;
865 padding: 3px !important
;
870 border: none
!important
;
871 background: none
!important
;
873 div
.magnify a
, div
.magnify img
{
875 border: none
!important
;
876 background: none
!important
;
881 border-width: .5em 1.4em .8em 0;
887 border-width: .5em 0 .8em 1.4em;
890 border: 1px solid
#dddddd;
903 background-color: #ffce7b;
904 border: 1px solid
#ffa500;
909 vertical-align: middle
;
921 margin-bottom: 0.9em;
925 border: 1px solid
#aaa;
926 background-color: #f9f9f9;
938 #contentSub, #contentSub2
{
941 margin: 0 1em 1.4em 0;
957 /* Small for tables and similar */
964 /* Edge Cases for Content */
975 margin-bottom: 0.1em;
981 #content a
[href ^
="gopher://"] {
982 background: url
(images
/external-link-rtl-icon
.png
) center left no-repeat
;
985 #content a
[href ^
="https://"],
987 background: url
(images
/lock-icon
.png
) center left no-repeat
;
990 #content a
[href ^
="mailto:"],
992 background: url
(images
/mail-icon
.png
) center left no-repeat
;
995 #content a
[href ^
="news://"] {
996 background: url
(images
/news-icon
.png
) center left no-repeat
;
999 #content a
[href ^
="ftp://"],
1001 background: url
(images
/file-icon
.png
) center left no-repeat
;
1002 padding: 0 0 0 18px;
1004 #content a
[href ^
="irc://"],
1005 #content a
.extiw
[href ^
="irc://"],
1007 background: url
(images
/talk-icon
.png
) center left no-repeat
;
1008 padding: 0 0 0 18px;
1010 #content a
.external
[href $
=".ogg"], #content a
.external
[href $
=".OGG"],
1011 #content a
.external
[href $
=".mid"], #content a
.external
[href $
=".MID"],
1012 #content a
.external
[href $
=".midi"], #content a
.external
[href $
=".MIDI"],
1013 #content a
.external
[href $
=".mp3"], #content a
.external
[href $
=".MP3"],
1014 #content a
.external
[href $
=".wav"], #content a
.external
[href $
=".WAV"],
1015 #content a
.external
[href $
=".wma"], #content a
.external
[href $
=".WMA"],
1017 background: url
("images/audio-icon.png") center left no-repeat
;
1018 padding: 0 0 0 18px;
1020 #content a
.external
[href $
=".ogm"], #content a
.external
[href $
=".OGM"],
1021 #content a
.external
[href $
=".avi"], #content a
.external
[href $
=".AVI"],
1022 #content a
.external
[href $
=".mpeg"], #content a
.external
[href $
=".MPEG"],
1023 #content a
.external
[href $
=".mpg"], #content a
.external
[href $
=".MPG"],
1025 background: url
("images/video-icon.png") center left no-repeat
;
1026 padding: 0 0 0 18px;
1028 #content a
.external
[href $
=".pdf"], #content a
.external
[href $
=".PDF"],
1029 #content a
.external
[href
*=".pdf#"], #content a
.external
[href
*=".PDF#"],
1030 #content a
.external
[href
*=".pdf?"], #content a
.external
[href
*=".PDF?"],
1032 background: url
("images/document-icon.png") center left no-repeat
;
1033 padding: 0 0 0 18px;
1035 /* Interwiki Styling (Disabled) */
1037 #content a
.extiw:active
{
1042 #content a
.external
{
1045 #content .printfooter
{
1048 /* Icon for Usernames */
1052 background: url
(images
/user-icon
.png
) right top no-repeat
;
1053 padding-right: 15px !important
;
1054 text-transform: none
;
1058 border: 1px solid
#aaa;
1059 background-color: #f9f9f9;
1074 /* Watch/Unwatch Icon Styling */
1088 #ca-unwatch.icon a
{
1089 background-image: url
(images
/watch-icons
.png
);
1090 background-position: -43px 60%;
1093 background-image: url
(images
/watch-icons
.png
);
1094 background-position: 5px 60%;
1096 #ca-unwatch.icon
a:hover
{
1097 background-image: url
(images
/watch-icons
.png
);
1098 background-position: -67px 60%;
1100 #ca-watch.icon
a:hover
{
1101 background-image: url
(images
/watch-icons
.png
);
1102 background-position: -19px 60%;
1104 #ca-unwatch.icon a
.loading
,
1105 #ca-watch.icon a
.loading
{
1106 background-image: url
(images
/watch-icon-loading
.gif
);
1107 background-position: center
60%;
1109 #ca-unwatch.icon a span
,
1110 #ca-watch.icon a span
{
1114 background-image:url
(images
/tab-break
.png
);
1115 background-position:left bottom
;
1116 background-repeat:no-repeat
;