Change hover color on a button with Bootstrap customization

streetsoldier

I am trying to style my buttons in a way that the hover makes the button a lighter shade instead of a darker shade. I tried bootstrap customization page(http://getbootstrap.com/customize/) and it doesn't give me an option to change the button hover color. I tried doing this manually by inspecting the CSS but it is unclear how the buttons are getting the hover color. I tried another bootstrap customization website

http://pikock.github.io/bootstrap-magic/app/#!/editor

I wanted the main color to be #0495c9 and the hover color to be #00b3db but I am only able to specify the button bg color and not it's hover color.

Any help will be appreciated

jme11

The color for your buttons comes from the btn-x classes (e.g., btn-primary, btn-success), so if you want to manually change the colors by writing your own custom css rules, you'll need to change:

/*This is modifying the btn-primary colors but you could create your own .btn-something class as well*/
.btn-primary {
    color: #fff;
    background-color: #0495c9;
    border-color: #357ebd; /*set the color you want here*/
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open>.dropdown-toggle.btn-primary {
    color: #fff;
    background-color: #00b3db;
    border-color: #285e8e; /*set the color you want here*/
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Button hover Color Change

From Dev

How Can I change the hover color of a button in Bootstrap 3?

From Dev

Change color of glyphicon on button hover

From Dev

Bootstrap change button color

From Dev

Bootstrap dropdown customization on hover

From Dev

How to change text color in button hover property

From Dev

CSS - Change button background color on hover

From Dev

change text and path to diffrent color on hover of button

From Dev

Change color of the button and i class on hover

From Dev

change bootstrap navbar dropdown menu hover color

From Dev

BootStrap - List Hover change Color - Navigation Bar

From Dev

Change Bootstrap's hover color on nav links?

From Dev

bootstrap card change border color on hover

From Dev

hover over li to change color in twitter bootstrap

From Dev

CSS Button, default color, hover color and :active color change

From Dev

Can I change Bootstrap button color?

From Dev

Change color of close button in bootstrap modal window

From Dev

How to change color of Bootstrap disabled button?

From Dev

Change button color when clicked - Bootstrap

From Dev

Bootstrap button highlight color won't change

From Dev

Polymer 1.0: How to make paper-button change color on hover?

From Dev

Change color of an asp.net button on mouse hover using css

From Dev

Disable hover background color change on ion-button Ionic 2

From Dev

CSS change body background-color on button hover?

From Dev

Toggle Icon-bar color change on hover using Bootstrap

From Dev

Bootstrap CSS Nav class background color change in the hover state

From Dev

how to change hover color in my Bootstrap 3.3.6 navbar?

From Dev

button hover color is not working

From Dev

button hover color is not working

Related Related

HotTag

Archive