compass/frameworks/blueprint/templates/project/screen.sass
Chris Eppstein 24d4ff4146 [Blueprint] Make the primary blueprint mixins easier to use by allowing them to be nested when passing true as the first argument.
The old approach of passing a selector as the first argument is now deprecated in favor of a simple flag to indicate nesting or not.
2009-08-29 12:26:36 -07:00

41 lines
1.5 KiB
Sass

// This import applies a global reset to any page that imports this stylesheet.
@import blueprint/reset.sass
// To configure blueprint, edit the partials/base.sass file.
@import partials/base.sass
// Import all the default blueprint modules so that we can access their mixins.
@import blueprint
// Import the non-default scaffolding module.
@import blueprint/modules/scaffolding.sass
// To generate css equivalent to the blueprint css but with your configuration applied, uncomment:
// +blueprint
//Recommended Blueprint configuration with scoping and semantic layout:
+blueprint-scaffolding("body.bp")
body.bp
+blueprint-typography(true)
+blueprint-utilities
+blueprint-debug
+blueprint-interaction
// Remove the scaffolding when you're ready to start doing visual design.
// Or leave it in if you're happy with how blueprint looks out-of-the-box
form.bp
+blueprint-form
// Page layout can be done using mixins applied to your semantic classes and IDs:
body.three-col
#container
+container
#header, #footer
+column(!blueprint_grid_columns)
#sidebar
// One third of the grid columns, rounding down. With 24 cols, this is 8.
!sidebar_columns = floor(!blueprint_grid_columns / 3)
+column(!sidebar_columns)
#content
// Two thirds of the grid columns, rounding up.
// With 24 cols, this is 16.
!content_columns = ceil(2 * !blueprint_grid_columns / 3)
// true means it's the last column in the row
+column(!content_columns, true)