mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
no more accessors.. they aren't very useful it turns out, with mixins
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
.magic-box {
|
||||
content: "gold";
|
||||
width: 60cm;
|
||||
height: 40cm;
|
||||
}
|
||||
.magic-box #lock { color: silver; }
|
||||
#accessors {
|
||||
content: "gold";
|
||||
width: 60cm;
|
||||
}
|
||||
.unlock {
|
||||
content: "gold";
|
||||
width: 60cm;
|
||||
height: 40cm;
|
||||
color: silver;
|
||||
border-color: orange;
|
||||
}
|
||||
.unlock #lock { color: silver; }
|
||||
@@ -1,20 +0,0 @@
|
||||
.magic-box {
|
||||
@trim: orange;
|
||||
content: "gold";
|
||||
width: 60cm;
|
||||
height: 40cm;
|
||||
#lock {
|
||||
color: silver;
|
||||
}
|
||||
}
|
||||
|
||||
#accessors {
|
||||
content: .magic-box['content']; // "gold"
|
||||
width: .magic-box['width']; // 60cm
|
||||
}
|
||||
|
||||
.unlock {
|
||||
.magic-box;
|
||||
color: #lock['color']; // silver
|
||||
border-color: .magic-box[@trim]; // orange
|
||||
}
|
||||
Reference in New Issue
Block a user