Sha256: bf6d8d76589455da4e106135317f289c42e6db08e8df2ca4d85ac9e1c41a7c1b

Contents?: true

Size: 1.33 KB

Versions: 75

Compression:

Stored size: 1.33 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.
@mixin legacy-pie-clearfix {
  &:after {
    content    : "\0020";
    display    : block;
    height     : 0;
    clear      : both;
    overflow   : hidden;
    visibility : hidden;
  }
  @include has-layout;
}

// 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;
    clear: both;
  }
  @include has-layout;
}

Version data entries

75 entries across 74 versions & 13 rubygems

Version Path
comixins-0.1.2 vendor/assets/stylesheets/compass/utilities/general/_clearfix.scss
arcabouco-0.2.13 vendor/bundle/gems/compass-core-1.0.3/stylesheets/compass/utilities/general/_clearfix.scss
egghead-styles-1.0.82 app/assets/stylesheets/plugins/compass/compass/utilities/general/_clearfix.scss
egghead-styles-1.0.81 app/assets/stylesheets/plugins/compass/compass/utilities/general/_clearfix.scss
egghead-styles-1.0.80 app/assets/stylesheets/plugins/compass/compass/utilities/general/_clearfix.scss
egghead-styles-1.0.79 app/assets/stylesheets/plugins/compass/compass/utilities/general/_clearfix.scss
egghead-styles-1.0.78 app/assets/stylesheets/plugins/compass/compass/utilities/general/_clearfix.scss
egghead-styles-1.0.77 app/assets/stylesheets/plugins/compass/compass/utilities/general/_clearfix.scss
egghead-styles-1.0.76 app/assets/stylesheets/plugins/compass/compass/utilities/general/_clearfix.scss
egghead-styles-1.0.75 app/assets/stylesheets/plugins/compass/compass/utilities/general/_clearfix.scss
egghead-styles-1.0.74 app/assets/stylesheets/plugins/compass/compass/utilities/general/_clearfix.scss
egghead-styles-1.0.73 app/assets/stylesheets/plugins/compass/compass/utilities/general/_clearfix.scss
gem_2345-0.1.2 stylesheets/compass/utilities/general/_clearfix.scss
ghost-manager-1.0.0 magneto/source/assets/bower_components/compass-mixins/lib/compass/utilities/general/_clearfix.scss
compass-core-1.0.3 stylesheets/compass/utilities/general/_clearfix.scss
compass-core-1.1.0.alpha.3 stylesheets/compass/utilities/general/_clearfix.scss
compass-core-1.1.0.alpha.2 stylesheets/compass/utilities/general/_clearfix.scss
compass-core-1.1.0.alpha.1 stylesheets/compass/utilities/general/_clearfix.scss
compass-core-1.1.0.alpha.0 stylesheets/compass/utilities/general/_clearfix.scss
compass-core-1.0.1 stylesheets/compass/utilities/general/_clearfix.scss