【问题标题】:How to declare angular 1.x material theme color in scss如何在 scss 中声明 Angular 1.x 材质主题颜色
【发布时间】:2018-05-11 13:55:26
【问题描述】:

如何将 Angular 1.x 材质主题颜色声明为 scss 属性。例如,我想要背景属性的主题原色;

例子:

.sampleclass{ 背景:主题原色;}

【问题讨论】:

    标签: angularjs sass angularjs-material material-theme


    【解决方案1】:

    尝试使用

    $theme-primary-color: 'red';
    .sampleclass{ background: $theme-primary-color;}
    

    您可以查看更多关于 sass here 的详细信息。

    【讨论】:

    • 谢谢。但我想要有棱角的材料主题原色,强调色。
    猜你喜欢
    • 2019-05-12
    • 2018-10-12
    • 1970-01-01
    • 2019-03-31
    • 2019-02-25
    • 2019-11-19
    • 1970-01-01
    • 2020-07-10
    • 2020-01-30
    相关资源
    最近更新 更多