From 0a0a14aab597d2ec31ff9d267f6ee8cfad878e10 Mon Sep 17 00:00:00 2001 From: tdreyno Date: Fri, 5 Jun 2009 11:22:50 -0700 Subject: [PATCH] [Blueprint] Allow variable blueprint border widths and colors. --- .../stylesheets/blueprint/modules/_grid.sass | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass b/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass index 419d6081..13af963e 100644 --- a/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +++ b/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass @@ -139,16 +139,16 @@ +push-margins(!n) // Border on right hand side of a column. -=border - :padding-right = !blueprint_grid_margin / 2 - 1 +=border(!border_color = #eee, !border_width = 1px) + :padding-right = !blueprint_grid_margin / 2 - !border_width :margin-right = !blueprint_grid_margin / 2 - :border-right 1px solid #eee + :border-right #{!border_width} solid #{!border_color} // Border with more whitespace, spans one column. -=colborder - :padding-right= (!blueprint_grid_width - 2 * !blueprint_grid_margin - 1)/2 - :margin-right= (!blueprint_grid_width - 2 * !blueprint_grid_margin)/2 - :border-right 1px solid #eee +=colborder(!border_color = #eee, !border_width = 1px) + :padding-right= floor((!blueprint_grid_width - 2 * !blueprint_grid_margin - !border_width)/2) + :margin-right= ceil((!blueprint_grid_width - 2 * !blueprint_grid_margin - !border_width)/2) + :border-right #{!border_width} solid #{!border_color} // Mixin this to an hr to make a horizontal ruler across a column. =colruler