Add Sass like extend

This commit is contained in:
hokaccha
2011-12-05 23:19:13 +09:00
committed by Luke Page
parent 61e7bd6fb1
commit e793e81e92
10 changed files with 206 additions and 8 deletions

View File

@@ -0,0 +1,19 @@
.clearfix {
*zoom: 1;
&:after {
content: '';
display: block;
clear: both;
height: 0;
}
}
.foo {
+.clearfix;
color: red;
}
.bar {
+.clearfix;
color: blue;
}