From 49a2dcdabcfda640b9a128b9f0273811d3302c5f Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Thu, 18 Jul 2013 14:52:19 +0200 Subject: [PATCH] modifs menu droite --- app/assets/stylesheets/public.less | 43 +++++++++++++++++++--- app/views/public/menu_items/show.html.haml | 9 ++++- 2 files changed, 46 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/public.less b/app/assets/stylesheets/public.less index f67ad24..771e8e9 100644 --- a/app/assets/stylesheets/public.less +++ b/app/assets/stylesheets/public.less @@ -29,7 +29,7 @@ body{ margin-right:1em; } .quote{ - font-family:Desyrel; + font-size:1.4em; line-height:1.2em; text-align:left; @@ -142,7 +142,7 @@ body{ } .quote{ - font-family:Desyrel; + font-size:1.4em; line-height:1.2em; text-align:left; @@ -174,6 +174,36 @@ body{ h3{ margin:0 0 1em 0; } + + ul{ + li{ + margin:0.6em 0; + + a{ + color:white; + &.active, &:hover{ + font-weight:bold; + color:white; + text-decoration:none; + } + + } + + ul{ + li{ + margin:0.2em 0; + color:rgba(220,230,202,1); + a{ + color:rgba(220,230,202,1); + } + + } + } + + + } + } + } } @@ -183,13 +213,16 @@ body{ .menu{ - .active{ - font-weight:bold; - } + color:white; h3{ a{ color:white; + &.active, &:hover{ + font-weight:bold; + color:white; + } + } } ul{ diff --git a/app/views/public/menu_items/show.html.haml b/app/views/public/menu_items/show.html.haml index aa13d8a..7f25879 100644 --- a/app/views/public/menu_items/show.html.haml +++ b/app/views/public/menu_items/show.html.haml @@ -14,7 +14,14 @@ %ul -first_level_menu.children.where(:enabled => true).order(:position).each do |menu_item| - %li=menu_item_link(menu_item) + %li + =menu_item_link(menu_item) + -if menu_item.children.where(:enabled => true).size > 0 + %ul + -menu_item.children.where(:enabled => true).order(:position).each do |menu_item| + %li=menu_item_link(menu_item) + +