Changes to blueprint mixins so that they can be mixed into the top level and avoid having scoped selectors that add to their weight.

This commit is contained in:
Chris Eppstein 2008-12-05 12:02:20 -08:00
parent c11289e36a
commit 605658fab2
9 changed files with 52 additions and 53 deletions

View File

@ -2,8 +2,7 @@
@import blueprint/modules/scaffolding.sass @import blueprint/modules/scaffolding.sass
@import compass/reset.sass @import compass/reset.sass
body +blueprint
+blueprint // Remove the scaffolding when you're ready to start doing visual design.
// 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
// Or leave it in if you're happy with how blueprint looks out-of-the-box +blueprint-scaffolding
+blueprint-scaffolding

View File

@ -3,9 +3,9 @@
@import blueprint/modules/scaffolding.sass @import blueprint/modules/scaffolding.sass
@import compass/reset.sass @import compass/reset.sass
body
+blueprint +blueprint
+fancy-type +fancy-type
// Remove the scaffolding when you're ready to start doing visual design. // 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 // Or leave it in if you're happy with how blueprint looks out-of-the-box
+blueprint-scaffolding +blueprint-scaffolding

View File

@ -1,5 +1,4 @@
@import blueprint/screen.sass @import blueprint/screen.sass
@import compass/reset.sass @import compass/reset.sass
body.bp +blueprint("body.bp")
+blueprint

View File

@ -1,9 +1,8 @@
@import blueprint/screen.sass @import blueprint/screen.sass
@import compass/reset.sass @import compass/reset.sass
body +blueprint-grid
+blueprint-grid +blueprint-typography
+blueprint-typography +blueprint-utilities
+blueprint-utilities form.blueprint
form.blueprint +blueprint-form
+blueprint-form

View File

@ -6,17 +6,19 @@
.container .container
+container +container
+blueprint-typography("body.blueprint")
body.blueprint body.blueprint
+blueprint-typography +body-margins
html &
+body-margins hr
hr +colruler
+colruler hr.space
hr.space +colspacer
+colspacer
img#w3c img#w3c
:margin-top 0 :margin-top 0
:padding-top 0 :padding-top 0
body#index body#index
#page-header #page-header

View File

@ -6,9 +6,9 @@
@import modules/interaction.sass @import modules/interaction.sass
@import modules/debug.sass @import modules/debug.sass
=blueprint =blueprint(!body_selector = "body")
+blueprint-grid +blueprint-grid
+blueprint-typography +blueprint-typography(!body_selector)
+blueprint-utilities +blueprint-utilities
+blueprint-debug +blueprint-debug
+blueprint-interaction +blueprint-interaction

View File

@ -12,18 +12,18 @@
:margin-bottom 1.5em :margin-bottom 1.5em
:background #E5ECF9 :background #E5ECF9
=blueprint-scaffolding =blueprint-scaffolding(!body_selector = "body")
html & #{!body_selector}
+body-margins +body-margins
.box .box
+box +box
// Border on right hand side of a column. You can comment this out if you don't plan to use it. // Border on right hand side of a column. You can comment this out if you don't plan to use it.
div.border div.border
+border +border
// Border with more whitespace, spans one column. // Border with more whitespace, spans one column.
div.colborder div.colborder
+colborder +colborder
hr hr
+colruler +colruler
hr.space hr.space
+colspacer +colspacer

View File

@ -22,9 +22,10 @@
=loud =loud
:color= !loud_color :color= !loud_color
=blueprint-typography =blueprint-typography(!body_selector = "body")
+normal-text #{!body_selector}
:font-size 75% +normal-text
:font-size 75%
h1 h1
+header-text +header-text
:font-size 3em :font-size 3em

View File

@ -2,8 +2,7 @@
@import blueprint/modules/scaffolding.sass @import blueprint/modules/scaffolding.sass
@import compass/reset.sass @import compass/reset.sass
body +blueprint
+blueprint // Remove the scaffolding when you're ready to start doing visual design.
// 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
// Or leave it in if you're happy with how blueprint looks out-of-the-box +blueprint-scaffolding
+blueprint-scaffolding