0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-30 12:24:19 +01:00
Commit Graph

20 Commits

Author SHA1 Message Date
XhmikosR
1d69e6ccfd blog example: remove unused CSS. (#29316) 2019-08-28 17:29:15 +02:00
Mark Otto
d94148bf50
Responsive containers (follow-up to #29095) (#29118)
* Follow-up to #29095

This PR fixes the responsive containers that were added in #29095, originally stubbed out in #25631. Apologies to @browner12 for getting that wrong.

Fixes #25631.

* update navbar as well because we cannot reset all containers uniformly

* Update navbars example to include container-xl example to ensure containers match

* rewrite responsive containers docs, add table of max-widths

* Update container docs
- Move table up to the intro
- Remove the container example because it's actually hella confusing
- Update and link to grid example as a demo instead
2019-08-05 12:12:16 -07:00
XhmikosR
b316235e63
docs: Fix badges after #28458. (#29199) 2019-08-04 08:23:25 +03:00
Christian Oliff
6bebd2938a Simplify code for 'cover' example by using utility classes. (#28986) 2019-07-22 17:02:03 +03:00
XhmikosR
967f1ab37a Use sha384. 2019-07-22 16:08:58 +03:00
XhmikosR
262a24b627 Manually escape script. 2019-07-22 16:08:58 +03:00
XhmikosR
8b59b73a2b Remove useless script. 2019-07-22 16:08:58 +03:00
Mark Otto
88065dfe71 Use .html like every other example, change the layout, simplify some things for now 2019-07-22 16:08:58 +03:00
Martijn Cuppens
b4c4223409 Remove card columns in favor of masonry grid 2019-07-22 16:08:58 +03:00
Martijn Cuppens
3b73dfc44b Allow to pass integrity & async attribute to extra js 2019-07-22 16:08:58 +03:00
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
Mark Otto
39c4ca3970 dist v5 2019-07-12 16:56:26 -05:00
Martijn Cuppens
2ac2a5a91e Removal of one of the most iconic components of Bootstrap: the jumbotron (#28876) 2019-06-07 14:44:25 +03:00
XhmikosR
cafbbdc3b6 Update site/content/docs/4.3/examples/sticky-footer-navbar/index.html
Co-Authored-By: Shohei Yoshida <fellows3@gmail.com>
2019-06-06 19:15:18 +03:00
XhmikosR
1835004b96 Update site/content/docs/4.3/examples/sticky-footer-navbar/index.html
Co-Authored-By: Shohei Yoshida <fellows3@gmail.com>
2019-06-06 19:15:18 +03:00
XhmikosR
8c61254919 Examples: make use of core utils in more places. 2019-06-06 19:15:18 +03:00
Martijn Cuppens
a827934f13 Documentation tweaks (#28679)
* Documentation tweaks

* Remove redundant col-12 classes
2019-05-08 19:58:29 +03:00
Patrick H. Lauke
d102363c9f Album example: remove misleading jumbotron-heading classname (#28741) 2019-05-08 15:53:08 +03:00
XhmikosR
5d6e896ebb Add a docsref shortcode.
This allows for the build to fail if a reference isn't found.
2019-03-13 19:22:59 +02:00
XhmikosR
d95d30029f Switch to Hugo.
No more Ruby dependency and most important more than 10 times less build time (at least on Windows)!
2019-03-13 19:22:59 +02:00