[Rt-commit] [svn] r1566 - in rt/branches/3.3-TESTING: .
html/Elements html/NoAuth
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Mon Sep 27 17:20:14 EDT 2004
Author: jesse
Date: Mon Sep 27 17:20:14 2004
New Revision: 1566
Modified:
rt/branches/3.3-TESTING/ (props changed)
rt/branches/3.3-TESTING/html/Elements/Menu
rt/branches/3.3-TESTING/html/NoAuth/webrt.css
Log:
r10391 at tinbook: jesse | 2004-09-27T21:17:31.817589Z
RT-Ticket: 6139
RT-Status: resolved
RT-Update-Type: correspond
Applied patch from Oliver Thomas to move more menu styling to the external CSS file and out of the html.
Modified: rt/branches/3.3-TESTING/html/Elements/Menu
==============================================================================
--- rt/branches/3.3-TESTING/html/Elements/Menu (original)
+++ rt/branches/3.3-TESTING/html/Elements/Menu Mon Sep 27 17:20:14 2004
@@ -69,16 +69,16 @@
% }
% my $style="";
% if ($sep) {
-% $style="border-top: solid #999 1px; padding-top: .1em; margin-top: .5em;";
+% $style="-minor";
% } elsif ($level == 0 ) {
-% $style="border-bottom: solid white 1px; padding-top: .25em; padding-bottom: .5em;" ;
+% $style="-major";
% }
% if ($toptabs->{$tab}->{'separator'}) {
% $sep=1;
% } else {
% $sep=0;
% }
-<li style="<%$style%>"><A HREF="<%$RT::WebPath%>/<%$toptabs->{$tab}->{'path'}%>" style="font-size: <%$size%>;" class="<%$class%>"
+<li class="<%$class%>-<%$level%>"><A HREF="<%$RT::WebPath%>/<%$toptabs->{$tab}->{'path'}%>" class="<%$class%>-<%$level%>"
<%($class eq 'currenttopnav') ? "name='focus'" : ""|n %>
<% !$level && "accesskey='".$accesskey++."'" |n%>><% $toptabs->{$tab}->{'title'}%></A>
%# Second-level items
Modified: rt/branches/3.3-TESTING/html/NoAuth/webrt.css
==============================================================================
--- rt/branches/3.3-TESTING/html/NoAuth/webrt.css (original)
+++ rt/branches/3.3-TESTING/html/NoAuth/webrt.css Mon Sep 27 17:20:14 2004
@@ -68,12 +68,218 @@
color: #FFFFFF;
text-decoration: none;
white-space: nowrap}
+
+%# .topnav is the original RT class for the sidebar navigation tabs.
+%# Font-sizing by level depth was originally hard-coded into Elements/Menu.
+%# This modification sets a different class name for each level, allowing
+%# style sheet control over the formats.
+
+a.topnav-0 { font-family: Verdana, sans-serif;
+ font-size: 16px;
+ font-weight: normal;
+ color: #FFFFFF;
+ text-decoration: none;
+ white-space: nowrap}
+a.topnav-1 { font-family: Verdana, sans-serif;
+ font-size: 14px;
+ font-weight: normal;
+ color: #FFFFFF;
+ text-decoration: none;
+ white-space: nowrap}
+a.topnav-2 { font-family: Verdana, sans-serif;
+ font-size: 12px;
+ font-weight: normal;
+ color: #FFFFFF;
+ text-decoration: none;
+ white-space: nowrap}
+a.topnav-3 { font-family: Verdana, sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ color: #FFFFFF;
+ text-decoration: none;
+ white-space: nowrap}
+a.topnav-4 { font-family: Verdana, sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ color: #FFFFFF;
+ text-decoration: none;
+ white-space: nowrap}
+a.topnav-5 { font-family: Verdana, sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ color: #FFFFFF;
+ text-decoration: none;
+ white-space: nowrap}
+li.topnav-0-minor {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+li.topnav-1-minor {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+li.topnav-2-minor {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+li.topnav-3-minor {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+li.topnav-4-minor {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+li.topnav-5-minor {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+li.topnav-0-major {
+ border-bottom: solid white 1px;
+ padding-top: .25em
+ padding-bottom: .5em
+}
+li.topnav-1-major {
+ border-bottom: solid white 1px;
+ padding-top: .25em
+ padding-bottom: .5em
+}
+li.topnav-2-major {
+ border-bottom: solid white 1px;
+ padding-top: .25em
+ padding-bottom: .5em
+}
+li.topnav-3-major {
+ border-bottom: solid white 1px;
+ padding-top: .25em
+ padding-bottom: .5em
+}
+li.topnav-4-major {
+ border-bottom: solid white 1px;
+ padding-top: .25em
+ padding-bottom: .5em
+}
+li.topnav-5-major {
+ border-bottom: solid white 1px;
+ padding-top: .25em
+ padding-bottom: .5em
+}
+
.currenttopnav { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
color: #FFFF66;
text-decoration: none;
white-space: nowrap}
+
+%# .currenttopnav is the original RT class for the sidebar navigation tabs.
+%# Font-sizing by level depth was originally hard-coded into Elements/Menu.
+%# This modification sets a different class name for each level, allowing
+%# style sheet control over the formats
+
+a.currenttopnav-0 { font-family: Verdana, sans-serif;
+ font-size: 14px;
+ font-weight: bold;
+ color: #FFFF66;
+ text-decoration: none;
+ white-space: nowrap}
+a.currenttopnav-1 { font-family: Verdana, sans-serif;
+ font-size: 12px;
+ font-weight: bold;
+ color: #FFFF66;
+ text-decoration: normal;
+ white-space: nowrap}
+a.currenttopnav-2 { font-family: Verdana, sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ color: #FFFF66;
+ text-decoration: none;
+ white-space: nowrap}
+a.currenttopnav-3 { font-family: Verdana, sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ color: #FFFF66;
+ text-decoration: none;
+ white-space: nowrap}
+a.currenttopnav-4 { font-family: Verdana, sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ color: #FFFF66;
+ text-decoration: none;
+ white-space: nowrap}
+a.currenttopnav-5 { font-family: Verdana, sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ color: #FFFF66;
+ text-decoration: none;
+ white-space: nowrap}
+li.currenttopnav-0-minor {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+li.currenttopnav-1-minor {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+li.currenttopnav-2-minor {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+li.currenttopnav-3-minor {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+li.currenttopnav-4-minor {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+li.currenttopnav-5-minor {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+li.currenttopnav-0-major {
+ border-bottom: solid white 1px;
+ padding-top: .25em;
+ padding-bottom: .5em;
+}
+li.currenttopnav-1-major {
+ border-bottom: solid white 1px;
+ padding-top: .25em;
+ padding-bottom: .5em;
+}
+li.currenttopnav-2-major {
+ border-bottom: solid white 1px;
+ padding-top: .25em;
+ padding-bottom: .5em;
+}
+li.currenttopnav-3-major {
+ border-bottom: solid white 1px;
+ padding-top: .25em;
+ padding-bottom: .5em;
+}
+li.currenttopnav-4-major {
+ border-bottom: solid white 1px;
+ padding-top: .25em;
+ padding-bottom: .5em;
+}
+li.currenttopnav-5-major {
+ border-bottom: solid white 1px;
+ padding-top: .25em;
+ padding-bottom: .5em;
+}
+
.topactions { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
@@ -381,6 +587,18 @@
margin-bottom:0;
}
+.menu-major-separator {
+ border-bottom: solid white 1px;
+ padding-top: .25em;
+ padding-bottom: .5em;
+}
+
+.menu-minor-separator {
+ border-top: solid #999999 1px;
+ padding-top: .1em;
+ margin-top: .5em;
+}
+
%# Provide a callback for adding/modifying the style sheet.
%# http://www.w3.org/TR/REC-CSS1 - section 3.2, says:
%# "latter specified rule wins"
More information about the Rt-commit
mailing list