Modify alpha opacity of LESS variable

后端 未结 2 535
刺人心
刺人心 2021-01-30 07:30

Using LESS, I know that I can change the saturation or tint of a color variable. That looks like this:

background: lighten(@blue, 20%);

I want

2条回答
  •  日久生厌
    2021-01-30 08:24

    The site documentation gives the answer:

    background: fade(@blue, 20%);
    

    The function name is fade not alpha according to that document.

提交回复
热议问题