123456789101112131415161718192021222324252627282930313233 |
- #ns {
- .mixin(@a) when (@a = 1) {
- @a: 20px;
- }
- }
- .alias() {
- #ns.mixin(1);
- }
- #library {
- .core() {
- .colors() {
- primary: blue;
- foreground: white;
- }
- }
- }
- #library {
- .core() {
- .colors() {
- primary: rebeccapurple;
- }
- }
- }
- .foo {
- .colors() { #library.core.colors; }
- width: .alias[@a];
- background: .colors[primary];
- color: .colors[foreground];
- }
|