Bootstrap 4 flex grid system only

前端 未结 4 1630
北海茫月
北海茫月 2020-12-17 11:07

So in bootstrap3 we had the \'Customize and download\' option, which we could download only whatever we needed. Now that bootstrap 4 supports flexbox, I only wanna download

4条回答
  •  有刺的猬
    2020-12-17 11:27

    Update 2019, Bootstrap 4.3+

    You can get the grid only using bootstrap-grid.css included in the Bootstrap 4 download. http://getbootstrap.com/docs/4.1/getting-started/contents/#css-files

    This includes the grid, flexbox and display utilities, but not all the utilities like the borders, spacing, etc.. If you want a further 'Customize and download' option you must rebuild Bootstrap using SASS, or use a 3rd party tool like themestr.app


    Original Answer, Bootstrap 4 alpha (flexbox optional)

    There may be customizable downloads in the future, but the only way currently is to enable the $enable-flex variable. Here's an example using SASS.

    $enable-flex:true;

    http://codeply.com/go/JbGGN4Ok3A

    As of Bootstrap 4 alpha 6, flexbox is now the default: http://www.codeply.com/go/p/bootstrap_4.0.alpha.6

提交回复
热议问题