Sha256: 2abadc66cfa00bd41784239d637bd6dfe6fc69800f219196f2a896bce7e9d659

Contents?: true

Size: 949 Bytes

Versions: 31

Compression:

Stored size: 949 Bytes

Contents

// @doc off
// Extends the bottom of the element to enclose any floats it contains.
// @doc on

@import "hacks";

// This basic method is preferred for the usual case, when positioned
// content will not show outside the bounds of the container.
//
// Recommendations include using this in conjunction with a width.
// Credit: [quirksmode.org](http://www.quirksmode.org/blog/archives/2005/03/clearing_floats.html)
@mixin clearfix {
  overflow: hidden;
  @include has-layout;
}

// This older method from Position Is Everything called
// [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 {
  &:after {
    content    : "\0020";
    display    : block;
    height     : 0;
    clear      : both;
    overflow   : hidden;
    visibility : hidden;
  }
  @include has-layout;
}

Version data entries

31 entries across 28 versions & 2 rubygems

Version Path
compass-0.11.alpha.0 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.6 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.6.pre.1 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.5 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.5.pre.1 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.4 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.4.pre.4 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.4.pre.3 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.4.pre.2 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.3 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.3.pre.1 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss