Commit de88f620afe7756171f1093eed17566c9f18c4e9

Authored by Victor Costa
1 parent 8b917333

Fix categories menu

Showing 2 changed files with 13 additions and 44 deletions   Show diff stats
categories.rhtml
1 <ul id="cat_menu"> 1 <ul id="cat_menu">
2 - <% @environment.display_categories.each do |item| %>  
3 - <li id="category<%= item.display_color %>">  
4 - <%= item.name %> 2 + <% @environment.top_level_categories.find(:all, :conditions => {:display_in_menu => true}).each do |item| %>
  3 + <li id="category category_<%= item.path %>" >
  4 + <%= link_to(item.name, {:controller => :search, :action => 'category_index', :category_path => item.path }, :title => item.name, :style=>"color: ##{item.display_color || '000000'}" ) %>
5 </li> 5 </li>
6 <% end %> 6 <% end %>
7 </ul><!-- fim id="cat_menu" --> 7 </ul><!-- fim id="cat_menu" -->
@@ -548,51 +548,20 @@ label { @@ -548,51 +548,20 @@ label {
548 list-style: none; 548 list-style: none;
549 font-size: 12px; 549 font-size: 12px;
550 font-weight: bold; 550 font-weight: bold;
551 - padding: 15px 20px; 551 + padding: 0px 20px;
  552 + height: 100%;
552 text-transform: uppercase; 553 text-transform: uppercase;
553 } 554 }
554 555
555 -#cat_menu li#category1 {  
556 - color: #ba4a00  
557 -}  
558 -#cat_menu li#category2 {  
559 - color: #3b7390  
560 -}  
561 -#cat_menu li#category3 {  
562 - color: #643c67  
563 -}  
564 -#cat_menu li#category4 {  
565 - color: #826938  
566 -}  
567 -#cat_menu li#category5 {  
568 - color: #1D571F  
569 -}  
570 -#cat_menu li#category6 {  
571 - color: #017b16  
572 -}  
573 -#cat_menu li#category7 {  
574 - color: #1a55dd  
575 -}  
576 -#cat_menu li#category8 {  
577 - color: #753900  
578 -}  
579 -#cat_menu li#category9 {  
580 - color: #56762b 556 +#cat_menu li:hover {
  557 + background-color: #E1E4E4;
581 } 558 }
582 -#cat_menu li#category10 {  
583 - color: #3867b7  
584 -}  
585 -#cat_menu li#category11 {  
586 - color: #00439e  
587 -}  
588 -#cat_menu li#category12 {  
589 - color: #00A0DB  
590 -}  
591 -#cat_menu li#category13 {  
592 - color: #AD6500  
593 -}  
594 -#cat_menu li#category14 {  
595 - color: #DE9200 559 +
  560 +#cat_menu li a {
  561 + line-height: 40px;
  562 + width: 100%;
  563 + height: 100%;
  564 + display: block;
596 } 565 }
597 566
598 /* Search Button */ 567 /* Search Button */