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 the flex grid system of bootstrap 4 and I cant see that option anymore. is there any way to do this ?
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- How to add a “active” class to a carousel first el
- Add animation to jQuery function Interval
- jQuery hover to slide?
UPDATE (JULY 2019)
With the release of v4 you can simply use either
bootstrap-grid.css
orbootstrap-grid.min.css
, it only includes grid system and flex utilitiesOld Answer:
At this Alpha stage, you can toggle between true/false for using flexbox (if using a CSS preprocessor) as per bootstrap V4 Alpha docs
How it works:
At the time of answering this question, if you download the compiled .zip found here, it comes with a css folder that has three stylesheets,
bootstrap-grid.css
bootstrap-normalize.css
bootstrap.css
The
bootstrap-grid
file has only the grid CSS and nothing else, which is what you're looking for.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
if you just want to use flex-grid. I recommend
https://www.flexible-grid.com
https://github.com/kenangundogan/flexible-grid