[Blueprint] Allow variable blueprint border widths and colors.

This commit is contained in:
tdreyno 2009-06-05 11:22:50 -07:00 committed by Chris Eppstein
parent 8b5379e864
commit 0a0a14aab5

View File

@ -139,16 +139,16 @@
+push-margins(!n) +push-margins(!n)
// Border on right hand side of a column. // Border on right hand side of a column.
=border =border(!border_color = #eee, !border_width = 1px)
:padding-right = !blueprint_grid_margin / 2 - 1 :padding-right = !blueprint_grid_margin / 2 - !border_width
:margin-right = !blueprint_grid_margin / 2 :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. // Border with more whitespace, spans one column.
=colborder =colborder(!border_color = #eee, !border_width = 1px)
:padding-right= (!blueprint_grid_width - 2 * !blueprint_grid_margin - 1)/2 :padding-right= floor((!blueprint_grid_width - 2 * !blueprint_grid_margin - !border_width)/2)
:margin-right= (!blueprint_grid_width - 2 * !blueprint_grid_margin)/2 :margin-right= ceil((!blueprint_grid_width - 2 * !blueprint_grid_margin - !border_width)/2)
:border-right 1px solid #eee :border-right #{!border_width} solid #{!border_color}
// Mixin this to an hr to make a horizontal ruler across a column. // Mixin this to an hr to make a horizontal ruler across a column.
=colruler =colruler