Sha256: 755e6753a82607893d65e40036ba1ebc69a55bbdcbd3925a826967acf2ed725b

Contents?: true

Size: 605 Bytes

Versions: 202

Compression:

Stored size: 605 Bytes

Contents

// Clearfix
//
// For modern browsers
// 1. The space content is one way to avoid an Opera bug when the
//    contenteditable attribute is included anywhere else in the document.
//    Otherwise it causes space to appear at the top and bottom of elements
//    that are clearfixed.
// 2. The use of `table` rather than `block` is only necessary if using
//    `:before` to contain the top-margins of child elements.
//
// Source: http://nicolasgallagher.com/micro-clearfix-hack/

.clearfix() {
  &:before,
  &:after {
    content: " "; // 1
    display: table; // 2
  }
  &:after {
    clear: both;
  }
}

Version data entries

202 entries across 202 versions & 33 rubygems

Version Path
twitter-bootstrap-rails-5.0.0 vendor/toolkit/twitter/bootstrap/mixins/clearfix.less
mno-enterprise-frontend-3.4.0 app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/clearfix.less
card-1.97.0 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
card-1.96.8 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
sanskrit-documentation-theme-0.1.8 assets/node_modules/bootstrap/less/mixins/clearfix.less
card-1.96.7 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
card-1.96.6 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
card-1.96.5 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
card-1.96.4 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
card-1.96.3 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
mno-enterprise-frontend-3.3.3 app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/clearfix.less
card-1.96.2 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
card-1.96.1 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
card-1.96.0 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
scc-less-rails-bootstrap-3.3.5.2 app/frameworks/twitter/bootstrap/mixins/clearfix.less
card-1.95.3 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
card-1.95.2 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
card-1.95.1 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
card-1.95.0 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/mixins/clearfix.less
optimacms-0.3.35 node_modules/tinymce-dist/node_modules/bootstrap/less/mixins/clearfix.less