Last active
August 29, 2015 14:24
-
-
Save tddewey/a80fc395776b619fea3c to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header class="header header--mobile"> | |
<nav class="header-nav"> | |
<a href="#">hello</a> | |
</nav> | |
</header> | |
<header class="header-block -mobile"> | |
<nav class="nav"> | |
<a href="#">hi</a> | |
</nav> | |
</header> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
.header { | |
// mobile modifier | |
&--mobile { | |
background: red; | |
} | |
// nav block | |
&-nav { | |
background: green; | |
a { color: black }; | |
} | |
} | |
/// RSCSS | |
.header-block { | |
// mobile variant | |
&.-mobile { | |
background: red; | |
} | |
> .nav { | |
background: green; | |
} | |
> .nav > a { | |
color: black; | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.header--mobile { | |
background: red; | |
} | |
.header-nav { | |
background: green; | |
} | |
.header-nav a { | |
color: black; | |
} | |
.header-block.-mobile { | |
background: red; | |
} | |
.header-block > .nav { | |
background: green; | |
} | |
.header-block > .nav > a { | |
color: black; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header class="header header--mobile"> | |
<nav class="header-nav"> | |
<a href="#">hello</a> | |
</nav> | |
</header> | |
<header class="header-block -mobile"> | |
<nav class="nav"> | |
<a href="#">hi</a> | |
</nav> | |
</header> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment