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 compass/reset.sass
|
||||
|
||||
body
|
||||
+blueprint
|
||||
// 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
|
||||
+blueprint-scaffolding
|
||||
+blueprint
|
||||
// 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
|
||||
+blueprint-scaffolding
|
||||
|
@ -3,9 +3,9 @@
|
||||
@import blueprint/modules/scaffolding.sass
|
||||
@import compass/reset.sass
|
||||
|
||||
body
|
||||
+blueprint
|
||||
+fancy-type
|
||||
// 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
|
||||
+blueprint-scaffolding
|
||||
|
||||
+blueprint
|
||||
+fancy-type
|
||||
// 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
|
||||
+blueprint-scaffolding
|
||||
|
@ -1,5 +1,4 @@
|
||||
@import blueprint/screen.sass
|
||||
@import compass/reset.sass
|
||||
|
||||
body.bp
|
||||
+blueprint
|
||||
+blueprint("body.bp")
|
@ -1,9 +1,8 @@
|
||||
@import blueprint/screen.sass
|
||||
@import compass/reset.sass
|
||||
|
||||
body
|
||||
+blueprint-grid
|
||||
+blueprint-typography
|
||||
+blueprint-utilities
|
||||
form.blueprint
|
||||
+blueprint-form
|
||||
+blueprint-grid
|
||||
+blueprint-typography
|
||||
+blueprint-utilities
|
||||
form.blueprint
|
||||
+blueprint-form
|
||||
|
@ -6,17 +6,19 @@
|
||||
.container
|
||||
+container
|
||||
|
||||
+blueprint-typography("body.blueprint")
|
||||
|
||||
body.blueprint
|
||||
+blueprint-typography
|
||||
html &
|
||||
+body-margins
|
||||
hr
|
||||
+colruler
|
||||
hr.space
|
||||
+colspacer
|
||||
img#w3c
|
||||
:margin-top 0
|
||||
:padding-top 0
|
||||
+body-margins
|
||||
|
||||
hr
|
||||
+colruler
|
||||
hr.space
|
||||
+colspacer
|
||||
|
||||
img#w3c
|
||||
:margin-top 0
|
||||
:padding-top 0
|
||||
|
||||
body#index
|
||||
#page-header
|
||||
|
@ -6,9 +6,9 @@
|
||||
@import modules/interaction.sass
|
||||
@import modules/debug.sass
|
||||
|
||||
=blueprint
|
||||
=blueprint(!body_selector = "body")
|
||||
+blueprint-grid
|
||||
+blueprint-typography
|
||||
+blueprint-typography(!body_selector)
|
||||
+blueprint-utilities
|
||||
+blueprint-debug
|
||||
+blueprint-interaction
|
||||
|
@ -12,18 +12,18 @@
|
||||
:margin-bottom 1.5em
|
||||
:background #E5ECF9
|
||||
|
||||
=blueprint-scaffolding
|
||||
html &
|
||||
=blueprint-scaffolding(!body_selector = "body")
|
||||
#{!body_selector}
|
||||
+body-margins
|
||||
.box
|
||||
+box
|
||||
// Border on right hand side of a column. You can comment this out if you don't plan to use it.
|
||||
div.border
|
||||
+border
|
||||
// Border with more whitespace, spans one column.
|
||||
div.colborder
|
||||
+colborder
|
||||
hr
|
||||
+colruler
|
||||
hr.space
|
||||
+colspacer
|
||||
.box
|
||||
+box
|
||||
// Border on right hand side of a column. You can comment this out if you don't plan to use it.
|
||||
div.border
|
||||
+border
|
||||
// Border with more whitespace, spans one column.
|
||||
div.colborder
|
||||
+colborder
|
||||
hr
|
||||
+colruler
|
||||
hr.space
|
||||
+colspacer
|
||||
|
@ -22,9 +22,10 @@
|
||||
=loud
|
||||
:color= !loud_color
|
||||
|
||||
=blueprint-typography
|
||||
+normal-text
|
||||
:font-size 75%
|
||||
=blueprint-typography(!body_selector = "body")
|
||||
#{!body_selector}
|
||||
+normal-text
|
||||
:font-size 75%
|
||||
h1
|
||||
+header-text
|
||||
:font-size 3em
|
||||
|
@ -2,8 +2,7 @@
|
||||
@import blueprint/modules/scaffolding.sass
|
||||
@import compass/reset.sass
|
||||
|
||||
body
|
||||
+blueprint
|
||||
// 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
|
||||
+blueprint-scaffolding
|
||||
+blueprint
|
||||
// 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
|
||||
+blueprint-scaffolding
|
||||
|
Loading…
Reference in New Issue
Block a user