Any way to add a breakpoint in Bootstrap?

后端 未结 4 1708
心在旅途
心在旅途 2021-01-12 19:41

Is there any way to add a 5th breakpont to 4 that already exist? Unfortunaetly, 4 is not enough for a project we currenty work on. the idea was to create a new break point s

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-12 20:04

    I use this in my project:

    @media (min-width: 1600px) {
        @for $i from 1 through 12 {
            $width: $i / 12 * 100;
            .col-xl-#{$i} {
                width: unquote($width + '%');
                float: left;
            }
        }   
    }
    

提交回复
热议问题