mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Add Sass like extend
This commit is contained in:
19
test/less/extend-clearfix.less
Normal file
19
test/less/extend-clearfix.less
Normal file
@@ -0,0 +1,19 @@
|
||||
.clearfix {
|
||||
*zoom: 1;
|
||||
&:after {
|
||||
content: '';
|
||||
display: block;
|
||||
clear: both;
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.foo {
|
||||
+.clearfix;
|
||||
color: red;
|
||||
}
|
||||
|
||||
.bar {
|
||||
+.clearfix;
|
||||
color: blue;
|
||||
}
|
||||
Reference in New Issue
Block a user