Twitter bootstrap caret size

前端 未结 4 1887
暗喜
暗喜 2020-12-30 23:35

I have a caret like this:



        
4条回答
  •  不知归路
    2020-12-31 00:06

    For those looking for Bootstrap 4 Alpha 6 Support, you just have to change the selector to .dropdown-toggle::after and override what's coming from "_nav.scss" like so:

    .dropdown-toggle::after {
        display: inline-block; /* Default */
        width: 0; /* Default */
        height: 0; /* Default */
        margin-left: .3em; /* Default */
        vertical-align: middle; /* Default */
        content: ""; /* Default */
        border-top: .6em solid; /* caret size */
        border-right: .6em solid transparent; /* caret size */
        border-left: .6em solid transparent; /* caret size */
    }
    

    Hope this helps those exploring Bootstrap 4 Alpha 6

提交回复
热议问题