get Attribute from other class
Am I stupid, or is this just not possible with LESS?
page {
widht: 1000px; }
content {
width: #page.width - 300; }
Would be so awesome useful, so I am writing this a feature request here.
Why not just use variables?
@pagewidth: 1000px;
#page { width: @pagewidth; }
#content { width: @pagewidth - 300; }
Possible Overhead in Big-Projects
I guess I can't imagine a scenario where it wouldn't be manageable. Not to say it won't happen, but I'd love to see a use case where use of variables wouldn't be suitable.
-1
If you can't use variables in your project than you are using less wrong way.
Your team must learn that refactoring css gives company big profit in long run.
@MokoJumbie's approach is the "correct" LESS approach. You can't reference a property value in that way.