문제

I can't use shorthand when I need to use variable arithmetic in SASS,

This is expected result:

text-shadow: 0 -2px white;

But when I code this:

$shadow: 2px;
text-shadow: 0 -$shadow white;

But I get this:

text-shadow: -2px white;

How to fix that?

도움이 되었습니까?

해결책

Found a solution:

text-shadow: 0 #{-$shadow} white;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top