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,7 +2,6 @@
@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

View File

@ -3,7 +3,7 @@
@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.

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,7 +1,6 @@
@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

View File

@ -6,14 +6,16 @@
.container .container
+container +container
+blueprint-typography("body.blueprint")
body.blueprint body.blueprint
+blueprint-typography
html &
+body-margins +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

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,8 +12,8 @@
: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

View File

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

View File

@ -2,7 +2,6 @@
@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