是否可以使用较少的css基于另一个变量分配一个变量?
伪代码:
@userpick = red; /* this changes based on user pick */
@color1 = red;
@color2 = blue;
if( @userpick == @color1)
@systempick = @color2
else( @userpick == @color2)
@systempick = @color1
我希望能够@systempick
用作颜色值而不是 CSS 样式。例如:
border: 5px dashed @systempick;