Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…y stylesheet
  • Loading branch information...
commit 52fdf65e55b87cb3d7febe87dcd7652578c460ca 1 parent 2e270a6
@jimmynotjim jimmynotjim authored
Showing with 4 additions and 2 deletions.
  1. +2 −1  assets/less/grid.less
  2. +2 −1  assets/scss/grid.scss
View
3  assets/less/grid.less
@@ -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;
View
3  assets/scss/grid.scss
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.