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?
1);
34 background-image: url
(images
/border
.png?
1);
35 background-position: top right
;
36 background-repeat: repeat-y
;
37 background-color: white
;
44 background-color: white
;
45 background-image: url
(images
/page-fade
.png?
1);
46 background-position: bottom right
;
47 background-repeat: repeat-x
;
53 background-image: url
(images
/border
.png?
1);
54 background-position: bottom right
;
55 background-repeat: repeat-x
;
67 /* Hide empty portlets */
98 /* Navigation Containers */
108 /* Navigation Labels */
110 div
.vectorMenu h5 span
{
113 /* Namespaces and Views */
120 background-image: url
(images
/tab-break
.png?
1);
121 background-position: bottom right
;
122 background-repeat: no-repeat
;
136 div
.vectorTabs ul li
{
139 /* OVERRIDDEN BY COMPLIANT BROWSERS */
140 div
.vectorTabs ul li
{
141 line-height: 1.125em;
142 display: inline-block
;
146 background-color: #f3f3f3;
147 background-image: url
(images
/tab-normal-fade
.png?
1);
148 background-position: bottom right
;
149 background-repeat: repeat-x
;
153 div
.vectorTabs ul
> li
{
156 div
.vectorTabs li
.selected
{
157 background-image: url
(images
/tab-current-fade
.png?
1);
159 /* OVERRIDDEN BY COMPLIANT BROWSERS */
160 div
.vectorTabs li a
{
161 display: inline-block
;
163 padding-right: 0.5em;
165 background-image: url
(images
/tab-break
.png?
1);
166 background-position: bottom left
;
167 background-repeat: no-repeat
;
173 div
.vectorTabs li a
{
177 div
.vectorTabs li
> a
{
180 /* OVERRIDDEN BY COMPLIANT BROWSERS */
181 div
.vectorTabs span a
{
182 display: inline-block
;
187 div
.vectorTabs span
> a
{
191 div
.vectorTabs li
.selected a
,
192 div
.vectorTabs li
.selected
a:visited
{
194 text-decoration: none
;
196 div
.vectorTabs li
.new a
,
197 div
.vectorTabs li
.new
a:visited
{
200 /* Variants and Actions */
205 background-image: url
(images
/arrow-down-icon
.png?
1);
206 background-position: 100% 60%;
207 background-repeat: no-repeat
;
211 body
.rtl div
.vectorMenu
{
214 /* OVERRIDDEN BY COMPLIANT BROWSERS */
216 div#mw-head div
.vectorMenu h5
{
218 background-image: url
(images
/tab-break
.png?
1);
219 background-repeat: no-repeat
;
222 div#mw-head div
.vectorMenu
> h5
{
223 background-image: none
;
225 div#mw-head div
.vectorMenu h5
{
226 background-position: bottom right
;
229 div#mw-head div
.vectorMenu h4
{
230 display: inline-block
;
233 padding-right: 0.5em;
234 padding-top: 1.375em;
238 /* OVERRIDDEN BY COMPLIANT BROWSERS */
240 div
.vectorMenu h5 a
{
241 display: inline-block
;
244 text-decoration: none
;
245 background-image: url
(images
/tab-break
.png?
1);
246 background-repeat: no-repeat
;
249 background-position: bottom left
;
252 div
.vectorMenu h5
> a
{
255 div
.vectorMenu div
.menu
{
261 /* OVERRIDDEN BY COMPLIANT BROWSERS */
263 body
.rtl div
.vectorMenu div
.menu
{
268 body
.rtl div
.vectorMenu
> div
.menu
{
271 /* Fixes old versions of FireFox */
273 body
.rtl div
.vectorMenu
> div
.menu
,
277 div
.vectorMenu:hover div
.menu
,
278 div
.vectorMenu:focus div
.menu
{
283 background-color: white
;
284 border: solid
1px silver
;
287 list-style-image: none
;
288 list-style-type: none
;
294 /* Fixes old versions of FireFox */
299 /* Returns things back to normal in modern versions of FireFox */
311 /* OVERRIDDEN BY COMPLIANT BROWSERS */
312 div
.vectorMenu li a
{
313 display: inline-block
;
318 div
.vectorMenu li
> a
{
321 div
.vectorMenu li a
{
326 div
.vectorMenu li
.selected a
,
327 div
.vectorMenu li
.selected
a:visited
{
329 text-decoration: none
;
351 min-height: 1px; /* Gotta trigger hasLayout for IE7 */
352 border: solid
1px #AAAAAA;
353 background-color: white
;
354 background-image: url
(images
/search-fade
.png?
1);
355 background-position: top right
;
356 background-repeat: repeat-x
;
358 div#simpleSearch label
{
360 * DON'T PANIC! Browsers that won't scale this properly are the same browsers that have JS issues that prevent
361 * this from ever being shown anyways.
366 div#simpleSearch
.placeholder
{
369 div#simpleSearch
input::-webkit-input-placeholder
{
372 div#simpleSearch input#searchInput
{
378 * DON'T PANIC! Browsers that won't scale this properly are the same browsers that have JS issues that prevent
379 * this from ever being shown anyways.
383 background-color: transparent
;
385 /* OVERRIDDEN BY COMPLIANT BROWSERS */
386 div#simpleSearch button#searchButton
{
391 background-color: transparent
;
394 div#simpleSearch button#searchButton img
{
398 vertical-align: middle
;
408 div#mw-panel div
.portal
{
409 padding-bottom: 1.5em;
412 div#mw-panel div
.portal h5
{
417 padding-right: 1.75em;
422 div#mw-panel div
.portal div
.body
{
425 margin-right: 1.25em;
426 background-image: url
(images
/portal-break
.png?
1);
427 background-repeat: no-repeat
;
428 background-position: top right
;
430 div#mw-panel div
.portal div
.body ul
{
432 list-style-image: none
;
433 list-style-type: none
;
437 div#mw-panel div
.portal div
.body ul li
{
438 line-height: 1.125em;
440 padding-bottom: 0.5em;
445 div#mw-panel div
.portal div
.body ul li a
{
448 div#mw-panel div
.portal div
.body ul li
a:visited
{
456 background-image: url
(images
/border
.png?
1);
457 background-position: top right
;
458 background-repeat: repeat-x
;
463 list-style-image: none
;
464 list-style-type: none
;
472 padding-bottom: 0.5em;
476 div#footer #footer-icons
{
480 body
.ltr div#footer #footer-places
{
483 div#footer #footer-info li
{
486 div#footer #footer-icons li
{
491 div#footer #footer-places li
{
508 background-repeat: no-repeat
;
509 background-position: center center
;
510 text-decoration: none
;
515 * The following code is highly modified from monobook. It would be nice if the
516 * preftoc id was more human readable like preferences-toc for instance,
517 * howerver this would require backporting the other skins.
526 margin: 0 !important
;
527 padding: 0 !important
;
528 background-image: url
(images
/preferences-break
.png?
1);
529 background-position: bottom right
;
530 background-repeat: no-repeat
;
540 list-style-type: none
;
541 list-style-image: none
;
542 background-image: url
(images
/preferences-break
.png?
1);
543 background-position: bottom left
;
544 background-repeat: no-repeat
;
547 #preftoc li:first-child
{
552 display: inline-block
;
556 text-decoration: none
;
557 background-image: none
;
560 #preftoc a:hover
, #preftoc
a:focus
{
561 text-decoration: underline
;
563 #preftoc li
.selected a
{
564 background-image: url
(images
/preferences-fade
.png?
1);
565 background-position: bottom
;
566 background-repeat: repeat-x
;
568 text-decoration: none
;
576 border: solid
1px #cccccc;
577 background-color: #f9f9f9;
578 background-image: url
(images
/preferences-base
.png?
1);
580 #preferences fieldset
.prefsection
{
585 #preferences fieldset
.prefsection fieldset
{
587 border-top: solid
1px #cccccc;
589 #preferences legend
{
592 #preferences fieldset
.prefsection legend
.mainLegend
{
596 padding-right: 0.5em;
599 #preferences td
.htmlform-tip
{
604 #preferences div
.mw-prefs-buttons
{
607 #preferences div
.mw-prefs-buttons input
{
612 * Styles for the user login and create account forms
614 #userlogin, #userloginForm
{
615 border: solid
1px #cccccc;
629 * The following code is slightly modified from monobook
640 text-decoration: none
;
651 text-decoration: underline
;
656 a
.new
, #p-personal a
.new
{
659 a
.new:visited
, #p-personal a
.new:visited
{
663 /* Inline Elements */
666 vertical-align: middle
;
671 background-color: #aaa;
673 margin: .2em 0 .2em 0;
676 /* Structural Elements */
688 padding-bottom: .17em;
689 border-bottom: 1px solid
#aaa;
692 h1
{ font-size: 188%; }
693 h1
.editsection
{ font-size: 53%; }
694 h2
{ font-size: 150%; }
695 h2
.editsection
{ font-size: 67%; }
703 h3
{ font-size: 132%; }
704 h3
.editsection
{ font-size: 76%; font-weight: normal
; }
705 h4
{ font-size: 116%; }
706 h4
.editsection
{ font-size: 86%; font-weight: normal
; }
707 h5
{ font-size: 100%; }
708 h5
.editsection
{ font-weight: normal
; }
709 h6
{ font-size: 80%; }
710 h6
.editsection
{ font-size: 125%; font-weight: normal
; }
712 margin: .4em 0 .5em 0;
721 border-bottom: 1px dotted black
;
727 font-family: Times
, "Times New Roman", serif
;
732 font-family: Times, "Times New Roman", serif;
737 * It's important for this rule to first reference an actual font name, some browsers will render the monospace text
738 * too small otherwise, namely Firefox, Chrome and Safari
740 font-family: monospace
, "Courier New";
743 background-color: #f9f9f9;
747 border: 1px dashed
#2f6fab;
749 background-color: #f9f9f9;
754 list-style-type: square
;
755 margin: .3em 1.5em 0 0;
757 list-style-image: url
(images
/bullet-icon
.png?
1);
761 margin: .3em 3.2em 0 0;
763 list-style-image: none
;
785 /* we don't want the bottom borders of <h2>s to be visible through
787 background-color: white
;
790 /* but keep table layouts in forms clean... */
795 border: 1px solid
#2f6fab;
802 padding: 0 0.5em 0.5em;
819 /* Table of Contents */
823 border: 1px solid
#aaa;
824 background-color: #f9f9f9;
844 list-style-type: none
;
845 list-style-image: none
;
859 div
.floatright
, table
.floatright
{
863 margin: 0 .5em .5em 0;
866 div
.floatright p
{ font-style: italic
; }
867 div
.floatleft
, table
.floatleft
{
871 margin: 0 0 .5em .5em;
874 div
.floatleft p
{ font-style: italic
; }
881 background-color: transparent
;
884 border: 1px solid
#ccc;
885 padding: 3px !important
;
886 background-color: #f9f9f9;
892 border: 1px solid
#ccc;
898 padding: 3px !important
;
903 border: none
!important
;
904 background: none
!important
;
906 div
.magnify a
, div
.magnify img
{
908 border: none
!important
;
909 background: none
!important
;
915 border-width: .5em 0 .8em 1.4em;
922 border-width: .5em 1.4em .8em 0;
925 border: 1px solid
#dddddd;
938 background-color: #ffce7b;
939 border: 1px solid
#ffa500;
944 vertical-align: middle
;
946 /* Site Notice (includes notices from CentralNotice extension) */
953 margin-bottom: 0.9em;
957 border: 1px solid
#aaa;
958 background-color: #f9f9f9;
970 #contentSub, #contentSub2
{
973 margin: 0 1em 1.4em 0;
989 /* Small for tables and similar */
996 /* Edge Cases for Content */
1001 margin-bottom: .3em;
1007 margin-bottom: 0.1em;
1012 div#content a
.external
,
1013 div#content a
[href ^
="gopher://"] {
1014 background: url
(images
/external-link-rtl-icon
.png?
2) center left no-repeat
;
1015 padding: 0 0 0 13px;
1017 div#content a
[href ^
="https://"],
1019 background: url
(images
/lock-icon
.png?
2) center left no-repeat
;
1020 padding: 0 0 0 13px;
1022 div#content a
[href ^
="mailto:"],
1024 background: url
(images
/mail-icon
.png?
2) center left no-repeat
;
1025 padding: 0 0 0 13px;
1027 div#content a
[href ^
="news://"] {
1028 background: url
(images
/news-icon
.png?
2) center left no-repeat
;
1029 padding: 0 0 0 13px;
1031 div#content a
[href ^
="ftp://"],
1033 background: url
(images
/file-icon
.png?
2) center left no-repeat
;
1034 padding: 0 0 0 13px;
1036 div#content a
[href ^
="irc://"],
1037 div#content a
.extiw
[href ^
="irc://"],
1039 background: url
(images
/talk-icon
.png?
2) center left no-repeat
;
1040 padding: 0 0 0 13px;
1042 div#content a
.external
[href $
=".ogg"], div#content a
.external
[href $
=".OGG"],
1043 div#content a
.external
[href $
=".mid"], div#content a
.external
[href $
=".MID"],
1044 div#content a
.external
[href $
=".midi"], div#content a
.external
[href $
=".MIDI"],
1045 div#content a
.external
[href $
=".mp3"], div#content a
.external
[href $
=".MP3"],
1046 div#content a
.external
[href $
=".wav"], div#content a
.external
[href $
=".WAV"],
1047 div#content a
.external
[href $
=".wma"], div#content a
.external
[href $
=".WMA"],
1049 background: url
("images/audio-icon.png?2") center left no-repeat
;
1050 padding: 0 0 0 13px;
1052 div#content a
.external
[href $
=".ogm"], div#content a
.external
[href $
=".OGM"],
1053 div#content a
.external
[href $
=".avi"], div#content a
.external
[href $
=".AVI"],
1054 div#content a
.external
[href $
=".mpeg"], div#content a
.external
[href $
=".MPEG"],
1055 div#content a
.external
[href $
=".mpg"], div#content a
.external
[href $
=".MPG"],
1057 background: url
("images/video-icon.png?2") center left no-repeat
;
1058 padding: 0 0 0 13px;
1060 div#content a
.external
[href $
=".pdf"], div#content a
.external
[href $
=".PDF"],
1061 div#content a
.external
[href
*=".pdf#"], div#content a
.external
[href
*=".PDF#"],
1062 div#content a
.external
[href
*=".pdf?"], div#content a
.external
[href
*=".PDF?"],
1064 background: url
("images/document-icon.png?2") center left no-repeat
;
1065 padding: 0 0 0 13px;
1067 /* Interwiki Styling (Disabled) */
1068 div#content a
.extiw
,
1069 div#content a
.extiw:active
{
1074 div#content a
.external
{
1077 div#content
.printfooter
{
1080 /* Icon for Usernames */
1084 background: url
(images
/user-icon
.png?
1) right top no-repeat
;
1085 padding-right: 15px !important
;
1086 text-transform: none
;
1090 border: 1px solid
#aaa;
1091 background-color: #f9f9f9;
1106 /* Watch/Unwatch Icon Styling */
1118 /* This hides the text but shows the background image */
1123 #ca-unwatch.icon a
{
1124 background-image: url
(images
/watch-icons
.png?
1);
1125 background-position: -43px 60%;
1128 background-image: url
(images
/watch-icons
.png?
1);
1129 background-position: 5px 60%;
1131 #ca-unwatch.icon
a:hover
,
1132 #ca-unwatch.icon
a:focus
{
1133 background-image: url
(images
/watch-icons
.png?
1);
1134 background-position: -67px 60%;
1136 #ca-watch.icon
a:hover
,
1137 #ca-watch.icon
a:focus
{
1138 background-image: url
(images
/watch-icons
.png?
1);
1139 background-position: -19px 60%;
1141 #ca-unwatch.icon a
.loading
,
1142 #ca-watch.icon a
.loading
{
1143 background-image: url
(images
/watch-icon-loading
.gif?
1);
1144 background-position: center
60%;
1146 #ca-unwatch.icon a span
,
1147 #ca-watch.icon a span
{
1151 background-image:url
(images
/tab-break
.png?
1);
1152 background-position:left bottom
;
1153 background-repeat:no-repeat
;