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
;
43 background-color: white
;
44 background-image: url
(images
/page-fade
.png?
1);
45 background-position: bottom right
;
46 background-repeat: repeat-x
;
52 background-image: url
(images
/border
.png?
1);
53 background-position: bottom right
;
54 background-repeat: repeat-x
;
66 /* Hide empty portlets */
97 /* Navigation Containers */
107 /* Navigation Labels */
109 div
.vectorMenu h5 span
{
112 /* Namespaces and Views */
119 background-image: url
(images
/tab-break
.png?
1);
120 background-position: bottom right
;
121 background-repeat: no-repeat
;
135 div
.vectorTabs ul li
{
138 /* OVERRIDDEN BY COMPLIANT BROWSERS */
139 div
.vectorTabs ul li
{
140 line-height: 1.125em;
141 display: inline-block
;
145 background-color: #f3f3f3;
146 background-image: url
(images
/tab-normal-fade
.png?
1);
147 background-position: bottom right
;
148 background-repeat: repeat-x
;
152 div
.vectorTabs ul
> li
{
155 div
.vectorTabs li
.selected
{
156 background-image: url
(images
/tab-current-fade
.png?
1);
158 /* OVERRIDDEN BY COMPLIANT BROWSERS */
159 div
.vectorTabs li a
{
160 display: inline-block
;
162 padding-right: 0.5em;
164 background-image: url
(images
/tab-break
.png?
1);
165 background-position: bottom left
;
166 background-repeat: no-repeat
;
172 div
.vectorTabs li a
{
176 div
.vectorTabs li
> a
{
179 /* OVERRIDDEN BY COMPLIANT BROWSERS */
180 div
.vectorTabs span a
{
181 display: inline-block
;
186 div
.vectorTabs span
> a
{
190 div
.vectorTabs li
.selected a
,
191 div
.vectorTabs li
.selected
a:visited
{
193 text-decoration: none
;
195 div
.vectorTabs li
.new a
,
196 div
.vectorTabs li
.new
a:visited
{
199 /* Variants and Actions */
204 background-image: url
(images
/arrow-down-icon
.png?
1);
205 background-position: 100% 60%;
206 background-repeat: no-repeat
;
210 body
.rtl div
.vectorMenu
{
213 /* OVERRIDDEN BY COMPLIANT BROWSERS */
215 div#mw-head div
.vectorMenu h5
{
217 background-image: url
(images
/tab-break
.png?
1);
218 background-repeat: no-repeat
;
221 div#mw-head div
.vectorMenu
> h5
{
222 background-image: none
;
224 div#mw-head div
.vectorMenu h5
{
225 background-position: bottom right
;
228 div#mw-head div
.vectorMenu h4
{
229 display: inline-block
;
232 padding-right: 0.5em;
233 padding-top: 1.375em;
237 /* OVERRIDDEN BY COMPLIANT BROWSERS */
239 div
.vectorMenu h5 a
{
240 display: inline-block
;
243 text-decoration: none
;
244 background-image: url
(images
/tab-break
.png?
1);
245 background-repeat: no-repeat
;
248 background-position: bottom left
;
251 div
.vectorMenu h5
> a
{
254 div
.vectorMenu div
.menu
{
260 /* OVERRIDDEN BY COMPLIANT BROWSERS */
262 body
.rtl div
.vectorMenu div
.menu
{
267 body
.rtl div
.vectorMenu
> div
.menu
{
270 /* Fixes old versions of FireFox */
272 body
.rtl div
.vectorMenu
> div
.menu
,
276 div
.vectorMenu:hover div
.menu
{
281 background-color: white
;
282 border: solid
1px silver
;
285 list-style-image: none
;
286 list-style-type: none
;
292 /* Fixes old versions of FireFox */
297 /* Returns things back to normal in modern versions of FireFox */
309 /* OVERRIDDEN BY COMPLIANT BROWSERS */
310 div
.vectorMenu li a
{
311 display: inline-block
;
316 div
.vectorMenu li
> a
{
319 div
.vectorMenu li a
{
324 div
.vectorMenu li
.selected a
,
325 div
.vectorMenu li
.selected
a:visited
{
327 text-decoration: none
;
349 min-height: 1px; /* Gotta trigger hasLayout for IE7 */
350 border: solid
1px #AAAAAA;
351 background-color: white
;
352 background-image: url
(images
/search-fade
.png?
1);
353 background-position: top right
;
354 background-repeat: repeat-x
;
356 div#simpleSearch label
{
358 * DON'T PANIC! Browsers that won't scale this properly are the same browsers that have JS issues that prevent
359 * this from ever being shown anyways.
364 div#simpleSearch
.placeholder
{
367 div#simpleSearch
input::-webkit-input-placeholder
{
370 div#simpleSearch input#searchInput
{
376 * DON'T PANIC! Browsers that won't scale this properly are the same browsers that have JS issues that prevent
377 * this from ever being shown anyways.
381 background-color: transparent
;
383 /* OVERRIDDEN BY COMPLIANT BROWSERS */
384 div#simpleSearch button#searchButton
{
386 margin: 5px 5px 0 5px;
391 background-color: transparent
;
392 background-image: url
(images
/search-rtl
.png?
1);
393 background-position: center center
;
394 background-repeat: no-repeat
;
404 div#mw-panel div
.portal
{
405 padding-bottom: 1.5em;
407 div#mw-panel div
.portal h5
{
412 padding-right: 1.75em;
417 div#mw-panel div
.portal div
.body
{
420 margin-right: 1.25em;
421 background-image: url
(images
/portal-break
.png?
1);
422 background-repeat: no-repeat
;
423 background-position: top right
;
425 div#mw-panel div
.portal div
.body ul
{
427 list-style-image: none
;
428 list-style-type: none
;
432 div#mw-panel div
.portal div
.body ul li
{
433 line-height: 1.125em;
435 padding-bottom: 0.5em;
440 div#mw-panel div
.portal div
.body ul li a
{
443 div#mw-panel div
.portal div
.body ul li
a:visited
{
451 background-image: url
(images
/border
.png?
1);
452 background-position: top right
;
453 background-repeat: repeat-x
;
457 list-style-image: none
;
458 list-style-type: none
;
466 padding-bottom: 0.5em;
470 div#footer #footer-icons
{
474 body
.ltr div#footer #footer-places
{
477 div#footer #footer-info li
{
480 div#footer #footer-icons li
{
485 div#footer #footer-places li
{
502 background-repeat: no-repeat
;
503 background-position: center center
;
504 text-decoration: none
;
509 * The following code is highly modified from monobook. It would be nice if the
510 * preftoc id was more human readable like preferences-toc for instance,
511 * howerver this would require backporting the other skins.
520 margin: 0 !important
;
521 padding: 0 !important
;
522 background-image: url
(images
/preferences-break
.png?
1);
523 background-position: bottom right
;
524 background-repeat: no-repeat
;
534 list-style-type: none
;
535 list-style-image: none
;
536 background-image: url
(images
/preferences-break
.png?
1);
537 background-position: bottom left
;
538 background-repeat: no-repeat
;
541 #preftoc li:first-child
{
546 display: inline-block
;
550 text-decoration: none
;
551 background-image: none
;
555 text-decoration: underline
;
557 #preftoc li
.selected a
{
558 background-image: url
(images
/preferences-fade
.png?
1);
559 background-position: bottom
;
560 background-repeat: repeat-x
;
562 text-decoration: none
;
570 border: solid
1px #cccccc;
571 background-color: #f9f9f9;
572 background-image: url
(images
/preferences-base
.png?
1);
574 #preferences fieldset
.prefsection
{
579 #preferences fieldset
.prefsection fieldset
{
581 border-top: solid
1px #cccccc;
583 #preferences legend
{
586 #preferences fieldset
.prefsection legend
.mainLegend
{
590 padding-right: 0.5em;
593 #preferences td
.htmlform-tip
{
598 #preferences div
.mw-prefs-buttons
{
601 #preferences div
.mw-prefs-buttons input
{
606 * Styles for the user login and create account forms
608 #userlogin, #userloginForm
{
609 border: solid
1px #cccccc;
623 * The following code is slightly modified from monobook
634 text-decoration: none
;
645 text-decoration: underline
;
650 a
.new
, #p-personal a
.new
{
653 a
.new:visited
, #p-personal a
.new:visited
{
657 /* Inline Elements */
660 vertical-align: middle
;
665 background-color: #aaa;
667 margin: .2em 0 .2em 0;
670 /* Structural Elements */
682 padding-bottom: .17em;
683 border-bottom: 1px solid
#aaa;
686 h1
{ font-size: 188%; }
687 h1
.editsection
{ font-size: 53%; }
688 h2
{ font-size: 150%; }
689 h2
.editsection
{ font-size: 67%; }
697 h3
{ font-size: 132%; }
698 h3
.editsection
{ font-size: 76%; font-weight: normal
; }
699 h4
{ font-size: 116%; }
700 h4
.editsection
{ font-size: 86%; font-weight: normal
; }
701 h5
{ font-size: 100%; }
702 h5
.editsection
{ font-weight: normal
; }
703 h6
{ font-size: 80%; }
704 h6
.editsection
{ font-size: 125%; font-weight: normal
; }
706 margin: .4em 0 .5em 0;
715 border-bottom: 1px dotted black
;
721 font-family: Times
, "Times New Roman", serif
;
726 font-family: Times, "Times New Roman", serif;
731 * It's important for this rule to first reference an actual font name, some browsers will render the monospace text
732 * too small otherwise, namely Firefox, Chrome and Safari
734 font-family: monospace
, "Courier New";
737 background-color: #f9f9f9;
741 border: 1px dashed
#2f6fab;
743 background-color: #f9f9f9;
748 list-style-type: square
;
749 margin: .3em 1.5em 0 0;
751 list-style-image: url
(images
/bullet-icon
.png?
1);
755 margin: .3em 3.2em 0 0;
757 list-style-image: none
;
779 /* we don't want the bottom borders of <h2>s to be visible through
781 background-color: white
;
784 /* but keep table layouts in forms clean... */
789 border: 1px solid
#2f6fab;
796 padding: 0 0.5em 0.5em;
813 /* Table of Contents */
817 border: 1px solid
#aaa;
818 background-color: #f9f9f9;
838 list-style-type: none
;
839 list-style-image: none
;
853 div
.floatright
, table
.floatright
{
857 margin: 0 .5em .5em 0;
860 div
.floatright p
{ font-style: italic
; }
861 div
.floatleft
, table
.floatleft
{
865 margin: 0 0 .5em .5em;
868 div
.floatleft p
{ font-style: italic
; }
875 background-color: transparent
;
878 border: 1px solid
#ccc;
879 padding: 3px !important
;
880 background-color: #f9f9f9;
886 border: 1px solid
#ccc;
892 padding: 3px !important
;
897 border: none
!important
;
898 background: none
!important
;
900 div
.magnify a
, div
.magnify img
{
902 border: none
!important
;
903 background: none
!important
;
909 border-width: .5em 0 .8em 1.4em;
916 border-width: .5em 1.4em .8em 0;
919 border: 1px solid
#dddddd;
932 background-color: #ffce7b;
933 border: 1px solid
#ffa500;
938 vertical-align: middle
;
940 /* Site Notice (includes notices from CentralNotice extension) */
947 margin-bottom: 0.9em;
951 border: 1px solid
#aaa;
952 background-color: #f9f9f9;
964 #contentSub, #contentSub2
{
967 margin: 0 1em 1.4em 0;
983 /* Small for tables and similar */
990 /* Edge Cases for Content */
1001 margin-bottom: 0.1em;
1006 div#content a
.external
,
1007 div#content a
[href ^
="gopher://"] {
1008 background: url
(images
/external-link-rtl-icon
.png?
2) center left no-repeat
;
1009 padding: 0 0 0 13px;
1011 div#content a
[href ^
="https://"],
1013 background: url
(images
/lock-icon
.png?
2) center left no-repeat
;
1014 padding: 0 0 0 13px;
1016 div#content a
[href ^
="mailto:"],
1018 background: url
(images
/mail-icon
.png?
2) center left no-repeat
;
1019 padding: 0 0 0 13px;
1021 div#content a
[href ^
="news://"] {
1022 background: url
(images
/news-icon
.png?
2) center left no-repeat
;
1023 padding: 0 0 0 13px;
1025 div#content a
[href ^
="ftp://"],
1027 background: url
(images
/file-icon
.png?
2) center left no-repeat
;
1028 padding: 0 0 0 13px;
1030 div#content a
[href ^
="irc://"],
1031 div#content a
.extiw
[href ^
="irc://"],
1033 background: url
(images
/talk-icon
.png?
2) center left no-repeat
;
1034 padding: 0 0 0 13px;
1036 div#content a
.external
[href $
=".ogg"], div#content a
.external
[href $
=".OGG"],
1037 div#content a
.external
[href $
=".mid"], div#content a
.external
[href $
=".MID"],
1038 div#content a
.external
[href $
=".midi"], div#content a
.external
[href $
=".MIDI"],
1039 div#content a
.external
[href $
=".mp3"], div#content a
.external
[href $
=".MP3"],
1040 div#content a
.external
[href $
=".wav"], div#content a
.external
[href $
=".WAV"],
1041 div#content a
.external
[href $
=".wma"], div#content a
.external
[href $
=".WMA"],
1043 background: url
("images/audio-icon.png?2") center left no-repeat
;
1044 padding: 0 0 0 13px;
1046 div#content a
.external
[href $
=".ogm"], div#content a
.external
[href $
=".OGM"],
1047 div#content a
.external
[href $
=".avi"], div#content a
.external
[href $
=".AVI"],
1048 div#content a
.external
[href $
=".mpeg"], div#content a
.external
[href $
=".MPEG"],
1049 div#content a
.external
[href $
=".mpg"], div#content a
.external
[href $
=".MPG"],
1051 background: url
("images/video-icon.png?2") center left no-repeat
;
1052 padding: 0 0 0 13px;
1054 div#content a
.external
[href $
=".pdf"], div#content a
.external
[href $
=".PDF"],
1055 div#content a
.external
[href
*=".pdf#"], div#content a
.external
[href
*=".PDF#"],
1056 div#content a
.external
[href
*=".pdf?"], div#content a
.external
[href
*=".PDF?"],
1058 background: url
("images/document-icon.png?2") center left no-repeat
;
1059 padding: 0 0 0 13px;
1061 /* Interwiki Styling (Disabled) */
1062 div#content a
.extiw
,
1063 div#content a
.extiw:active
{
1068 div#content a
.external
{
1071 div#content
.printfooter
{
1074 /* Icon for Usernames */
1078 background: url
(images
/user-icon
.png?
1) right top no-repeat
;
1079 padding-right: 15px !important
;
1080 text-transform: none
;
1084 border: 1px solid
#aaa;
1085 background-color: #f9f9f9;
1100 /* Watch/Unwatch Icon Styling */
1113 text-indent: -9999px;
1115 #ca-unwatch.icon a
{
1116 background-image: url
(images
/watch-icons
.png?
1);
1117 background-position: -43px 60%;
1120 background-image: url
(images
/watch-icons
.png?
1);
1121 background-position: 5px 60%;
1123 #ca-unwatch.icon
a:hover
{
1124 background-image: url
(images
/watch-icons
.png?
1);
1125 background-position: -67px 60%;
1127 #ca-watch.icon
a:hover
{
1128 background-image: url
(images
/watch-icons
.png?
1);
1129 background-position: -19px 60%;
1131 #ca-unwatch.icon a
.loading
,
1132 #ca-watch.icon a
.loading
{
1133 background-image: url
(images
/watch-icon-loading
.gif?
1);
1134 background-position: center
60%;
1136 #ca-unwatch.icon a span
,
1137 #ca-watch.icon a span
{
1141 background-image:url
(images
/tab-break
.png?
1);
1142 background-position:left bottom
;
1143 background-repeat:no-repeat
;