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:
parent
c11289e36a
commit
605658fab2
@ -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
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
|
@ -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
|
||||||
|
@ -6,15 +6,17 @@
|
|||||||
.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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user