frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass in chriseppstein-compass-0.5.5 vs frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass in chriseppstein-compass-0.5.9
- old
+ new
@@ -13,11 +13,11 @@
// * Khoi Vinh [subtraction.com]
// Read more about using a grid here:
// * subtraction.com/archives/2007/0318_oh_yeeaahh.php
// --------------------------------------------------------------
-@import compass/utilities/general/clearfix.sass
+@import compass/utilities/general/float.sass
// Main layout grid, override these constants to build your grid and container sizes.
!blueprint_grid_columns ||= 24
!blueprint_grid_width ||= 30px
!blueprint_grid_margin ||= 10px
@@ -75,16 +75,18 @@
=span(!n)
:width = !blueprint_grid_width * !n + (!blueprint_grid_margin * (!n - 1))
// Use this mixins to set the width of n columns.
=column(!n, !last = false)
- :float left
+ +float-left
+span(!n)
@if !last
+last
@else
:margin-right = !blueprint_grid_margin
+ * html &
+ :overflow-x hidden
// Mixin to a column to append n empty cols.
=append(!n)
:padding-right = (!blueprint_grid_outer_width) * !n
@@ -92,19 +94,19 @@
=prepend(!n)
:padding-left = (!blueprint_grid_outer_width) * !n
// mixin to a column to move it n columns to the left
=pull(!n, !last = false)
- :float left
+ +float-left
:position relative
@if !last
:margin-left = (-!blueprint_grid_outer_width * !n) + !blueprint_grid_margin
@else
:margin-left = -!blueprint_grid_outer_width * !n
// mixin to a column to push it n columns to the right
=push(!n)
- :float right
+ +float-right
:position relative
:margin
:top 0
:right = -!blueprint_grid_outer_width * !n
:bottom 1.5em