Created
January 28, 2017 00:31
-
-
Save ar-to/d02580fe83b77c16a1659abdd4bf5ea4 to your computer and use it in GitHub Desktop.
Sass & Scss mixing & extend for clearfix hack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//==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