【问题标题】:Is the second argument to mat-color opacity?垫颜色不透明度的第二个参数是什么?
【发布时间】:2020-10-22 07:24:50
【问题描述】:

第二个参数是mat-color opacity 吗?

这是一个例子:

mat-color($warn, 0.15)

【问题讨论】:

    标签: css angular sass angular-material


    【解决方案1】:

    根据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)

    【讨论】:

      猜你喜欢
      • 2011-12-12
      • 2011-10-06
      • 2016-04-24
      • 1970-01-01
      • 2017-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多