/*
- * This file has been automatically generated using CSSJanus, a python script
- * for creating RTL versions of otherwise LTR stylesheets.
+ * main-rtl.css is automatically generated using CSSJanus, a python script for
+ * creating RTL versions of otherwise LTR stylesheets.
*
* You may download the tool to rebuild this stylesheet
* http://code.google.com/p/cssjanus/
* An online version of this tool can be used at:
* http://cssjanus.commoner.com/
*
- * The following options were passed to CSSJanus to build this file properly.
- * --swap_ltr_rtl_in_url
+ * The following command is used to generate the RTL version of this file
+ * ./cssjanus.py --swap_ltr_rtl_in_url < main-ltr.css > main-rtl.css
+ *
+ * Any rules which should not be flipped should be prepended with @noflip in
+ * a comment block.
*/
/* Framework */
html,
margin: 0;
padding: 0;
font-family: sans-serif;
- font-size: small;
+ font-size: 13px;
}
body {
background-color: #f3f3f3;
background-image: url(images/page-base.png);
}
/* Content */
-div#content {
+#content {
margin-right: 12em;
padding: 1em;
background-image: url(images/border.png);
background-color: white;
}
/* Head */
-div#page-base {
+#page-base {
height: 6em;
background-color: white;
background-image: url(images/page-fade.png);
background-position: bottom right;
background-repeat: repeat-x;
}
-div#head-base {
+#head-base {
margin-top: -6em;
margin-right: 12em;
height: 6em;
background-position: bottom right;
background-repeat: repeat-x;
}
-div#head {
+#head {
position: absolute;
top: 0;
left: 0;
width: 100%;
}
-div#head h5 {
+#head h5 {
margin: 0;
padding: 0;
}
/* Personal */
- div#p-personal {
+ #p-personal {
position: absolute;
top: 0;
left: 0.75em;
}
- div#p-personal h5 {
+ #p-personal h5 {
display: none;
}
- div#p-personal ul {
+ #p-personal ul {
list-style: none;
margin: 0;
padding: 0;
}
- div#p-personal li {
- float: right;
+ /* @noflip */
+ #p-personal li {
+ line-height: 1.125em;
+ float: left;
+ }
+ #p-personal li {
margin-right: 0.75em;
margin-top: 0.5em;
font-size: 0.9em;
}
/* Navigation Containers */
- div#left-navigation {
+ #left-navigation {
position: absolute;
right: 12em;
top: 3em;
}
- div#right-navigation {
+ #right-navigation {
float: left;
margin-top: 3em;
}
display: none;
}
/* Namespaces and Views */
+ /* @noflip */
+ div.vectorTabs {
+ float: left;
+ }
div.vectorTabs {
- float: right;
background-image: url(images/tab-break.png);
background-position: bottom right;
background-repeat: no-repeat;
padding-right: 1px;
}
+ /* @noflip */
+ div.vectorTabs ul {
+ float: left;
+ }
div.vectorTabs ul {
- float: right;
height: 100%;
list-style: none;
margin: 0;
padding: 0;
}
+ /* @noflip */
+ div.vectorTabs ul li {
+ float: left;
+ }
/* OVERRIDDEN BY COMPLIANT BROWSERS */
div.vectorTabs ul li {
+ line-height: 1.125em;
display: inline-block;
- float: right;
height: 100%;
margin: 0;
padding: 0;
background-position: bottom left;
background-repeat: no-repeat;
}
+ div.vectorTabs li a,
+ div.vectorTabs li a span {
+ color: #0645ad;
+ cursor: pointer;
+ }
/* IGNORED BY IE6 */
div.vectorTabs li > a {
display: block;
}
/* OVERRIDDEN BY COMPLIANT BROWSERS */
div.vectorTabs a span {
- color: #0645ad;
display: inline-block;
padding-top: 1.25em;
- cursor: pointer;
}
/* IGNORED BY IE6 */
+ /* @noflip */
div.vectorTabs a > span {
- float: right;
+ float: left;
display: block;
}
+ div.vectorTabs li.selected a,
div.vectorTabs li.selected a span,
+ div.vectorTabs li.selected a:visited
div.vectorTabs li.selected a:visited span {
color: #333333;
- cursor: default;
text-decoration: none;
}
+ div.vectorTabs li.new a,
div.vectorTabs li.new a span,
- div.vectorTabs li.new a:visited span{
+ div.vectorTabs li.new a:visited,
+ div.vectorTabs li.new a:visited span {
color: #a55858;
}
-
/* Variants and Actions */
+ /* @noflip */
div.vectorMenu {
- float: right;
+ direction: ltr;
+ float: left;
background-image: url(images/arrow-down-icon.png);
background-position: center center;
background-repeat: no-repeat;
}
+ body.rtl div.vectorMenu {
+ direction: rtl;
+ }
+ /* @noflip */
div.vectorMenu h5 {
- float: right;
+ float: left;
}
/* OVERRIDDEN BY COMPLIANT BROWSERS */
div.vectorMenu h5 a {
display: block;
}
div.vectorMenu div.menu {
+ position: relative;
display: none;
clear: both;
+ text-align: right;
+ }
+ /* OVERRIDDEN BY COMPLIANT BROWSERS */
+ body.rtl div.vectorMenu div.menu {
+ margin-left: 24px;
+ }
+ /* IGNORED BY IE6 */
+ body.rtl div.vectorMenu > div.menu {
+ margin-left: auto;
+ }
+ /* Fixes old versions of FireFox */
+ body.rtl div.vectorMenu > div.menu,
+ x:-moz-any-link {
+ margin-left: 24px;
}
div.vectorMenu:hover div.menu {
display: block;
border: solid 1px silver;
border-top-width: 0;
list-style: none;
+ list-style-image: none;
+ list-style-type: none;
padding: 0;
margin: 0;
margin-right: -1px;
+ text-align: right;
+ }
+ /* Fixes old versions of FireFox */
+ div.vectorMenu ul,
+ x:-moz-any-link {
+ min-width: 6em;
+ }
+ /* Returns things back to normal in modern versions of FireFox */
+ div.vectorMenu ul,
+ x:-moz-any-link,
+ x:default {
+ min-width: 0;
}
div.vectorMenu li {
padding: 0;
margin: 0;
+ text-align: right;
+ line-height: 1em;
}
/* OVERRIDDEN BY COMPLIANT BROWSERS */
div.vectorMenu li a {
display: inline-block;
padding: 0.5em;
+ white-space: nowrap;
}
/* IGNORED BY IE6 */
div.vectorMenu li > a {
display: block;
}
/* Search */
- div#p-search h5 {
+ #p-search h5 {
display: none;
}
- div#p-search {
- float: right;
- margin-left: 0.75em;
+ /* @noflip */
+ #p-search {
+ float: left;
}
- div#p-search form,
- div#p-search input {
- float: right;
+ #p-search {
+ margin-left: 0.5em;
+ margin-right: 0.5em;
+ }
+ #p-search form,
+ #p-search input {
+ margin: 0;
margin-top: 0.4em;
- margin-right: 0.25em;
+ }
+ #simpleSearch {
+ margin-top: 0.75em;
+ position: relative;
+ border: solid 1px #AAAAAA;
+ background-color: white;
+ background-image: url(images/search-fade.png);
+ background-position: top right;
+ background-repeat: repeat-x;
+ }
+ #simpleSearch input#searchInput {
+ margin: 0;
+ border-width: 0;
+ padding: 0.25em;
+ line-height: 1em;
+ font-size: 0.9em;
+ width: 9em;
+ background-color: transparent;
+ }
+ /* OVERRIDDEN BY COMPLIANT BROWSERS */
+ #simpleSearch button#searchButton {
+ margin: 0;
+ padding: 0;
+ width: 1.75em;
+ height: 1.5em;
+ border: none;
+ cursor: pointer;
+ background-color: transparent;
+ background-image: url(images/search-rtl.png);
+ background-position: center center;
+ background-repeat: no-repeat;
+ }
+ /* IGNORED BY IE6 */
+ #simpleSearch > button#searchButton {
+ height: 100%;
}
/* Panel */
-div#panel {
+#panel {
position: absolute;
top: 12em;
width: 12em;
right: 0;
}
- div#panel div.portal {
+ #panel div.portal {
padding-top: 1.5em;
}
- div#panel div.portal h5 {
+ #panel div.portal h5 {
font-weight: normal;
color: #444444;
padding: 0.5em;
padding-right: 1.25em;
cursor: default;
border: none;
+ font-size: 0.9em;
}
- div#panel div.portal div.body {
+ #panel div.portal div.body {
margin: 0;
padding-top: 0.5em;
margin-right: 1.25em;
background-image: url(images/portal-break-rtl.png);
background-repeat: no-repeat;
background-position: top right;
- font-size: 0.9em;
}
- div#panel div.portal div.body ul {
+ #panel div.portal div.body ul {
list-style: none;
+ list-style-image: none;
+ list-style-type: none;
padding: 0;
margin: 0;
}
- div#panel div.portal div.body ul li {
+ #panel div.portal div.body ul li {
+ line-height: 1.125em;
padding: 0;
padding-bottom: 0.5em;
margin: 0;
overflow: hidden;
font-size: 0.9em;
}
- div#panel div.portal div.body ul li a {
+ #panel div.portal div.body ul li a {
color: #0645ad;
}
- div#panel div.portal div.body ul li a:visited {
+ #panel div.portal div.body ul li a:visited {
color: #0b0080;
}
-/* Foot */
-div#foot {
+/* Footer */
+#footer {
margin-right: 12em;
margin-top: 0;
padding: 0.75em;
background-position: top right;
background-repeat: repeat-x;
}
-div#foot ul {
+#footer ul {
list-style: none;
+ list-style-image: none;
+ list-style-type: none;
margin: 0;
padding: 0;
}
-div#foot ul li {
+#footer ul li {
margin: 0;
padding: 0;
padding-top: 0.5em;
color: #333333;
font-size: 0.9em;
}
-div#foot ul#foot-icons {
+#footer #footer-icons {
float: left;
}
-div#foot ul#foot-places {
+#footer #footer-places {
float: right;
}
-div#foot ul#foot-info li {
+#footer #footer-info li {
line-height: 1.4em;
}
-div#foot ul#foot-icons li {
+#footer #footer-icons li {
float: right;
margin-right: 0.5em;
line-height: 2em;
}
-div#foot ul#foot-places li {
+#footer #footer-places li {
float: right;
margin-left: 1em;
line-height: 2em;
}
/* Logo */
-div#p-logo {
+#p-logo {
position: absolute;
- top: 0;
+ top: -12em;
right: 0;
height: 12em;
width: 12em;
}
-div#p-logo a {
+#p-logo a {
display: block;
width: 12em;
height: 12em;
padding: 0.5em;
text-decoration: none;
background-image: none;
+ font-size: 0.9em;
}
#preftoc a:hover {
text-decoration: underline;
}
#preftoc li.selected a {
- cursor: default;
background-image: url(images/preferences-fade.png);
background-position: bottom;
background-repeat: repeat-x;
color: #333333;
- cursor: default;
text-decoration: none;
}
#preferences {
float: right;
- zoom: 1;
width: 100%;
margin: 0;
+ margin-top: -2px;
clear: both;
border: solid 1px #cccccc;
background-color: #f9f9f9;
background-color: #f9f9f9;
line-height: 1.1em;
}
-div#content ul {
+ul {
line-height: 1.5em;
list-style-type: square;
margin: .3em 1.5em 0 0;
padding: 0;
list-style-image: url(images/bullet-icon.png);
}
-div#content ol {
+ol {
line-height: 1.5em;
margin: .3em 3.2em 0 0;
padding: 0;
list-style-image: none;
}
-div#content li {
+li {
margin-bottom: .1em;
}
-div#content dt {
+dt {
font-weight: bold;
margin-bottom: .1em;
}
-div#content dl {
+dl {
margin-top: .2em;
margin-bottom: .5em;
}
-div#content dd {
+dd {
line-height: 1.5em;
margin-right: 2em;
margin-bottom: .1em;
* floated tables */
background-color: white;
}
-div#content fieldset table {
+fieldset table {
/* but keep table layouts in forms clean... */
background: none;
}
/* Forms */
-div#content fieldset {
+fieldset {
border: 1px solid #2f6fab;
margin: 1em 0 1em 0;
padding: 0 1em 1em;
margin: 0 0 0.5em 0;
padding: 0 0.5em 0.5em;
}
-div#content legend {
+legend {
padding: .5em;
font-size: 95%;
}
-div#content form {
+form {
border: none;
margin: 0;
}
-div#content textarea {
+textarea {
width: 100%;
padding: .1em;
}
-div#content select {
+select {
vertical-align: top;
}
/* Table of Contents */
.toc .toctitle {
text-align: center;
}
-div#content #toc ul,
-div#content .toc ul {
+#toc ul,
+.toc ul {
list-style-type: none;
list-style-image: none;
margin-right: 0;
border-style: solid;
border-color: white;
width: auto;
+ background-color: transparent;
}
div.thumbinner {
border: 1px solid #ccc;
#siteNotice {
text-align: center;
font-size: 95%;
- margin-bottom: 0.9em;
+ margin: 0;
}
+ #siteNotice div,
#siteNotice p {
margin: 0;
padding: 0;
+ margin-bottom: 0.9em;
}
/* Categories */
.catlinks {
font-size: 100%;
}
/* Edge Cases for Content */
-#content h1, #content h2 {
+h1, h2 {
margin-bottom: .6em;
}
-#content h3, #content h4, #content h5 {
+h3, h4, h5 {
margin-bottom: .3em;
}
-h1#firstHeading {
+#firstHeading {
padding-top: 0;
margin-top: 0;
padding-top: 0;
#content a.external {
color: #36b;
}
-#content .plainlinks a {
- /* this can be used in the content area to switch off special external link
- * styling */
- background: none !important;
- padding: 0 !important;
-}
#content .printfooter {
display: none;
}
-
-li#pt-userpage,
-li#pt-anonuserpage,
-li#pt-login {
+/* Icon for Usernames */
+#pt-userpage,
+#pt-anonuserpage,
+#pt-login {
background: url(images/user-icon.png) right top no-repeat;
padding-right: 15px !important;
text-transform: none;
}
-span.newpage, span.minor, span.bot {
- font-weight: bold;
-}
-
.toccolours {
border: 1px solid #aaa;
background-color: #f9f9f9;
padding: 5px;
font-size: 95%;
}
-
-/* Classes for EXIF data display */
-table.mw_metadata {
- font-size: 0.8em;
- margin-right: 0.5em;
- margin-bottom: 0.5em;
- width: 300px;
-}
-
-table.mw_metadata caption {
- font-weight: bold;
-}
-
-table.mw_metadata th {
- font-weight: normal;
-}
-
-table.mw_metadata td {
- padding: 0.1em;
-}
-
-table.mw_metadata {
- border: none;
- border-collapse: collapse;
-}
-
-table.mw_metadata td, table.mw_metadata th {
- text-align: center;
- border: 1px solid #aaaaaa;
- padding-left: 0.1em;
- padding-right: 0.1em;
-}
-
-table.mw_metadata th {
- background-color: #f9f9f9;
-}
-
-table.mw_metadata td {
- background-color: #fcfcfc;
-}
-
-div#bodyContent {
+#bodyContent {
position: relative;
width: 100%;
-}
-
+}
\ No newline at end of file