From 94f8ce6ec2a064822d41f78211216fb216b153bf Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 22 Mar 2010 19:46:15 +0000 Subject: [PATCH] 1.9-style menubar was hurting my eyes --- httemplate/elements/freeside.css | 58 ++++++++++++++++++++++++++++++++++++++++ httemplate/elements/menubar.html | 24 ++++++----------- 2 files changed, 66 insertions(+), 16 deletions(-) diff --git a/httemplate/elements/freeside.css b/httemplate/elements/freeside.css index fc246f5e7..f20793b71 100644 --- a/httemplate/elements/freeside.css +++ b/httemplate/elements/freeside.css @@ -38,3 +38,61 @@ input[type="reset"]:hover, input[type="submit"]:hover, input[class="button"]:hov /* a:focus { background-color: #ccccee } */ +a.fstab { + background-color:#cccccc; + color: #000000; + border:1px solid; + border-top-color:#666666; + border-left-color:#666666; + border-right-color:#666666; + border-bottom-color:#7e0079; + -moz-border-radius-topleft:8px; + -moz-border-radius-topright:8px; + -webkit-border-radius-topleft:8px; + -webkit-border-radius-topright:8px; + border-radius-topleft:8px; + border-radius-topright:8px; + /*font-weight:bold;*/ + /*padding-left:12px; + padding-right:12px;*/ + padding-left:4px; + padding-right:4px; + font-size:16px; + text-decoration:none; + overflow:visible; +} +a.fstab:hover { + text-decoration:none; +} + +/* a:link:hover.fsblackbutton, +a:visited:hover.fsblackbutton +*/ +a.fstabselected { + background-color:#f8f8f8; + color: #000000; + border:1px solid; + border-top-color:#7e0079; + border-left-color:#7e0079; + border-right-color:#7e0079; + border-bottom-color:#ffffff; + -moz-border-radius-topleft:8px; + -moz-border-radius-topright:8px; + -webkit-border-radius-topleft:8px; + -webkit-border-radius-topright:8px; + border-radius-topleft:8px; + border-radius-topright:8px; + /*font-weight:bold;*/ + /*padding-left:12px; + padding-right:12px;*/ + padding-left:4px; + padding-right:4px; + font-size:16px; + text-decoration:none; + overflow:visible; +} +a.fstabselected:hover { + text-decoration:none; + color: #000000; +} + diff --git a/httemplate/elements/menubar.html b/httemplate/elements/menubar.html index 0a2de25c9..3d2a1073d 100644 --- a/httemplate/elements/menubar.html +++ b/httemplate/elements/menubar.html @@ -19,17 +19,11 @@ Example: %if ( $opt->{'newstyle'} ) { +% my $s = ''; - - - - - - - -
- <% join(' ', @html ) %> -
+
+ <% join("$s  
", ( '', @html, '' ) ) %> +
%} else { @@ -52,13 +46,11 @@ while (@_) { if ( $opt->{'newstyle'} ) { my $dclass = $item eq $opt->{'selected'} - ? 'fsblackbuttonselected' - : 'fsblackbutton'; + ? 'fstabselected' + : 'fstab'; + + $style = qq( CLASS="$dclass" ); - $style = - qq( CLASS="$dclass" ). - qq( onMouseOver="this.className='fsblackbuttonselected'; return true;" ). - qq( onMouseOut="this.className='$dclass'; return true;" ); } push @html, qq!$item!; -- 2.11.0