Last active
December 16, 2015 13:48
-
-
Save rdebeasi/5443823 to your computer and use it in GitHub Desktop.
This tweak allows you to remove gutters from some columns in Bootstrap 2 while leaving margins on other columns intact. (To remove gutters from all columns, just change the column and gutter variables in variables.less).
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
@import "mixins.less"; | |
@import "variables.less"; | |
.grid-no-gutter { | |
/* Removes margin from Bootstrap Grid. This class goes at least one level above row-fluid. | |
Works in Bootstrap 2. In Bootstrap 3, #grid has been removed. */ | |
#grid > .fluid( percentage( 1 / @gridColumns ), 0 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment