Last active
December 20, 2015 17:58
-
-
Save babsgosgens/6172510 to your computer and use it in GitHub Desktop.
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
@mixin column-width($fraction: $column-width-default, $persistent: false) | |
{ | |
@if $persistent { | |
width: fraction-to-percentage($fraction) !important; | |
} | |
@else { | |
width: fraction-to-percentage($fraction); | |
} | |
@if $column-breakpoint { | |
@include breakpoint( $column-breakpoint ) { | |
width: 100%; | |
} | |
} | |
// /* | |
// *Remove negative margin on elements that span full width of their container | |
// */ | |
@if $fraction == 1/1 and $negative-right-margin { | |
margin-right: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment