]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
v4/v5: Add responsive containers (#29095)
authorMark Otto <otto@github.com>
Mon, 22 Jul 2019 00:38:36 +0000 (17:38 -0700)
committerXhmikosR <xhmikosr@gmail.com>
Sat, 17 Aug 2019 14:03:00 +0000 (17:03 +0300)
commit2892675f65d0089fc907f664dfee6487e95d95cc
treee44d3271f71de460f3703280c5241d5b168eaf2b
parent9abaafa546258ee34c1a6de3e2be55c33439afab
v4/v5: Add responsive containers (#29095)

* create responsive containers

provide more flexibility and allow the user to determine when containers switch from fluid to fixed width.

* fix the base container code

this commit fixes the non-media portion of the generated CSS. I learned about the `@extends` directive and was able to put it to good use.

I create a new temporary map that contains all the main `$container-max-widths` and join it to our 2 special cases of 'xs' and 'fluid'.  Then we loop through that and, with the appropriate infixes, extend our placeholder

* formatting for style

forgot to run my tests before the last push, i think these are better.

* finish incomplete comment

* fix the responsive containers

using the `@extend` directive I was able to clean up this code

* fix responsive containers in the navbar

mostly we just look through all of our breakpoints so we can include all of the responsive container classes in the tweaks we have to do for the navbar (redeclaring flex properties, don't double up on padding, etc)

* Simplify container extends

* Simplify navbar containers

* Rearrange, add comments, ensure everything is nested in $enable-grid-classes

* Reduce new CSS by using attribute selector

We avoid using `@extend` whenever possible, and this is more readable

* Update _grid.scss

* Update _navbar.scss

* Add docs for responsive containers, redesign the container layout page

* Add to the Grid example
scss/_grid.scss
scss/_navbar.scss
site/docs/4.3/assets/scss/_component-examples.scss
site/docs/4.3/examples/grid/grid.css
site/docs/4.3/examples/grid/index.html
site/docs/4.3/layout/overview.md