From 4e7cb3c4e4556a4e96784f16a1edce11734bd469 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Mon, 13 Jul 2009 22:18:28 +0000 Subject: [PATCH] Resolved some link coloring issues in the navigation tabs. Regenerated the RTL stylesheet using cssjanus. Made comments more logical for this type of operation. --- skins/vector/main-ltr.css | 24 ++++++++++++-- skins/vector/main-rtl.css | 66 ++++++++++----------------------------- 2 files changed, 39 insertions(+), 51 deletions(-) diff --git a/skins/vector/main-ltr.css b/skins/vector/main-ltr.css index a47f182b47..26de9a242e 100644 --- a/skins/vector/main-ltr.css +++ b/skins/vector/main-ltr.css @@ -1,3 +1,16 @@ +/* + * 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 command is used to generate the RTL version of this file + * ./cssjanus.py --swap_ltr_rtl_in_url < main-ltr.css > main-rtl.css + */ /* Framework */ html, body { @@ -125,29 +138,36 @@ div#head h5 { background-position: bottom right; 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 */ div.vectorTabs a > span { 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, div.vectorTabs li.new a:visited span { color: #a55858; } diff --git a/skins/vector/main-rtl.css b/skins/vector/main-rtl.css index 317e89174b..a30d064902 100644 --- a/skins/vector/main-rtl.css +++ b/skins/vector/main-rtl.css @@ -1,6 +1,6 @@ /* - * 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/ @@ -8,8 +8,8 @@ * 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 */ /* Framework */ html, @@ -138,33 +138,39 @@ div#head h5 { 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 */ div.vectorTabs a > span { float: right; 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 */ div.vectorMenu { float: right; @@ -251,6 +257,7 @@ div#panel { padding-right: 1.25em; cursor: default; border: none; + font-size: 0.9em; } div#panel div.portal div.body { margin: 0; @@ -259,7 +266,6 @@ div#panel { 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 { list-style: none; @@ -382,6 +388,7 @@ div#p-logo a { padding: 0.5em; text-decoration: none; background-image: none; + font-size: 0.9em; } #preftoc a:hover { text-decoration: underline; @@ -883,6 +890,7 @@ h1#firstHeading { display: none; } + li#pt-userpage, li#pt-anonuserpage, li#pt-login { @@ -902,46 +910,6 @@ span.newpage, span.minor, span.bot { 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 { position: relative; width: 100%; -- 2.20.1