简体   繁体   English

我需要更改 ngx-admin 星云主题上选定字母的颜色

[英]I need change color of selected letters on ngx-admin nebular theme

I'm working with the Nebula Theme and i need to change the color of the active text.我正在使用星云主题,我需要更改活动文本的颜色。 With the default theme, the letters of an 'a' tag or others active tags turn to Blue.在默认主题下,“a”标签或其他活动标签的字母变为蓝色。 I need turn to green color.我需要变成绿色。

彩色菜单

How can i edit the theme colors?如何编辑主题 colors?

According to the Nebular menu documentation you can set your own color variables for a lot of different cases, including element states.根据Nebular 菜单文档,您可以为许多不同的情况设置自己的颜色变量,包括元素状态。 In your particular case, you need to set the value of the variable menu-item-icon-active-color and menu-item-active-text-color to the color you would like.在您的特定情况下,您需要将变量menu-item-icon-active-colormenu-item-active-text-color的值设置为您想要的颜色。

Since you are using ngx-admin, you can open the file src/app/@theme/styles/themes.scss and add the following line in the first nb-register-theme block:由于您使用的是 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
  ..

绿色菜单项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM