【问题标题】:I need change color of selected letters on ngx-admin nebular theme我需要更改 ngx-admin 星云主题上选定字母的颜色
【发布时间】:2020-08-14 08:46:14
【问题描述】:

我正在使用Nebula Theme,我需要更改活动文本的颜色。在默认主题下,“a”标签或其他活动标签的字母变为蓝色。我需要变成绿色。

如何编辑主题颜色?

【问题讨论】:

    标签: css angular typescript sass nebular


    【解决方案1】:

    根据Nebular menu documentation,您可以为很多不同的情况设置自己的颜色变量,包括元素状态。在您的特定情况下,您需要将变量 menu-item-icon-active-colormenu-item-active-text-color 的值设置为您想要的颜色。

    由于您使用的是 ngx-admin,您可以打开文件 src/app/@theme/styles/themes.scss 并在第一个 nb-register-theme 块中添加以下行:

    $nb-themes: nb-register-theme((
      menu-item-icon-active-color: green,
      menu-item-active-text-color: green //this is what you need to add
      .. //rest of the variables
      ..
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-07-23
      • 1970-01-01
      • 2019-03-22
      • 2020-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多