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 left
;
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 left
;
46 background-repeat: repeat-x
;
52 background-image: url
(images
/border
.png?
1);
53 background-position: bottom left
;
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 left
;
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 left
;
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
;
163 padding-right: 0.5em;
164 background-image: url
(images
/tab-break
.png?
1);
165 background-position: bottom right
;
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 left
;
228 div#mw-head div
.vectorMenu h4
{
229 display: inline-block
;
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 right
;
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 left
;
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
{
389 background-color: transparent
;
392 div#simpleSearch button#searchButton img
{
396 vertical-align: middle
;
406 div#mw-panel div
.portal
{
407 padding-bottom: 1.5em;
409 div#mw-panel div
.portal h5
{
414 padding-left: 1.75em;
419 div#mw-panel div
.portal div
.body
{
423 background-image: url
(images
/portal-break
.png?
1);
424 background-repeat: no-repeat
;
425 background-position: top left
;
427 div#mw-panel div
.portal div
.body ul
{
429 list-style-image: none
;
430 list-style-type: none
;
434 div#mw-panel div
.portal div
.body ul li
{
435 line-height: 1.125em;
437 padding-bottom: 0.5em;
442 div#mw-panel div
.portal div
.body ul li a
{
445 div#mw-panel div
.portal div
.body ul li
a:visited
{
453 background-image: url
(images
/border
.png?
1);
454 background-position: top left
;
455 background-repeat: repeat-x
;
459 list-style-image: none
;
460 list-style-type: none
;
468 padding-bottom: 0.5em;
472 div#footer #footer-icons
{
476 body
.ltr div#footer #footer-places
{
479 div#footer #footer-info li
{
482 div#footer #footer-icons li
{
487 div#footer #footer-places li
{
504 background-repeat: no-repeat
;
505 background-position: center center
;
506 text-decoration: none
;
511 * The following code is highly modified from monobook. It would be nice if the
512 * preftoc id was more human readable like preferences-toc for instance,
513 * howerver this would require backporting the other skins.
522 margin: 0 !important
;
523 padding: 0 !important
;
524 background-image: url
(images
/preferences-break
.png?
1);
525 background-position: bottom left
;
526 background-repeat: no-repeat
;
536 list-style-type: none
;
537 list-style-image: none
;
538 background-image: url
(images
/preferences-break
.png?
1);
539 background-position: bottom right
;
540 background-repeat: no-repeat
;
543 #preftoc li:first-child
{
548 display: inline-block
;
552 text-decoration: none
;
553 background-image: none
;
558 text-decoration: underline
;
560 #preftoc li
.selected a
{
561 background-image: url
(images
/preferences-fade
.png?
1);
562 background-position: bottom
;
563 background-repeat: repeat-x
;
565 text-decoration: none
;
573 border: solid
1px #cccccc;
574 background-color: #f9f9f9;
575 background-image: url
(images
/preferences-base
.png?
1);
577 #preferences fieldset
.prefsection
{
582 #preferences fieldset
.prefsection fieldset
{
584 border-top: solid
1px #cccccc;
586 #preferences legend
{
589 #preferences fieldset
.prefsection legend
.mainLegend
{
594 padding-right: 0.5em;
596 #preferences td
.htmlform-tip
{
601 #preferences div
.mw-prefs-buttons
{
604 #preferences div
.mw-prefs-buttons input
{
605 margin-right: 0.25em;
609 * Styles for the user login and create account forms
611 #userlogin, #userloginForm
{
612 border: solid
1px #cccccc;
626 * The following code is slightly modified from monobook
637 text-decoration: none
;
648 text-decoration: underline
;
653 a
.new
, #p-personal a
.new
{
656 a
.new:visited
, #p-personal a
.new:visited
{
660 /* Inline Elements */
663 vertical-align: middle
;
668 background-color: #aaa;
670 margin: .2em 0 .2em 0;
673 /* Structural Elements */
685 padding-bottom: .17em;
686 border-bottom: 1px solid
#aaa;
689 h1
{ font-size: 188%; }
690 h1
.editsection
{ font-size: 53%; }
691 h2
{ font-size: 150%; }
692 h2
.editsection
{ font-size: 67%; }
700 h3
{ font-size: 132%; }
701 h3
.editsection
{ font-size: 76%; font-weight: normal
; }
702 h4
{ font-size: 116%; }
703 h4
.editsection
{ font-size: 86%; font-weight: normal
; }
704 h5
{ font-size: 100%; }
705 h5
.editsection
{ font-weight: normal
; }
706 h6
{ font-size: 80%; }
707 h6
.editsection
{ font-size: 125%; font-weight: normal
; }
709 margin: .4em 0 .5em 0;
718 border-bottom: 1px dotted black
;
724 font-family: Times
, "Times New Roman", serif
;
729 font-family: Times, "Times New Roman", serif;
734 * It's important for this rule to first reference an actual font name, some browsers will render the monospace text
735 * too small otherwise, namely Firefox, Chrome and Safari
737 font-family: monospace
, "Courier New";
740 background-color: #f9f9f9;
744 border: 1px dashed
#2f6fab;
746 background-color: #f9f9f9;
751 list-style-type: square
;
752 margin: .3em 0 0 1.5em;
754 list-style-image: url
(images
/bullet-icon
.png?
1);
758 margin: .3em 0 0 3.2em;
760 list-style-image: none
;
782 /* we don't want the bottom borders of <h2>s to be visible through
784 background-color: white
;
787 /* but keep table layouts in forms clean... */
792 border: 1px solid
#2f6fab;
799 padding: 0 0.5em 0.5em;
816 /* Table of Contents */
820 border: 1px solid
#aaa;
821 background-color: #f9f9f9;
841 list-style-type: none
;
842 list-style-image: none
;
856 div
.floatright
, table
.floatright
{
860 margin: 0 0 .5em .5em;
863 div
.floatright p
{ font-style: italic
; }
864 div
.floatleft
, table
.floatleft
{
868 margin: 0 .5em .5em 0;
871 div
.floatleft p
{ font-style: italic
; }
878 background-color: transparent
;
881 border: 1px solid
#ccc;
882 padding: 3px !important
;
883 background-color: #f9f9f9;
889 border: 1px solid
#ccc;
895 padding: 3px !important
;
900 border: none
!important
;
901 background: none
!important
;
903 div
.magnify a
, div
.magnify img
{
905 border: none
!important
;
906 background: none
!important
;
912 border-width: .5em 0 .8em 1.4em;
919 border-width: .5em 1.4em .8em 0;
922 border: 1px solid
#dddddd;
935 background-color: #ffce7b;
936 border: 1px solid
#ffa500;
941 vertical-align: middle
;
943 /* Site Notice (includes notices from CentralNotice extension) */
950 margin-bottom: 0.9em;
954 border: 1px solid
#aaa;
955 background-color: #f9f9f9;
967 #contentSub, #contentSub2
{
970 margin: 0 0 1.4em 1em;
986 /* Small for tables and similar */
993 /* Edge Cases for Content */
1004 margin-bottom: 0.1em;
1009 div#content a
.external
,
1010 div#content a
[href ^
="gopher://"] {
1011 background: url
(images
/external-link-ltr-icon
.png?
2) center right no-repeat
;
1012 padding: 0 13px 0 0;
1014 div#content a
[href ^
="https://"],
1016 background: url
(images
/lock-icon
.png?
2) center right no-repeat
;
1017 padding: 0 13px 0 0;
1019 div#content a
[href ^
="mailto:"],
1021 background: url
(images
/mail-icon
.png?
2) center right no-repeat
;
1022 padding: 0 13px 0 0;
1024 div#content a
[href ^
="news://"] {
1025 background: url
(images
/news-icon
.png?
2) center right no-repeat
;
1026 padding: 0 13px 0 0;
1028 div#content a
[href ^
="ftp://"],
1030 background: url
(images
/file-icon
.png?
2) center right no-repeat
;
1031 padding: 0 13px 0 0;
1033 div#content a
[href ^
="irc://"],
1034 div#content a
.extiw
[href ^
="irc://"],
1036 background: url
(images
/talk-icon
.png?
2) center right no-repeat
;
1037 padding: 0 13px 0 0;
1039 div#content a
.external
[href $
=".ogg"], div#content a
.external
[href $
=".OGG"],
1040 div#content a
.external
[href $
=".mid"], div#content a
.external
[href $
=".MID"],
1041 div#content a
.external
[href $
=".midi"], div#content a
.external
[href $
=".MIDI"],
1042 div#content a
.external
[href $
=".mp3"], div#content a
.external
[href $
=".MP3"],
1043 div#content a
.external
[href $
=".wav"], div#content a
.external
[href $
=".WAV"],
1044 div#content a
.external
[href $
=".wma"], div#content a
.external
[href $
=".WMA"],
1046 background: url
("images/audio-icon.png?2") center right no-repeat
;
1047 padding: 0 13px 0 0;
1049 div#content a
.external
[href $
=".ogm"], div#content a
.external
[href $
=".OGM"],
1050 div#content a
.external
[href $
=".avi"], div#content a
.external
[href $
=".AVI"],
1051 div#content a
.external
[href $
=".mpeg"], div#content a
.external
[href $
=".MPEG"],
1052 div#content a
.external
[href $
=".mpg"], div#content a
.external
[href $
=".MPG"],
1054 background: url
("images/video-icon.png?2") center right no-repeat
;
1055 padding: 0 13px 0 0;
1057 div#content a
.external
[href $
=".pdf"], div#content a
.external
[href $
=".PDF"],
1058 div#content a
.external
[href
*=".pdf#"], div#content a
.external
[href
*=".PDF#"],
1059 div#content a
.external
[href
*=".pdf?"], div#content a
.external
[href
*=".PDF?"],
1061 background: url
("images/document-icon.png?2") center right no-repeat
;
1062 padding: 0 13px 0 0;
1064 /* Interwiki Styling (Disabled) */
1065 div#content a
.extiw
,
1066 div#content a
.extiw:active
{
1071 div#content a
.external
{
1074 div#content
.printfooter
{
1077 /* Icon for Usernames */
1081 background: url
(images
/user-icon
.png?
1) left top no-repeat
;
1082 padding-left: 15px !important
;
1083 text-transform: none
;
1087 border: 1px solid
#aaa;
1088 background-color: #f9f9f9;
1103 /* Watch/Unwatch Icon Styling */
1115 /* This hides the text but shows the background image */
1120 #ca-unwatch.icon a
{
1121 background-image: url
(images
/watch-icons
.png?
1);
1122 background-position: -43px 60%;
1125 background-image: url
(images
/watch-icons
.png?
1);
1126 background-position: 5px 60%;
1128 #ca-unwatch.icon
a:hover
,
1129 #ca-unwatch.icon
a:focus
{
1130 background-image: url
(images
/watch-icons
.png?
1);
1131 background-position: -67px 60%;
1133 #ca-watch.icon
a:hover
,
1134 #ca-watch.icon
a:focus
{
1135 background-image: url
(images
/watch-icons
.png?
1);
1136 background-position: -19px 60%;
1138 #ca-unwatch.icon a
.loading
,
1139 #ca-watch.icon a
.loading
{
1140 background-image: url
(images
/watch-icon-loading
.gif?
1);
1141 background-position: center
60%;
1143 #ca-unwatch.icon a span
,
1144 #ca-watch.icon a span
{
1148 background-image:url
(images
/tab-break
.png?
1);
1149 background-position:right bottom
;
1150 background-repeat:no-repeat
;