-
-
Save mrmurphy/6134912 to your computer and use it in GitHub Desktop.
This file contains 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
@mixin columns ($span: $cols of $cont-cols after $shift clearing $clear, $display: block ) { | |
$cols: nth($span, 1); | |
$cont-cols: nth($span, 3); | |
$shift: nth($span, 5); | |
$clear: nth($span, 7); | |
@include span-columns( $cols of $cont-cols, $display ); | |
@include shift($shift); | |
@if $clear != 0 { | |
margin-right: ($clear * flex-gutter()) + flex-grid($clear); | |
} | |
} |
This file contains 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
// This will make the div 6 columns wide, with 3 columns of padding on either side. | |
foo { | |
@include columns ( 6 of 12 after 3 clearing 3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment