Change hover color on a button with Bootstrap customization

前端 未结 4 1690
独厮守ぢ
独厮守ぢ 2020-12-24 01:30

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.

4条回答
  •  粉色の甜心
    2020-12-24 02:10

    I had to add !important to get it to work. I also made my own class button-primary-override.

    .button-primary-override:hover, 
    .button-primary-override:active,
    .button-primary-override:focus,
    .button-primary-override:visited{
        background-color: #42A5F5 !important;
        border-color: #42A5F5 !important;
        background-image: none !important;
        border: 0 !important;
    }
    

提交回复
热议问题