Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong credit for "clearfix" #23578

Closed
thierryk opened this issue Aug 20, 2017 · 0 comments
Closed

Wrong credit for "clearfix" #23578

thierryk opened this issue Aug 20, 2017 · 0 comments

Comments

@thierryk
Copy link

The doc about clearfix says:

Easily clear floats by adding .clearfix to the parent element. Utilizes the micro clearfix as popularized by Nicolas Gallagher. Can also be used as a mixin.

but the clearfix rule in v4 looks like this:

@mixin clearfix() {
  &::after {
    display: block;
    clear: both;
    content: "";
  }
}

which resembles more to the "clearfix" rule from this article on cssmojo.com:

.clearfix:after {
  content: "";
  display: block;
  clear: both;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants