bootstrap button on click showing default colour

前端 未结 7 554
广开言路
广开言路 2021-01-31 08:13

I am trying to style the button colour with below code, the colours work until I click the button, the button shows the default colours, how do I specify the colours of the butt

7条回答
  •  -上瘾入骨i
    2021-01-31 08:50

    if you want remove the box-shadow just add box-shadown:none and make it important or if you want add box-shadows just add color values.

    .btn-primary:not(:disabled):not(.disabled):active{
        color: #fff;
        background-color: #5b5fc6;
        border-color: #5b5fc6;
        box-shadow: none !important;
    }
    

    or

    .btn-primary:not(:disabled):not(.disabled):active{
            color: #fff;
            background-color: #5b5fc6;
            border-color: #5b5fc6;
            box-shadow: 0 0 0 0.2rem #c9cbfa !important
        }
    

提交回复
热议问题