Created
September 12, 2014 14:31
-
-
Save rdmurphy/630a385aea63e1ab5cbc 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
| // ---- | |
| // libsass (v2.0.0) | |
| // ---- | |
| $em-base: 16px; | |
| @function em($pxval, $base: $em-base) { | |
| @if unitless($pxval) { | |
| $pxval: $pxval * 1px | |
| } | |
| @if unitless($base) { | |
| $base: $base * 1px; | |
| } | |
| @return ($pxval / $base) * 1em; | |
| } | |
| $grid-columns: 12 !default; | |
| $gutter: em(20); | |
| @mixin columns($columns, $container-columns: $grid-columns) { | |
| display: block; | |
| float: left; | |
| margin-right: $gutter; | |
| &:last-child { | |
| margin-right: 0; | |
| } | |
| } | |
| .story { | |
| @include columns(8); | |
| } |
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
| .story { | |
| display: block; | |
| float: left; | |
| margin-right: 1.25em; } | |
| .story:last-child { | |
| margin-right: 0; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment