Skip to content

Instantly share code, notes, and snippets.

@simplesessions
Created September 19, 2014 18:31
Show Gist options
  • Save simplesessions/4a29a4f88a211c292df0 to your computer and use it in GitHub Desktop.
Save simplesessions/4a29a4f88a211c292df0 to your computer and use it in GitHub Desktop.
mixin tabMenu
ul.menu.tabs(data-tab role="tablist")
if block
block
mixin tabMenuItem(id, label, active)
li(class="tab-title"+(active ? " active" : "") role="presentational")
a(href=("#"+id) role="tab" tabindex="0" aria-selected="true" controls=id)=label
mixin tabContentContainer
.tabs-content
if block
block
mixin tabContent(id, active)
section(role="tabpanel" aria-hidden="false" class="content"+(active ? " active" : "") id=id)
if block
block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment