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

15495 Commits

Author SHA1 Message Date
Mark Otto
6b419fdc3a nest modal examples css 2016-12-24 14:21:04 -08:00
Mark Otto
d5784d811b rip numbers 2016-12-24 14:21:04 -08:00
Mark Otto
6fb2c18e14 add order docs 2016-12-24 14:21:04 -08:00
Quy
78ee9f3c3e Update toc numbering (#21422) 2016-12-24 14:21:04 -08:00
Mark Otto
991f2468d0 remove unused media vars, update numbers (oof) /cc @Quy 2016-12-24 14:21:04 -08:00
Mark Otto
d93991b1c5 remove unused utils, comment 2016-12-24 14:21:04 -08:00
Mark Otto
9d13fd3fe3 remove old flex utils, update docs to match 2016-12-24 14:21:04 -08:00
Mark Otto
378aa6667b align-self docs 2016-12-24 14:21:04 -08:00
Mark Otto
75e756dfef document align-content utils 2016-12-24 14:21:04 -08:00
Mark Otto
7d47a01158 change presentation of those utils docs 2016-12-24 14:21:04 -08:00
Mark Otto
463e8bee76 document justify-content and align-items utils 2016-12-24 14:21:04 -08:00
Mark Otto
4024dc7a52 indentation 2016-12-24 14:21:04 -08:00
Mark Otto
574c3119f3 duplicate of the .flex-fill util 2016-12-24 14:21:04 -08:00
Mark Otto
90aa8a28a2 remove the table classes in favor of lists 2016-12-24 14:21:04 -08:00
Mark Otto
feb445376b try out alt responsive variation lists 2016-12-24 14:21:04 -08:00
Mark Otto
6fa6bf7123 add docs class for highlighting 2016-12-24 14:21:04 -08:00
Mark Otto
5464f4ab7e Start to blow out and document more flexbox utilities
- Adds new flexbox.md file to utilities docs

- Adds a `breakpoints.yml` data file for easier output of responsive classes in the docs. Will put this to use on other pages soon.

- Adds hella flex utils. There are some dupes for now, but they'll get removed in time.
2016-12-24 14:21:04 -08:00
Mark Otto
e4933c72da fix incorrect class name for inline-flex 2016-12-24 14:21:04 -08:00
Mark Otto
9979827cd3 Revamp navs docs
- Reorganize things, leading with the base nav first instead of an accessibility note, and then moving the rest to a new available styles section.

- Add horizontal alignment options thanks to new flex utils (these new utils will be documented later in another commit).

- Dropped `.nav-stacked` for a flex util and added additional alignment options, so document those, too.
2016-12-24 14:21:04 -08:00
Mark Otto
d9baeeb0af Change up the "justified" nav options
Given move to flexbox, we can make this available for everyone and clean it up some.

- Simplifies the `.nav-justified` styles to build on the flex-powered `.nav` base class.

- Adds the `.nav-fill` to make nav links fill available horizontal space, but not equal width.
2016-12-24 14:21:04 -08:00
Mark Otto
699d8a5a80 Make .nav flex-powered
- Set an explicit `display: flex` on the base `.nav` class and remove the floats/clearfixes from our navs.

- Set some global styles for `.nav-link`, a departure from the previous solution that featured no predefined padding.

- Move `.nav-link` from `inline-block` to `block` given this setting was added for our tabs and pills anyway.

- Remove horizontal margin from nav tabs; let folks set that on their own from now on.
2016-12-24 14:21:04 -08:00
Mark Otto
ec0dbc74a7 pull in changes from #19832 to fix offcanvas 2016-12-24 14:21:04 -08:00
Mark Otto
66c87cb7ca Undo #21171 (which closed #20977)
Turns out we did have the correct height calculation with our custom selects. The problem was we lacked a shared line-height with our buttons and inputs.

This restores the previous `calc` math and adds a line-height that reuses the input line-height.
2016-12-24 14:21:04 -08:00
Mark Otto
4377e2956b update navbars in jumbotron, offcanvas, starter examples to flex versions 2016-12-24 14:21:04 -08:00
Mark Otto
9fd339bdc8 better/more form spacing in navbars 2016-12-24 14:21:04 -08:00
Mark Otto
f721ebf3b4 unify alignment of all these dang navbar forms 2016-12-24 14:21:04 -08:00
Bardi Harborow
effb2fb4b4 Move uglifyjs to npm script. 2016-12-24 00:34:27 +11:00
Johann-S
b0508a975d Closes: #21412: Fix unit test for carousel 2016-12-23 22:56:55 +11:00
Matheus Azzi
dab6a41e04 Carousel: Only prevents default for ARROW_LEFT and ARROW_RIGHT keys
Fixes 2 bugs:

1. All keydowns were being prevented. Because of that the user wasn't able to navigate in the whole page using ARROW_UP/ARROW_DOWN.

2. Even when  is an input or textarea the keydowns were being prevented. Because of that the user wasn't able to type any text on these elements.
2016-12-23 17:55:40 +11:00
mr-july
1d6cdb65b3 scrollspy: fix wrong activation of all nested links (#20304)
* fix wrong activation of all nested links;
just first level item should be activated

* use template instead of string concatenation
2016-12-22 22:00:56 -08:00
Bardi Harborow
6993595341 Move clean-css to npm scripts. 2016-12-23 16:51:36 +11:00
Mark Otto
800cfa24ad overhauls media object docs
- better copy and examples throughout
- callout on flexbug #12 for inline elements like links and images (which is the problem in #20408)
- add order section
2016-12-22 21:29:48 -08:00
Mark Otto
95ee9aa94c small unrelated addition—adds .d-flex-inline util 2016-12-22 21:29:48 -08:00
Mark Otto
b5c50d4aff reduce .media styles to their bare minimum
Sets minimum required flex styles (including an explicit starting alignment) and removes everything else.

- no need for .media-left and .media-right, we have padding utils
- no need for a .media-heading, we have margin
- no need for .media-object, we have display utils
- no need for .media-list, we have .list-unstyled util
2016-12-22 21:29:48 -08:00
Quy
615072e4c9 Rename Tags to Badges in comments 2016-12-22 21:28:43 -08:00
Mark Otto
94bd6b76be Merge branch 'flex-cards' into v4-dev 2016-12-22 21:27:54 -08:00
Mark Otto
4b62a93906 ugh 2016-12-22 21:20:47 -08:00
Mark Otto
5b2d9f95d5 grunt 2016-12-22 21:19:12 -08:00
Mark Otto
f297282833 typo 2016-12-22 21:18:33 -08:00
Bardi Harborow
ba86c314a4 Move scss-lint to npm scripts. 2016-12-23 14:26:04 +11:00
Mark Otto
6b367b12c9 margins to separate some cards in examples 2016-12-22 19:13:39 -08:00
Jacob Müller
1712484727 Add color variables for white and black (#21397)
* Add color variables for white and black

Closes #21395.
2016-12-22 19:09:11 -08:00
Mark Otto
040acd30db change card deck margin strategy
- Instead of negative left/right margins, we selectively apply margins to the cards as needed. This way the first and last child never receive a left and right margin (respectively), so we don't need to negative indent those at the .card-deck level.

- Drops the margin-bottom override on the .card because there's no more default margin there.

- Drop the margin-bottom from the .card-deck to match our lack of margins on the card.

This and the previous commit fixes #19883.
2016-12-22 18:59:05 -08:00
Mark Otto
b3d8426ffe move to grid gutter width, fixes #21300 2016-12-22 18:55:21 -08:00
Bardi Harborow
fe4cd38877 Change scope of docs anchor preventDefault to include modals. 2016-12-23 13:11:06 +11:00
Mark Otto
754698c4d7 New width and height utils
Adding 25%, 50%, and 75% to the mix for later use with cards
2016-12-22 17:15:10 -08:00
Mark Otto
51f723d669 no more need for this 2016-12-22 16:52:25 -08:00
Mark Otto
bc69ff108a final docs cleanup with columns and more 2016-12-22 16:47:30 -08:00
Mark Otto
ce35655f5f card deck footer example 2016-12-22 16:47:10 -08:00
Mark Otto
433df0c67e add aligned footer example 2016-12-22 16:46:29 -08:00