Sha256: b84e9829667d75547a7c13d7a09bbb37a35a42b8e15d1ab16b02d57c84703c5a

Contents?: true

Size: 1.06 KB

Versions: 6

Compression:

Stored size: 1.06 KB

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.
//
// This method of clearing might cause a gap at the bottom of the page in
// some browsers when used on the last element of the page.
@mixin pie-clearfix {
  &:after {
    content    : " ";
    display    : block;
    height     : 0;
    clear      : both;
    overflow   : hidden;
    visibility : hidden;
  }
  @include has-layout;
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
compass-0.10.2 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.1 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.0 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.0.rc6 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.0.rc5 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss
compass-0.10.0.rc4 frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss