Created
December 31, 2012 00:41
-
-
Save kidpollo/4416416 to your computer and use it in GitHub Desktop.
Greedy css minimalist css grid system in scss
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
| $columns: 16; | |
| $gutter: 25px; | |
| * { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; | |
| } | |
| @mixin clearfix { | |
| *zoom: 1; | |
| &:before, | |
| &:after { content: ""; display: table; } | |
| &:after { clear: both; } | |
| } | |
| @mixin row { | |
| @include clearfix; | |
| padding-bottom: $gutter; | |
| &:first-child { padding-top: $gutter; } | |
| } | |
| @mixin column($x: 1, $cols: $columns) { | |
| float: left; | |
| padding-left: $gutter; | |
| width: percentage(1 / $cols * $x); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment