Fixed display bug in menu when using IE. Closes #15
This commit is contained in:
parent
2af35e55bc
commit
d2efe64343
3 changed files with 20 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
||||||
%title= "FoodSoft - " + (yield(:title) or controller.controller_name)
|
%title= "FoodSoft - " + (yield(:title) or controller.controller_name)
|
||||||
= stylesheet_link_tag 'foodsoft'
|
= stylesheet_link_tag 'foodsoft'
|
||||||
= stylesheet_link_tag "print", :media => "print"
|
= stylesheet_link_tag "print", :media => "print"
|
||||||
|
<!--[if lte IE 7]>
|
||||||
|
= stylesheet_link_tag 'ie_hacks'
|
||||||
|
<![endif]-->
|
||||||
= javascript_include_tag 'prototype'
|
= javascript_include_tag 'prototype'
|
||||||
= javascript_include_tag 'effects'
|
= javascript_include_tag 'effects'
|
||||||
= javascript_include_tag 'controls'
|
= javascript_include_tag 'controls'
|
||||||
|
|
8
public/stylesheets/ie_hacks.css
Normal file
8
public/stylesheets/ie_hacks.css
Normal file
|
@ -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%; }
|
9
public/stylesheets/sass/ie_hacks.sass
Normal file
9
public/stylesheets/sass/ie_hacks.sass
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#nav
|
||||||
|
text-align: left
|
||||||
|
ul
|
||||||
|
margin: 0
|
||||||
|
li.current
|
||||||
|
a:hover
|
||||||
|
color: #fff
|
||||||
|
ul
|
||||||
|
width: 100%
|
Loading…
Reference in a new issue