mirror of
https://github.com/less/less.js.git
synced 2026-02-08 14:05:24 -05:00
Add Sass like extend
This commit is contained in:
22
test/less/extend-nest.less
Normal file
22
test/less/extend-nest.less
Normal file
@@ -0,0 +1,22 @@
|
||||
.sidebar {
|
||||
width: 300px;
|
||||
background: red;
|
||||
|
||||
.box {
|
||||
background: #FFF;
|
||||
border: 1px solid #000;
|
||||
margin: 10px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar2 {
|
||||
+.sidebar;
|
||||
background: blue;
|
||||
}
|
||||
|
||||
.type1 {
|
||||
.sidebar3 {
|
||||
+.sidebar;
|
||||
background: green;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user