【问题标题】:Nbspinner Background color changed微调器背景颜色更改
【发布时间】:2020-09-17 15:20:09
【问题描述】:

我想更改 nbspinner 的背景颜色。 我已经尝试过 nb 主题变量,但它对我不起作用。

@import "~@nebular/theme/styles/theming";
@import "~@nebular/theme/styles/themes/default";

$nb-themes: nb-register-theme(
  (
    background-color: red,
  ),
  default
);

【问题讨论】:

    标签: angular spinner nebular


    【解决方案1】:

    注册主题时,您必须使用变量名:spinner-basic-background-color,它肯定会像我一样工作。您还可以在下面的文档中查看与 nb-spinner 相关的其他颜色。

    Nebular Docs

    $nb-themes: nb-register-theme((
      font-family-primary: unquote('Roboto, sans-serif'),
      font-family-secondary: font-family-primary,
      spinner-basic-background-color: red,
    ), default-ltr, default );
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-19
      • 2013-02-01
      • 2015-05-26
      • 2015-11-14
      • 1970-01-01
      相关资源
      最近更新 更多