0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-02 14:24:19 +01:00
Bootstrap/site/content/docs/4.3/examples
Mark Otto 634344c003
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
2019-07-21 17:38:36 -07:00
..
album Removal of one of the most iconic components of Bootstrap: the jumbotron (#28876) 2019-06-07 14:44:25 +03:00
blog Removal of one of the most iconic components of Bootstrap: the jumbotron (#28876) 2019-06-07 14:44:25 +03:00
carousel Switch to Hugo. 2019-03-13 19:22:59 +02:00
checkout Switch to Hugo. 2019-03-13 19:22:59 +02:00
cover Switch to Hugo. 2019-03-13 19:22:59 +02:00
dashboard Switch to Hugo. 2019-03-13 19:22:59 +02:00
floating-labels Switch to Hugo. 2019-03-13 19:22:59 +02:00
grid v4/v5: Add responsive containers (#29095) 2019-07-21 17:38:36 -07:00
navbar-bottom Removal of one of the most iconic components of Bootstrap: the jumbotron (#28876) 2019-06-07 14:44:25 +03:00
navbar-fixed Removal of one of the most iconic components of Bootstrap: the jumbotron (#28876) 2019-06-07 14:44:25 +03:00
navbar-static Removal of one of the most iconic components of Bootstrap: the jumbotron (#28876) 2019-06-07 14:44:25 +03:00
navbars Removal of one of the most iconic components of Bootstrap: the jumbotron (#28876) 2019-06-07 14:44:25 +03:00
offcanvas dist v5 2019-07-12 16:56:26 -05:00
pricing Switch to Hugo. 2019-03-13 19:22:59 +02:00
product dist v5 2019-07-12 16:56:26 -05:00
sign-in Switch to Hugo. 2019-03-13 19:22:59 +02:00
starter-template Examples: make use of core utils in more places. 2019-06-06 19:15:18 +03:00
sticky-footer Examples: make use of core utils in more places. 2019-06-06 19:15:18 +03:00
sticky-footer-navbar Update site/content/docs/4.3/examples/sticky-footer-navbar/index.html 2019-06-06 19:15:18 +03:00
_index.md Switch to Hugo. 2019-03-13 19:22:59 +02:00
.stylelintrc Switch to Hugo. 2019-03-13 19:22:59 +02:00