Skip to content

Instantly share code, notes, and snippets.

@babsgosgens
Last active December 20, 2015 17:58
Show Gist options
  • Save babsgosgens/6172510 to your computer and use it in GitHub Desktop.
Save babsgosgens/6172510 to your computer and use it in GitHub Desktop.
@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