在 twitter bootstrap 中编辑导航栏文本颜色 [英] Editing navbar text color in twitter bootstrap

查看:29
本文介绍了在 twitter bootstrap 中编辑导航栏文本颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编辑导航栏中元素的字体颜色.我不想直接编辑 html 字体颜色.我想用css来做.这可能吗?我可以扩展引导类来覆盖他们使用我自己的字体颜色吗?

I'm trying to edit the font color of the elements I have in a navabar.I don't want to edit the html font color directly. I want to do it in css. Is this possible? Can i extend the bootstrap class to override the font color they use with my own?

谢谢

推荐答案

是的,您可以更改颜色.尝试使用 @less 或 $sass 变量来执行此操作:

Yes you can change the color. Try to use the @less or $sass variables to do so:

使用较少变量的示例:

/
/ Navbar
// -------------------------

@navbarText: #7490BC;
@navbarLinkColor: #FFFFFF;
@navbarLinkColorHover: @white;
@navbarLinkColorActive: @navbarLinkColorHover;
@navbarLinkBackgroundHover: transparent;
@navbarLinkBackgroundActive: @navbarBackground;

@navbarSearchPlaceholderColor: #ccc;
@navbarBrandColor: @navbarLinkColor; 

这篇关于在 twitter bootstrap 中编辑导航栏文本颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆