On second thought: Don't scope blueprint grid classes within the container. This will make them difficult to override and BP-css doesn't do it.
This commit is contained in:
parent
9b6f5159ed
commit
32133bc478
@ -30,32 +30,32 @@
|
|||||||
// A container should group all your columns
|
// A container should group all your columns
|
||||||
.container
|
.container
|
||||||
+container
|
+container
|
||||||
// Use these classes (or mixins) to set the width of a column.
|
// Use these classes (or mixins) to set the width of a column.
|
||||||
@for !n from 1 to !blueprint_grid_columns + 1
|
@for !n from 1 to !blueprint_grid_columns + 1
|
||||||
.span-#{!n}
|
.span-#{!n}
|
||||||
+span(!n)
|
+span(!n)
|
||||||
div
|
div
|
||||||
&.span-#{!n}
|
&.span-#{!n}
|
||||||
+column(!n, !n == !blueprint_grid_columns)
|
+column(!n, !n == !blueprint_grid_columns)
|
||||||
// The last column in a row needs this class (or mixin) or it will end up on the next row.
|
// The last column in a row needs this class (or mixin) or it will end up on the next row.
|
||||||
div.last
|
div.last
|
||||||
+last
|
+last
|
||||||
// Add these to a column to append empty cols.
|
// Add these to a column to append empty cols.
|
||||||
@for !n from 1 to !blueprint_grid_columns
|
@for !n from 1 to !blueprint_grid_columns
|
||||||
.append-#{!n}
|
.append-#{!n}
|
||||||
+append(!n)
|
+append(!n)
|
||||||
// Add these to a column to prepend empty cols.
|
// Add these to a column to prepend empty cols.
|
||||||
@for !n from 1 to !blueprint_grid_columns
|
@for !n from 1 to !blueprint_grid_columns
|
||||||
.prepend-#{!n}
|
.prepend-#{!n}
|
||||||
+prepend(!n)
|
+prepend(!n)
|
||||||
// Use these classes on an element to push it into the
|
// Use these classes on an element to push it into the
|
||||||
// next column, or to pull it into the previous column.
|
// next column, or to pull it into the previous column.
|
||||||
@for !n from 1 to !blueprint_grid_columns + 1
|
@for !n from 1 to !blueprint_grid_columns + 1
|
||||||
.pull-#{!n}
|
.pull-#{!n}
|
||||||
+pull(!n)
|
+pull(!n)
|
||||||
@for !n from 1 to !blueprint_grid_columns + 1
|
@for !n from 1 to !blueprint_grid_columns + 1
|
||||||
.push-#{!n}
|
.push-#{!n}
|
||||||
+push(!n)
|
+push(!n)
|
||||||
|
|
||||||
|
|
||||||
// Columns
|
// Columns
|
||||||
|
@ -48,32 +48,32 @@
|
|||||||
// A container should group all your columns
|
// A container should group all your columns
|
||||||
.container
|
.container
|
||||||
+container
|
+container
|
||||||
// Use these classes (or mixins) to set the width of a column.
|
// Use these classes (or mixins) to set the width of a column.
|
||||||
@for !n from 1 to !blueprint_liquid_grid_columns + 1
|
@for !n from 1 to !blueprint_liquid_grid_columns + 1
|
||||||
.span-#{!n}
|
.span-#{!n}
|
||||||
+span(!n)
|
+span(!n)
|
||||||
div
|
div
|
||||||
&.span-#{!n}
|
&.span-#{!n}
|
||||||
+column(!n, !n == !blueprint_liquid_grid_columns)
|
+column(!n, !n == !blueprint_liquid_grid_columns)
|
||||||
// The last column in a row needs this class (or mixin) or it will end up on the next row.
|
// The last column in a row needs this class (or mixin) or it will end up on the next row.
|
||||||
div.last
|
div.last
|
||||||
+last
|
+last
|
||||||
// Add these to a column to append empty cols.
|
// Add these to a column to append empty cols.
|
||||||
@for !n from 1 to !blueprint_liquid_grid_columns
|
@for !n from 1 to !blueprint_liquid_grid_columns
|
||||||
.append-#{!n}
|
.append-#{!n}
|
||||||
+append(!n)
|
+append(!n)
|
||||||
// Add these to a column to prepend empty cols.
|
// Add these to a column to prepend empty cols.
|
||||||
@for !n from 1 to !blueprint_liquid_grid_columns
|
@for !n from 1 to !blueprint_liquid_grid_columns
|
||||||
.prepend-#{!n}
|
.prepend-#{!n}
|
||||||
+prepend(!n)
|
+prepend(!n)
|
||||||
// Use these classes on an element to push it into the
|
// Use these classes on an element to push it into the
|
||||||
// next column, or to pull it into the previous column.
|
// next column, or to pull it into the previous column.
|
||||||
@for !n from 1 to !blueprint_liquid_grid_columns + 1
|
@for !n from 1 to !blueprint_liquid_grid_columns + 1
|
||||||
.pull-#{!n}
|
.pull-#{!n}
|
||||||
+pull(!n)
|
+pull(!n)
|
||||||
@for !n from 1 to !blueprint_liquid_grid_columns + 1
|
@for !n from 1 to !blueprint_liquid_grid_columns + 1
|
||||||
.push-#{!n}
|
.push-#{!n}
|
||||||
+push(!n)
|
+push(!n)
|
||||||
|
|
||||||
=container
|
=container
|
||||||
:min-width= !blueprint_liquid_container_min_width
|
:min-width= !blueprint_liquid_container_min_width
|
||||||
|
Loading…
Reference in New Issue
Block a user