在 LESS 中,我使用的是 screen($color1, $color2)
。
来自文档 做与乘法相反的操作。结果是颜色更亮。
http://lesscss.org/functions/#color-blending-screen
我正在寻找 sass 中的等效项。我可以用什么代替?
最佳答案
在 SASS 中它是 mix
module .
mix(#f00, #00f) => #7f007f
mix(#f00, #00f, 25%) => #3f00bf
mix(rgba(255, 0, 0, 0.5), #00f) => rgba(63, 0, 191, 0.75)
关于css - sass 中 screen 方法的等价物,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32159747/