3
在我沒有使用screen($color1, $color2)
。同等的屏幕方法在少sass
從DOC Do the opposite of multiply. The result is a brighter color.
http://lesscss.org/functions/#color-blending-screen
我要尋找一個在青菜的等價物。我可以用什麼來代替?
在我沒有使用screen($color1, $color2)
。同等的屏幕方法在少sass
從DOC Do the opposite of multiply. The result is a brighter color.
http://lesscss.org/functions/#color-blending-screen
我要尋找一個在青菜的等價物。我可以用什麼來代替?
在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)
這個問題在哪裏回答?我看不出其中哪一個相當於'screen'。薩斯的「混合」相當於較少的「平均」。 –
@LukeTaylor在SASS中沒有任何與'screen'等價的東西。但通過使用'mix'和第三個參數'weight',您可以創建任何這些模塊。 – AleshaOleg
我的理解是屏幕不僅與重量混合,而且會以某種方式增加值?我怎麼做? –