Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
Micro Clearfix - Scss 플레이스홀더(Placeholder)
//micro-clearfix.scss 모듈 호출
@import "micro-clearfix";
#page {
nav ul.navi, .article{
@extend %clearfix;
//클래스 사용유무 변수
$use-class: false;
$hook: if($use-class == true, '.', '%');
//마이크로 클리어픽스
#{$hook}clearfix::after, {
content: '';
display: table;
#{$hook}clearfix::after {clear: both;}
#{$hook}clearfix {zoom: 1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment