Twitter Bootstrap 3.0 how do I “badge badge-important” now

后端 未结 9 2096
执念已碎
执念已碎 2021-01-29 19:01

In version two I could use

badge badge-important

I see that the .badge element no longer has contextual (-success,-primary,etc..) c

9条回答
  •  青春惊慌失措
    2021-01-29 19:53

    The context classes for badge are indeed removed from Bootstrap 3, so you'd have to add some custom CSS to create the same effect like...

    .badge-important{background-color:#b94a48;}
    

    Bootply

提交回复
热议问题