How to change navbar collapse threshold using Twitter bootstrap-responsive?

后端 未结 14 1039
别那么骄傲
别那么骄傲 2020-12-04 08:18

I\'m using Twitter Bootstrap 2.0.1 in a Rails 3.1.2 project, implemented with bootstrap-sass. I\'m loading both the bootstrap.css and the bootstrap-respon

14条回答
  •  攒了一身酷
    2020-12-04 08:50

    I created a separate SCSS file that listed all of the partials that bootstrap needs, that way I can turn the partials on and off depending on what our site needs. This way, I am able to override the breakpoint variable easily. Here's what I got:

    // Core variables and mixins
    $grid-float-breakpoint: 991px;
    @import "bootstrap/variables";
    @import "bootstrap/mixins";
    
    // Reset
    @import "bootstrap/normalize";
    //@import "bootstrap/print";
    
    // Core CSS
    @import "bootstrap/scaffolding";
    @import "bootstrap/type";
    //@import "bootstrap/code";
    @import "bootstrap/grid";
    @import "bootstrap/tables";
    @import "bootstrap/forms";
    @import "bootstrap/buttons";
    
    // Components
    @import "bootstrap/component-animations";
    @import "bootstrap/glyphicons";
    @import "bootstrap/dropdowns";
    //@import "bootstrap/button-groups";
    //@import "bootstrap/input-groups";
    @import "bootstrap/navs";
    @import "bootstrap/navbar";
    @import "bootstrap/breadcrumbs";
    @import "bootstrap/pagination";
    @import "bootstrap/pager";
    @import "bootstrap/labels";
    @import "bootstrap/badges";
    //@import "bootstrap/jumbotron";
    //@import "bootstrap/thumbnails";
    @import "bootstrap/alerts";
    //@import "bootstrap/progress-bars";
    //@import "bootstrap/media";
    //@import "bootstrap/list-group";
    @import "bootstrap/panels";
    //@import "bootstrap/wells";
    @import "bootstrap/close";
    
    // Components w/ JavaScript
    @import "bootstrap/modals";
    @import "bootstrap/tooltip";
    //@import "bootstrap/popovers";
    //@import "bootstrap/carousel";
    
    // Utility classes
    @import "bootstrap/utilities";
    @import "bootstrap/responsive-utilities";
    

提交回复
热议问题