Change bootstrap navbar collapse breakpoint without using LESS

前端 未结 19 2550
囚心锁ツ
囚心锁ツ 2020-11-22 07:55

Currently when the browser width drops below 768px, the navbar changes to collapsed mode. I want to change this width to 1000px so when the browser is below 1000px the navba

19条回答
  •  佛祖请我去吃肉
    2020-11-22 08:24

    The Sass way of changing bootstrap variables is actually documented on the bootstrap-sass github page.

    Just redefine the variables before you @import bootstrap:

    $grid-float-breakpoint: 1000px;
    
    @import 'bootstrap';
    

提交回复
热议问题