From 0f8b4b0e8ad8c235d228a89040deaec71a1c4e2b Mon Sep 17 00:00:00 2001 From: Matthew Spencer Date: Wed, 29 Apr 2015 08:52:28 -0400 Subject: [PATCH] Pass media query breakpoint to column mixins Allows grid usage for multiple breakpoints --- less/preboot.less | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/less/preboot.less b/less/preboot.less index c4f6daf..138edac 100644 --- a/less/preboot.less +++ b/less/preboot.less @@ -75,8 +75,8 @@ // Then clear the floated columns .clearfix(); } -.make-column(@columns) { - @media (min-width: @grid-float-breakpoint) { +.make-column(@columns, @screen-width: @grid-float-breakpoint) { + @media (min-width: @screen-width) { float: left; // Calculate width based on number of columns available width: percentage(@columns / @grid-columns); @@ -89,8 +89,8 @@ // Proper box-model (padding doesn't add to width) .box-sizing(border-box); } -.make-column-offset(@columns) { - @media (min-width: @grid-float-breakpoint) { +.make-column-offset(@columns, @screen-width: @grid-float-breakpoint) { + @media (min-width: @screen-width) { margin-left: percentage(@columns / @grid-columns); } }