Permalink
Browse files

Added padding variable to eliminate dividing the gutter variable in m…

…y stylesheet
  • Loading branch information...
1 parent 2e270a6 commit 52fdf65e55b87cb3d7febe87dcd7652578c460ca @jimmynotjim jimmynotjim committed Aug 10, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 assets/less/grid.less
  2. +2 −1 assets/scss/grid.scss
@@ -12,6 +12,7 @@
/* Utility variable — you should never need to modify this */
@gridsystem_width: @columns * 1px;
+@padding:$gutter_width*0.5;
@correction: 0.5 / @max_width * 100 * 1%; // NOTE: CHeck this in IE
/* The micro clearfix http://nicolasgallagher.com/micro-clearfix-hack */
@@ -47,7 +48,7 @@
}
/* Our column container */
-.column(@x, @padding:(@gutter_width*0.5), @columns:@columns){
+.column(@x, @padding:@padding, @columns:@columns){
.border-box();
display: inline;
@@ -11,6 +11,7 @@
// Utility variable — you should never need to modify this
$gridsystem_width: $columns * 1px;
+$padding:$gutter_width*0.5;
//$correction: 0.5 / $max_width * 100 * 1%; // NOTE: Check this in IE
// Ensure grid columns are set to border-boxes. This is essential
@@ -32,7 +33,7 @@ $gridsystem_width: $columns * 1px;
}
// Our column container
-@mixin column($x, $padding:($gutter_width*0.5), $columns:$columns){
+@mixin column($x, $padding:$padding, $columns:$columns){
@include border-box();
display: inline;

0 comments on commit 52fdf65

Please sign in to comment.