mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Using pure css for styling odd and even menu items
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user