Backward Incompatible Change: Removed unnecessary html/body scoping for reset rules and made reset.sass a standalone stylesheet.

To perform a reset, simply @import compass/reset.sass

To perform a selective reset, you should @import compass/utilities/general/reset.sass which will provide
reset mixins without defining any css rules.
This commit is contained in:
Andrew Vit 2008-10-02 07:58:55 -07:00 committed by Chris Eppstein
parent 5aa24e6c5e
commit 278cda2ed6
16 changed files with 59 additions and 109 deletions

View File

@ -62,14 +62,15 @@ frameworks/blueprint/templates/project/grid.png
frameworks/blueprint/templates/project/ie.sass
frameworks/blueprint/templates/project/print.sass
frameworks/blueprint/templates/project/screen.sass
frameworks/compass/stylesheets/compass/_reset.sass
frameworks/compass/stylesheets/compass/_utilities.sass
frameworks/compass/stylesheets/compass/reset.sass
frameworks/compass/stylesheets/compass/utilities/_general.sass
frameworks/compass/stylesheets/compass/utilities/_links.sass
frameworks/compass/stylesheets/compass/utilities/_lists.sass
frameworks/compass/stylesheets/compass/utilities/_tables.sass
frameworks/compass/stylesheets/compass/utilities/_text.sass
frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass
frameworks/compass/stylesheets/compass/utilities/general/_reset.sass
frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass
frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass
frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass

View File

@ -2,9 +2,6 @@
@import blueprint/modules/scaffolding.sass
@import compass/reset.sass
html
+reset-html
body
+blueprint
// Remove the scaffolding when you're ready to start doing visual design.

View File

@ -3,9 +3,6 @@
@import blueprint/modules/scaffolding.sass
@import compass/reset.sass
html
+reset-html
body
+blueprint
+fancy-type

View File

@ -1,8 +1,5 @@
@import blueprint/screen.sass
@import compass/reset.sass
html
+reset-html
body.bp
+blueprint

View File

@ -1,9 +1,6 @@
@import blueprint/screen.sass
@import compass/reset.sass
html
+reset-html
body
+blueprint-grid
+blueprint-typography

View File

@ -3,9 +3,6 @@
@import blueprint/modules/scaffolding.sass
@import compass/reset.sass
html
+reset-html
.container
+container

View File

@ -5,12 +5,11 @@
@import blueprint/modules/scaffolding.sass
html
+reset-html
+yui-base
h2
:margin-top 0
:border-bottom 2px solid #777
h2
:margin-top 0
:border-bottom 2px solid #777
#utilities
+container

View File

@ -1,9 +1,6 @@
@import yui/screen.sass
@import compass/reset.sass
html
+reset-html
body
+yui

View File

@ -2,9 +2,6 @@
@import blueprint/modules/scaffolding.sass
@import compass/reset.sass
html
+reset-html
body
+blueprint
// Remove the scaffolding when you're ready to start doing visual design.

View File

@ -1,73 +0,0 @@
=reset
:margin 0
:padding 0
:border 0
:font
:weight inherit
:style inherit
:size 100%
:family inherit
:vertical-align baseline
=reset-quotation
+reset
:quotes "" ""
&:before,
&:after
:content ""
=reset-table-cell
+reset
:text-align left
:font-weight normal
:vertical-align middle
=reset-table
+reset
:border-collapse separate
:border-spacing 0
:vertical-align middle
=reset-body-tag
+reset
:line-height 1.5
// Mix this into the html element of your application
// if you want a global reset (recommended).
=reset-html
+reset
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p
+reset
body
+reset-body-tag
blockquote, q
+reset-quotation
pre, a, abbr, acronym, address, code, del, dfn, em, img
+reset
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr
+reset
th, td, caption
+reset-table-cell
table
+reset-table
a img
:border none
// Mix this into the body element
// if you want a selective reset
=reset-body
+reset-body-tag
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p
+reset
blockquote, q
+reset-quotation
pre, a, abbr, acronym, address, code, del, dfn, em, img
+reset
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr
+reset
th, td, caption
+reset-table-cell
table
+reset-table
a img
:border none

View File

@ -0,0 +1,24 @@
@import utilities/general/reset.sass
// Global reset rules.
// For more specific resets, use the reset mixins provided by
// compass/utilities/general/reset
html
+reset
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p
+reset
body
+reset
:line-height 1.5
blockquote, q
+reset-quotation
pre, a, abbr, acronym, address, code, del, dfn, em, img
+reset
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr
+reset
th, td, caption
+reset-table-cell
table
+reset-table
a img
:border none

View File

@ -1,3 +1,3 @@
@import general/reset.sass
@import general/clearfix.sass
@import general/tag_cloud.sass

View File

@ -0,0 +1,29 @@
=reset
:margin 0
:padding 0
:border 0
:font
:weight inherit
:style inherit
:size 100%
:family inherit
:vertical-align baseline
=reset-quotation
+reset
:quotes "" ""
&:before,
&:after
:content ""
=reset-table-cell
+reset
:text-align left
:font-weight normal
:vertical-align middle
=reset-table
+reset
:border-collapse separate
:border-spacing 0
:vertical-align middle

View File

@ -2,6 +2,3 @@
Welcome to Compass. We'll show you the way, but you'll have to get there on your own.
In this file you should write (or centralize your imports) the main styles.
@import compass/reset.sass
html
+reset-html

View File

@ -1,8 +1,5 @@
@import yui/screen.sass
@import compass/reset.sass
html
+reset-html
body
+yui

View File

@ -1,9 +1,6 @@
@import blueprint/screen
@import compass/reset
html
+reset-html
body
+blueprint
#main.container