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