Using pure css for styling odd and even menu items

This commit is contained in:
Maikel Linke
2015-02-19 10:22:37 +11:00
parent 346a4e71d0
commit bbac5aa803
2 changed files with 3 additions and 5 deletions

View File

@@ -7,9 +7,9 @@
font-size: 120%
cursor: pointer
text-transform: uppercase
&.odd
&:nth-child(odd)
background-color: #ebf3fb
&.even
&:nth-child(even)
background-color: #ffffff
&:hover
background-color: #eaf0f5

View File

@@ -3,8 +3,6 @@
ng: { repeat: '(index,item) in menu.items | filter:{visible:true}',
click: 'select(index)',
show: 'showItem(item) !== false',
class: '{ selected: item.selected}',
'class-odd' => "'odd'",
'class-even' => "'even'" } }
class: '{ selected: item.selected }' } }
%i{ class: "{{item.icon_class}}" }
%span {{ item.name }}