LESS Declare variables using class names?
问题 I have a button class that sets up padding etc for an element, followed by a class that defines a background colour. .button { padding: 0.5em 1em; text-transform: uppercase; color: #fff; &.green { background:@green; //declared previously } // ... more colours } Is it possible to declare the @green variable as the class name? This would save me having to copy/paste the &.green block for each colour I am wanting to use. I've not been able to find anything the docs regarding this sort of