diff options
| author | Mark Otto <[email protected]> | 2016-07-26 21:55:32 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-07-26 21:55:32 -0700 |
| commit | d626484fdf50ee526bd4aafeed94fde68ed811a1 (patch) | |
| tree | e78c2030f5454ad799124b0646bc5db74d2a31d1 /docs | |
| parent | c017eaca2fb318f7d215f41b966d553429e00f90 (diff) | |
| parent | 8e9a9a5960697cd8cd698ca6b4d8733bd7872de6 (diff) | |
| download | bootstrap-d626484fdf50ee526bd4aafeed94fde68ed811a1.tar.xz bootstrap-d626484fdf50ee526bd4aafeed94fde68ed811a1.zip | |
Merge pull request #20372 from twbs/v4-flexbox-docs
v4: Enable flexbox CSS on flexbox grid page
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/_includes/header.html | 3 | ||||
| -rw-r--r-- | docs/assets/scss/flex-grid.scss | 24 | ||||
| -rw-r--r-- | docs/layout/flexbox-grid.md | 2 |
3 files changed, 28 insertions, 1 deletions
diff --git a/docs/_includes/header.html b/docs/_includes/header.html index 51b3cda8b..3fc75c058 100644 --- a/docs/_includes/header.html +++ b/docs/_includes/header.html @@ -15,6 +15,9 @@ <!-- Bootstrap core CSS --> {% if site.github %} <link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet"> + {% if page.title == "Flexbox grid system" %} + <link href="{{ site.baseurl }}/assets/css/docs-flexbox.min.css" rel="stylesheet"> + {% endif %} {% else %} <link href="{{ site.baseurl }}/dist/css/bootstrap.css" rel="stylesheet"> {% endif %} diff --git a/docs/assets/scss/flex-grid.scss b/docs/assets/scss/flex-grid.scss new file mode 100644 index 000000000..7d0d9f4b8 --- /dev/null +++ b/docs/assets/scss/flex-grid.scss @@ -0,0 +1,24 @@ +// Bootstrap flexbox grid for our docs page + + +// +// Variables +// + +@import "custom"; +@import "variables"; + +// Override for flexbox mode +$enable-flex: true; + + +// +// Grid mixins +// + +@import "mixins/clearfix"; +@import "mixins/breakpoints"; +@import "mixins/grid-framework"; +@import "mixins/grid"; + +@import "grid"; diff --git a/docs/layout/flexbox-grid.md b/docs/layout/flexbox-grid.md index 6d372a96c..ea4fad28b 100644 --- a/docs/layout/flexbox-grid.md +++ b/docs/layout/flexbox-grid.md @@ -9,7 +9,7 @@ Fancy a more modern grid system? [Enable flexbox support in Bootstrap](/getting- Bootstrap's flexbox grid includes support for every feature from our [default grid system](/layout/grid), and then some. Please read the [default grid system docs](/layout/grid) before proceeding through this page. Features that are covered there are only summarized here. Please note that **Internet Explorer 9 does not support flexbox**, so proceed with caution when enabling it. {% callout warning %} -**Heads up!** The flexbox grid documentation is only functional when flexbox support is explicitly enabled. +**Heads up!** This flexbox grid documentation is powered by an additional CSS file that overrides our default grid system's CSS. This is only available in our hosted docs and is disabled in development. {% endcallout %} ## Contents |
