From d2efe643438c6c0a950c7ea657a2ce1985149990 Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Fri, 19 Jun 2009 21:38:51 +0200 Subject: [PATCH] Fixed display bug in menu when using IE. Closes #15 --- app/views/layouts/application.haml | 3 +++ public/stylesheets/ie_hacks.css | 8 ++++++++ public/stylesheets/sass/ie_hacks.sass | 9 +++++++++ 3 files changed, 20 insertions(+) create mode 100644 public/stylesheets/ie_hacks.css create mode 100644 public/stylesheets/sass/ie_hacks.sass diff --git a/app/views/layouts/application.haml b/app/views/layouts/application.haml index 1d2659cc..a137eaeb 100644 --- a/app/views/layouts/application.haml +++ b/app/views/layouts/application.haml @@ -5,6 +5,9 @@ %title= "FoodSoft - " + (yield(:title) or controller.controller_name) = stylesheet_link_tag 'foodsoft' = stylesheet_link_tag "print", :media => "print" + = javascript_include_tag 'prototype' = javascript_include_tag 'effects' = javascript_include_tag 'controls' diff --git a/public/stylesheets/ie_hacks.css b/public/stylesheets/ie_hacks.css new file mode 100644 index 00000000..99c22274 --- /dev/null +++ b/public/stylesheets/ie_hacks.css @@ -0,0 +1,8 @@ +#nav { + text-align: left; } + #nav ul { + margin: 0; } + #nav ul li.current a:hover { + color: #fff; } + #nav ul li.current ul { + width: 100%; } diff --git a/public/stylesheets/sass/ie_hacks.sass b/public/stylesheets/sass/ie_hacks.sass new file mode 100644 index 00000000..fa1c49e1 --- /dev/null +++ b/public/stylesheets/sass/ie_hacks.sass @@ -0,0 +1,9 @@ +#nav + text-align: left + ul + margin: 0 + li.current + a:hover + color: #fff + ul + width: 100% \ No newline at end of file