Created
March 20, 2013 03:05
-
-
Save sirbrillig/5201993 to your computer and use it in GitHub Desktop.
bleed for SUSY grids. Borrowed from: http://stackoverflow.com/questions/11223927/susy-how-to-extend-content-box-to-cover-grid-padding-as-well
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 bleed($padding: $grid-padding, $sides: left right) { | |
@if $sides == 'all' { | |
margin: - $padding; | |
padding: $padding; | |
} @else { | |
@each $side in $sides { | |
margin-#{$side}: - $padding; | |
padding-#{$side}: $padding; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Although susy 1.0.6 now has one of these built-in.