From fe35d60b130c8b611bc8731e2f27f67d1207916a Mon Sep 17 00:00:00 2001 From: Daniel Vincent Grippi <Dan@SPEEDRACER.local> Date: Wed, 15 Sep 2010 11:44:56 -0700 Subject: [PATCH] hack on aspect nav for ff & chrome compatability --- app/views/shared/_aspect_nav.haml | 2 +- public/stylesheets/application.css | 9 ++++----- public/stylesheets/sass/application.sass | 10 +++++----- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/app/views/shared/_aspect_nav.haml b/app/views/shared/_aspect_nav.haml index 97f19aae00..67f0bc6a08 100644 --- a/app/views/shared/_aspect_nav.haml +++ b/app/views/shared/_aspect_nav.haml @@ -9,7 +9,7 @@ %li{:id => aspect.id, :class => ("selected" if current_aspect?(aspect))} = link_for_aspect aspect - %ul{ :style => "position:absolute;right:0;bottom:0;"} + %ul{ :style => "position:absolute;right:0;bottom:0.01em;"} %li{:class => ("selected" if @aspect == :all)} = link_to "All Aspects", root_url diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 9b7605ccfd..fdef9e4b98 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -442,8 +442,6 @@ h1.big_text { display: none; } #aspect_nav { - z-index: 4; - position: relative; color: black; margin-top: 8px; margin-bottom: 1px; } @@ -460,10 +458,11 @@ h1.big_text { display: inline; margin-right: 0.5em; } #aspect_nav ul > li a { + line-height: 22px; background-color: #444444; border: 1px solid #555555; padding: 3px 8px; - padding-bottom: 2px; + padding-bottom: 3px; color: #999999; } #aspect_nav ul > li a:hover { background-color: #4e4e4e; @@ -471,12 +470,12 @@ h1.big_text { #aspect_nav ul > li.selected a { text-shadow: 0 2px 0 white; padding-top: 4px; - padding-bottom: 4px; + padding-bottom: 5px; line-height: 18px; font-weight: bold; background-color: #eeeeee; border: 1px solid white; - border-bottom: none; + border-bottom: 1px solid #eeeeee; color: black; } #aspect_nav ul > li.selected a:hover { background-color: #efefef; } diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index ab97b351bd..02943e0cf1 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -578,8 +578,6 @@ h1.big_text :display none #aspect_nav - :z-index 4 - :position relative :color #000 :margin :top 8px @@ -606,12 +604,14 @@ h1.big_text :right 0.5em a + :line + :height 22px :background :color #444 :border 1px solid #555 :padding 3px 8px - :bottom 2px + :bottom 3px :color #999 &:hover @@ -623,7 +623,7 @@ h1.big_text :text-shadow 0 2px 0 #fff :padding :top 4px - :bottom 4px + :bottom 5px :line :height 18px :font @@ -631,7 +631,7 @@ h1.big_text :background :color #eee :border 1px solid #fff - :bottom none + :bottom 1px solid #eee :color #000 &:hover :background -- GitLab