Skip to content

Commit

Permalink
Merge branch 'stable' of github.com:chriseppstein/compass into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
scottdavis committed Jun 12, 2011
2 parents 6bb9904 + 2d81e0a commit 6712c65
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 10 deletions.
5 changes: 4 additions & 1 deletion doc-src/content/CHANGELOG.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ The Documentation for the [latest preview release](http://beta.compass-style.org

**Note:** Due to some internal changes to compass you may have issue with your sass cache. Run `compass clean` to clear your cache.

* The `pie-clearfix` mixin has been updated. If you have to
support Firefox < 3.5, please update your stylesheets
to use `legacy-pie-clearfix` instead.
* Added a new command: `compass clean` which removes any generated
css files and clears the sass cache.
* Enable IE 10 support for flexible box with the -ms prefix.
Expand All @@ -32,7 +35,7 @@ The Documentation for the [latest preview release](http://beta.compass-style.org
* Numerous small bug fixes to sprites.
* Sprite Engines are now classes see [Docs](/help/tutorials/extending) for more information
* Sprite classes have bee re-factored into modules for readability
* Sprites will no longer cause `undefined method 'find' for #<Compass::SpriteMap` when adding or removing sprite files
* Sprites will no longer cause `undefined method 'find' for #<Compass::SpriteMap>` when adding or removing sprite files

0.11.2 (06/10/2011)
-------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// [Easy Clearing](http://www.positioniseverything.net/easyclearing.html)
// has the advantage of allowing positioned elements to hang
// outside the bounds of the container at the expense of more tricky CSS.
@mixin pie-clearfix {
@mixin legacy-pie-clearfix {
&:after {
content : "\0020";
display : block;
Expand All @@ -30,14 +30,14 @@
@include has-layout;
}

// An update to the PIE clearfix method that reduces the amount of CSS required
// [A new micro clearfix hack](http://nicolasgallagher.com/micro-clearfix-hack/) (25 April 2011)
@mixin micro-clearfix {
&:before, &:after {
// This is an updated version of the PIE clearfix method that reduces the amount of CSS output.
// If you need to support Firefox before 3.5 you need to use `legacy-pie-clearfix` instead.
//
// Adapted from: [A new micro clearfix hack](http://nicolasgallagher.com/micro-clearfix-hack/)
@mixin pie-clearfix {
&:after {
content: "";
display: table;
}
&:after {
clear: both;
}
@include has-layout;
Expand Down
2 changes: 1 addition & 1 deletion lib/compass/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def clean!
def run
if new_config?
# Wipe out the cache and force compilation if the configuration has changed.
FileUtils.rm_rf options[:cache_location]
remove options[:cache_location]
options[:force] = true
end

Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/stylesheets/compass/css/legacy_clearfix.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@
visibility: hidden; }
.pie-clearfix {
display: block; }

.simplified-pie-clearfix {
display: inline-block; }
.simplified-pie-clearfix:after {
content: "";
display: table;
clear: both; }
.simplified-pie-clearfix {
display: block; }
7 changes: 7 additions & 0 deletions test/fixtures/stylesheets/compass/css/utilities.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
overflow: hidden;
visibility: hidden; }

.simple-pie-clearfix {
*zoom: 1; }
.simple-pie-clearfix:after {
content: "";
display: table;
clear: both; }

p.light {
background-color: #b0201e;
color: black; }
Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/stylesheets/compass/sass/legacy_clearfix.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ $default-has-layout-approach: block;
}

.pie-clearfix {
@include legacy-pie-clearfix;
}
.simplified-pie-clearfix {
@include pie-clearfix;
}
5 changes: 4 additions & 1 deletion test/fixtures/stylesheets/compass/sass/utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
}

.pie-clearfix {
@include pie-clearfix;
@include legacy-pie-clearfix;
}
.simple-pie-clearfix {
@include pie-clearfix;
}

p.light { @include contrasted(#B0201E); }
Expand Down

0 comments on commit 6712c65

Please sign in to comment.