Skip to content

Instantly share code, notes, and snippets.

@moxdev
Last active January 16, 2017 17:07
Show Gist options
  • Save moxdev/87fb41beccf8a5aecf16bde1aaa967ee to your computer and use it in GitHub Desktop.
Save moxdev/87fb41beccf8a5aecf16bde1aaa967ee to your computer and use it in GitHub Desktop.
Basic masthead sass layout
// masthead.scss
#masthead {
width: 100%;
height: 80px;
display: flex;
justify-content: space-between;
.site-branding {
max-width: 100px;
}
.main-navigation {
.menu-toggle {
}
.menu-primary-menu-container {
ul {
display: none;
li {
.current-menu-item {
a {
}
}
}
a {
}
ul {
li {
}
a {
}
}
}
}
}
.toggled .menu-primary-menu-container ul {
display: block;
}
}
@moxdev
Copy link
Author

moxdev commented Jan 16, 2017

Updated with flexbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment