Merge branch 'stable' of github.com:chriseppstein/compass into stable

This commit is contained in:
Scott Davis 2011-06-12 02:56:27 -04:00
commit 6712c65ce7
7 changed files with 35 additions and 10 deletions

View File

@ -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. **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 * Added a new command: `compass clean` which removes any generated
css files and clears the sass cache. css files and clears the sass cache.
* Enable IE 10 support for flexible box with the -ms prefix. * Enable IE 10 support for flexible box with the -ms prefix.
@ -32,7 +35,7 @@ The Documentation for the [latest preview release](http://beta.compass-style.org
* Numerous small bug fixes to sprites. * Numerous small bug fixes to sprites.
* Sprite Engines are now classes see [Docs](/help/tutorials/extending) for more information * Sprite Engines are now classes see [Docs](/help/tutorials/extending) for more information
* Sprite classes have bee re-factored into modules for readability * 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) 0.11.2 (06/10/2011)
------------------- -------------------

View File

@ -18,7 +18,7 @@
// [Easy Clearing](http://www.positioniseverything.net/easyclearing.html) // [Easy Clearing](http://www.positioniseverything.net/easyclearing.html)
// has the advantage of allowing positioned elements to hang // has the advantage of allowing positioned elements to hang
// outside the bounds of the container at the expense of more tricky CSS. // outside the bounds of the container at the expense of more tricky CSS.
@mixin pie-clearfix { @mixin legacy-pie-clearfix {
&:after { &:after {
content : "\0020"; content : "\0020";
display : block; display : block;
@ -30,14 +30,14 @@
@include has-layout; @include has-layout;
} }
// An update to the PIE clearfix method that reduces the amount of CSS required // This is an updated version of the PIE clearfix method that reduces the amount of CSS output.
// [A new micro clearfix hack](http://nicolasgallagher.com/micro-clearfix-hack/) (25 April 2011) // If you need to support Firefox before 3.5 you need to use `legacy-pie-clearfix` instead.
@mixin micro-clearfix { //
&:before, &:after { // Adapted from: [A new micro clearfix hack](http://nicolasgallagher.com/micro-clearfix-hack/)
@mixin pie-clearfix {
&:after {
content: ""; content: "";
display: table; display: table;
}
&:after {
clear: both; clear: both;
} }
@include has-layout; @include has-layout;

View File

@ -84,7 +84,7 @@ module Compass
def run def run
if new_config? if new_config?
# Wipe out the cache and force compilation if the configuration has changed. # 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 options[:force] = true
end end

View File

@ -15,3 +15,12 @@
visibility: hidden; } visibility: hidden; }
.pie-clearfix { .pie-clearfix {
display: block; } display: block; }
.simplified-pie-clearfix {
display: inline-block; }
.simplified-pie-clearfix:after {
content: "";
display: table;
clear: both; }
.simplified-pie-clearfix {
display: block; }

View File

@ -12,6 +12,13 @@
overflow: hidden; overflow: hidden;
visibility: hidden; } visibility: hidden; }
.simple-pie-clearfix {
*zoom: 1; }
.simple-pie-clearfix:after {
content: "";
display: table;
clear: both; }
p.light { p.light {
background-color: #b0201e; background-color: #b0201e;
color: black; } color: black; }

View File

@ -7,5 +7,8 @@ $default-has-layout-approach: block;
} }
.pie-clearfix { .pie-clearfix {
@include legacy-pie-clearfix;
}
.simplified-pie-clearfix {
@include pie-clearfix; @include pie-clearfix;
} }

View File

@ -5,7 +5,10 @@
} }
.pie-clearfix { .pie-clearfix {
@include pie-clearfix; @include legacy-pie-clearfix;
}
.simple-pie-clearfix {
@include pie-clearfix;
} }
p.light { @include contrasted(#B0201E); } p.light { @include contrasted(#B0201E); }