modifs aspect & h3,h4

This commit is contained in:
Nico 2013-02-13 10:28:45 +01:00
parent 6407aaf07d
commit 407b6c1323
3 changed files with 33 additions and 11 deletions

View File

@ -77,7 +77,7 @@ body{
}
#main{
h1{
h1, h2,h3,h4{
color :#00ade2;
}
@ -87,6 +87,25 @@ body{
.menu{
ul{
a{
color:black;
&:hover,&.active{
color :#00ade2;
}
}
padding-left:1em;
list-style-type:circle;
}
}

View File

@ -32,6 +32,8 @@
%a{"data-wysihtml5-command" => "formatBlock", "data-wysihtml5-command-value" => "h1"} h1
%a{"data-wysihtml5-command" => "formatBlock", "data-wysihtml5-command-value" => "h2"} h2
%a{"data-wysihtml5-command" => "formatBlock", "data-wysihtml5-command-value" => "h3"} h3
%a{"data-wysihtml5-command" => "formatBlock", "data-wysihtml5-command-value" => "h4"} h4
%a.rte-rte_unordered_list{"data-wysihtml5-command" => "insertUnorderedList"}

View File

@ -1,19 +1,20 @@
-content_for :sidebar do
-if @menu_item.parent_id
-if @menu_item.ancestors.reverse[0]
-first_level_menu = @menu_item.ancestors.reverse[0]
.menu
-if @menu_item.parent_id
-if @menu_item.ancestors.reverse[0]
-first_level_menu = @menu_item.ancestors.reverse[0]
-else
-else
-first_level_menu = @menu_item
-first_level_menu = @menu_item
-if first_level_menu.children.size > 0
-if first_level_menu.children.size > 0
%h3=@menu_item.name
%ul
-first_level_menu.children.where(:enabled => true).order(:position).each do |menu_item|
%h3=@menu_item.name
%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)