Created
June 15, 2015 22:26
-
-
Save craigthomasfrost/d8cf7f3cf725592daffa 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
| <ul class="bitcss-nav"> | |
| <li class="bitcss-nav__item"><a href="/">Archive</a> | |
| </li> | |
| <li class="bitcss-nav__item"><a href="/">About</a> | |
| </li> | |
| <li class="bitcss-nav__item"><a href="/">Contact</a> | |
| </li> | |
| </ul> | |
| <br> | |
| <ul class="nav"> | |
| <li class="nav__item--vertical"><a href="/">Archive</a> | |
| </li> | |
| <li class="nav__item--vertical"><a href="/">About</a> | |
| </li> | |
| <li class="nav__item--vertical"><a href="/">Contact</a> | |
| </li> | |
| </ul> |
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) | |
| // ---- | |
| // Reset | |
| * { | |
| margin:0; | |
| padding:0; | |
| box-sizing:border-box; | |
| font-family: helvetica neue, sans-serif; | |
| } | |
| html { | |
| padding:24px; | |
| } | |
| // Variables | |
| $bitcss-namespace: null !default; | |
| $bitcss-namespace: bitcss-; | |
| $bitcss-nav-namespace: $bitcss-namespace; | |
| $bitcss-nav-margin--horizontal: 24px !default; | |
| $bitcss-nav-margin--vertical: 16px !default; | |
| // Mixins | |
| @mixin element($element) { | |
| &__#{$element} { | |
| @content; | |
| } | |
| } | |
| @mixin modifier($modifier) { | |
| &--#{$modifier} { | |
| @content; | |
| } | |
| } | |
| // Nav component | |
| .#{$bitcss-nav-namespace}nav, | |
| %#{$bitcss-nav-namespace}nav { | |
| margin-bottom: 0; | |
| padding-left: 0; | |
| list-style: none; | |
| a { | |
| text-decoration: none; | |
| color: inherit; | |
| } | |
| @include element(item) { | |
| display: inline-block; | |
| & + & { | |
| margin-left: $bitcss-nav-margin--horizontal; | |
| } | |
| @include modifier(vertical) { | |
| display: block; | |
| & + & { | |
| margin-top: $bitcss-nav-margin--vertical; | |
| } | |
| } | |
| } | |
| } | |
| // Placeholder extending classes | |
| .nav { | |
| @extend %bitcss-nav; | |
| a:hover { | |
| color:lightGreen; | |
| } | |
| } | |
| .nav__item { | |
| @extend %bitcss-nav__item; | |
| } | |
| .nav__item--vertical { | |
| @extend %bitcss-nav__item--vertical; | |
| } | |
| // Theming | |
| .bitcss-nav { | |
| a:hover { | |
| color: lightBlue; | |
| } | |
| } |
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
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: helvetica neue, sans-serif; | |
| } | |
| html { | |
| padding: 24px; | |
| } | |
| .bitcss-nav, | |
| .nav { | |
| margin-bottom: 0; | |
| padding-left: 0; | |
| list-style: none; | |
| } | |
| .bitcss-nav a, | |
| .nav a { | |
| text-decoration: none; | |
| color: inherit; | |
| } | |
| .bitcss-nav__item, | |
| .nav__item { | |
| display: inline-block; | |
| } | |
| .bitcss-nav__item + .bitcss-nav__item, | |
| .nav__item + .nav__item { | |
| margin-left: 24px; | |
| } | |
| .bitcss-nav__item--vertical, | |
| .nav__item--vertical { | |
| display: block; | |
| } | |
| .bitcss-nav__item--vertical + .bitcss-nav__item--vertical, | |
| .nav__item--vertical + .nav__item--vertical { | |
| margin-top: 16px; | |
| } | |
| .nav a:hover { | |
| color: lightGreen; | |
| } | |
| .bitcss-nav a:hover { | |
| color: lightBlue; | |
| } |
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
| <ul class="bitcss-nav"> | |
| <li class="bitcss-nav__item"><a href="/">Archive</a> | |
| </li> | |
| <li class="bitcss-nav__item"><a href="/">About</a> | |
| </li> | |
| <li class="bitcss-nav__item"><a href="/">Contact</a> | |
| </li> | |
| </ul> | |
| <br> | |
| <ul class="nav"> | |
| <li class="nav__item--vertical"><a href="/">Archive</a> | |
| </li> | |
| <li class="nav__item--vertical"><a href="/">About</a> | |
| </li> | |
| <li class="nav__item--vertical"><a href="/">Contact</a> | |
| </li> | |
| </ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment