mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Change extend format to :extend(.class); - part 1 - support for stand-alone &:extend(.class);
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
}
|
||||
|
||||
.foo {
|
||||
++.clearfix;
|
||||
&:extend(.clearfix);
|
||||
color: red;
|
||||
}
|
||||
|
||||
.bar {
|
||||
++.clearfix;
|
||||
&:extend(.clearfix);
|
||||
color: blue;
|
||||
}
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
}
|
||||
|
||||
.sidebar2 {
|
||||
++.sidebar;
|
||||
&:extend(.sidebar);
|
||||
background: blue;
|
||||
}
|
||||
|
||||
.type1 {
|
||||
.sidebar3 {
|
||||
++.sidebar;
|
||||
&:extend(.sidebar);
|
||||
background: green;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
display: none;
|
||||
}
|
||||
.badError {
|
||||
++.error;
|
||||
&:extend(.error);
|
||||
border-width: 3px;
|
||||
}
|
||||
|
||||
@@ -19,12 +19,12 @@
|
||||
}
|
||||
|
||||
.ext1 .ext2 {
|
||||
++.foo;
|
||||
&:extend(.foo);
|
||||
}
|
||||
|
||||
.ext3,
|
||||
.ext4 {
|
||||
++.foo;
|
||||
&:extend(.foo);
|
||||
}
|
||||
|
||||
div.ext5,
|
||||
@@ -33,5 +33,5 @@ div.ext5,
|
||||
}
|
||||
|
||||
.ext7 {
|
||||
++.ext5;
|
||||
&:extend(.ext5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user