diff --git a/app/assets/stylesheets/public.css.scss b/app/assets/stylesheets/public.css.scss index cdff506..f170de7 100644 --- a/app/assets/stylesheets/public.css.scss +++ b/app/assets/stylesheets/public.css.scss @@ -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; + } + + } + + + + diff --git a/app/views/portlet/text_contents/_form.html.haml b/app/views/portlet/text_contents/_form.html.haml index 34a7ff7..7c11ce8 100644 --- a/app/views/portlet/text_contents/_form.html.haml +++ b/app/views/portlet/text_contents/_form.html.haml @@ -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"} diff --git a/app/views/public/menu_items/show.html.haml b/app/views/public/menu_items/show.html.haml index bfbd103..b1cd6c2 100644 --- a/app/views/public/menu_items/show.html.haml +++ b/app/views/public/menu_items/show.html.haml @@ -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)