Skip to content

Instantly share code, notes, and snippets.

@neutraltone
Created February 16, 2016 09:16
Show Gist options
  • Save neutraltone/225efdf413d7314824a4 to your computer and use it in GitHub Desktop.
Save neutraltone/225efdf413d7314824a4 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="header header--sticky">
<div class="header__container header__container--active">
<nav>navigation</nav>
</div>
</div>
// ----
// libsass (v3.2.5)
// ----
.header {
display: block;
width: 100%;
padding: 1em;
background: blue;
&__container {
padding: 1em;
background: orange;
&--active {
background: red;
}
}
&--sticky {
position: fixed;
top: 0;
left: 0;
}
}
.header {
display: block;
width: 100%;
padding: 1em;
background: blue;
}
.header__container {
padding: 1em;
background: orange;
}
.header__container--active {
background: red;
}
.header--sticky {
position: fixed;
top: 0;
left: 0;
}
<div class="header header--sticky">
<div class="header__container header__container--active">
<nav>navigation</nav>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment