How to set custom button text color in Bootstrap 4 and Sass?

后端 未结 1 1145
眼角桃花
眼角桃花 2020-12-17 19:36

I would like to create a new button style in Bootstrap 4 with a white (#fff) text color. Mixin button-variant automatically sets the text color based on the bac

相关标签:
1条回答
  • 2020-12-17 20:31

    This is similar to: How to create new set of color styles in Bootstrap 4 with sass

    You need to use @include for the custom button, set the color:, and pass in the appropriate mixin params...

    .btn-custom {
        @include button-variant(pink, red, red, #444, #333, red);
        color: #fff;
    }
    

    https://www.codeply.com/go/EHwnjvUXac


    Related: Extending Bootstrap 4 and SASS

    0 讨论(0)
提交回复
热议问题