Editing navbar text color in twitter bootstrap
Asked Answered
H

1

1

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?

thanks

Hipster answered 15/5, 2012 at 4:4 Comment(0)
C
1

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

Example using less variables:

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

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

@navbarSearchPlaceholderColor: #ccc;
@navbarBrandColor: @navbarLinkColor; 
Chlorpromazine answered 15/5, 2012 at 6:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.