Skip to content

Instantly share code, notes, and snippets.

@ar-to
Created January 28, 2017 00:31
Show Gist options
  • Save ar-to/d02580fe83b77c16a1659abdd4bf5ea4 to your computer and use it in GitHub Desktop.
Save ar-to/d02580fe83b77c16a1659abdd4bf5ea4 to your computer and use it in GitHub Desktop.
Sass & Scss mixing & extend for clearfix hack
//==SASS
//==SASS extend
.clearfix
content: ""
display: table
clear: both
//Use
.row:before
@extend .clearfix
.row:after
@extend .clearfix
//CSS file shows
/*.clearfix, .row:before, .row:after {
content: "";
display: table; }*/
//See this site for SCSS code https://web-design-weekly.com/snippets/sass-clearfix-mixin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment