【发布时间】:2020-10-22 07:24:50
【问题描述】:
第二个参数是mat-color opacity 吗?
这是一个例子:
mat-color($warn, 0.15)
【问题讨论】:
标签: css angular sass angular-material
第二个参数是mat-color opacity 吗?
这是一个例子:
mat-color($warn, 0.15)
【问题讨论】:
标签: css angular sass angular-material
根据angular/components源代码。是的,它将被视为不透明度。
@param $color-map The theme palette (output of mat-palette).
@param $hue The hue from the palette to use. If this is a value between 0 and 1, it will
be treated as opacity.
@param $opacity The alpha channel value for the color.
@function mat-color($palette, $hue: default, $opacity: null)
【讨论】: