Skip to content

Instantly share code, notes, and snippets.

@s0ber
Last active December 12, 2015 00:09
Show Gist options
  • Save s0ber/4681712 to your computer and use it in GitHub Desktop.
Save s0ber/4681712 to your computer and use it in GitHub Desktop.
Menu states markup
.header
- # our header with lots content
.menu.for-header
- menu_items.each do |item|
.menu__item{class: "has-#{item.icon}_icon #{'is-active' if item.active?}"}
.content
- # ...
.footer
- # footer
.menu.for-footer
- menu_items.each do |item|
.menu__item{class: "has-#{item.icon}_icon #{'is-active' if item.active?}"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment