XhmikosR
49d5756f01
navbar.md: remove loading=lazy
from snippets ( #32138 )
2020-11-12 20:40:15 +02:00
XhmikosR
03ec5342e0
input-group.md: fix wrong class .visually-hidden
( #32137 )
2020-11-12 20:39:19 +02:00
Mark Otto
9e9e1e61d5
Clarify JS bundle docs once more for v4 ( #32106 )
...
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-11-10 09:36:04 +02:00
Patrick H. Lauke
dec3d86514
Changes to navbar documentation/explanation ( #32094 )
2020-11-09 18:10:04 +00:00
XhmikosR
43f7befe36
docs: mention "Liberation Sans" ( #32083 )
2020-11-08 20:30:07 +02:00
Patrick H. Lauke
44d54eb578
Make docs anchorjs links darker on keyboard focus ( #32050 )
...
* Make docs anchorjs links darker on keyboard focus
Not just on mouse hover
* Update site/assets/scss/_anchor.scss
Co-authored-by: Mark Otto <markd.otto@gmail.com>
Co-authored-by: Mark Otto <markd.otto@gmail.com>
2020-11-05 11:22:05 +02:00
Patrick H. Lauke
bbfd22f924
Backport #32040 ( #32054 )
...
Add callouts about using light colors ideally on a dark background
2020-11-03 09:44:42 +02:00
XhmikosR
465135a0f8
Backport #32015
...
Fix redirects
2020-10-30 16:34:06 +02:00
XhmikosR
f808026e5b
Backport #31861
...
* Split up dropdown sizing docs to improve rendering
- Drop the included .btn-toolbar, no need
- Split large and small button examples
2020-10-30 16:34:06 +02:00
XhmikosR
23cf931c7f
list-group.md: fix snippet ( #31981 )
2020-10-27 12:11:01 +02:00
Patrick H. Lauke
d8c189df59
Explicitly mention emoji fonts, tweak sentence in typography ( #31960 )
2020-10-27 12:11:01 +02:00
Patrick H. Lauke
5f1bc4a756
Remove redundant visually hidden "(current)" from pagination controls ( #31892 )
...
* Replace visually hidden span with aria-current in tests
* Remove redundant visually hidden "(current)" when `aria-current` already used
Closes #31891
2020-10-27 12:11:01 +02:00
XhmikosR
084795db82
Update anchor-js to v4.3.0. ( #31951 )
2020-10-27 12:11:01 +02:00
Gaël Poupard
4b30fe622c
Backport #31882
...
* feature(spinners): slow down spinners when prefers-reduced-motion
* docs(spinners): add reduced motion callout and mention slowing down in accessibility page
* Update spinners.md
* docs(accessibility): rewording
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
2020-10-27 12:11:01 +02:00
XhmikosR
efabff3a74
browserconfig.xml: switch to relative image path
2020-10-27 12:11:01 +02:00
XhmikosR
59b65a2cb8
Backport #31893
...
Update manifest.json
Switch to relative URLs so that we don't need to change the path with every major/minor release
2020-10-27 12:11:01 +02:00
Gaël Poupard
5f3fa833c9
docs(forms): backport #31904
...
* docs(forms): use a legend for fieldset instead of aria-label
* docs(forms): fix incorrect legend nesting in fieldset
2020-10-27 12:11:01 +02:00
XhmikosR
cec8e5ddc3
Remove double spaces from homepage SVGs
2020-10-27 12:11:01 +02:00
Martijn Cuppens
5d310db486
Fix mobile menu jump & double border
2020-10-26 21:47:03 -07:00
Itamar Eduardo Gonçalves de Oliveira
61b5efbaf7
v4 Examples/Floating-labels: fix bad behavior with autofill
2020-10-26 21:19:56 -07:00
Martijn Cuppens
a1b2071fe0
Require .has-validation
for input groups with validation
2020-10-26 13:43:52 -07:00
Julien Déramond
171da55628
docs(forms): change inline custom radio name ( #31936 )
2020-10-19 22:13:30 +01:00
XhmikosR
f86149807d
docs: switch to suggesting jsDelivr as a CDN ( #31898 )
2020-10-14 20:41:37 +03:00
XhmikosR
a716fb03f9
Prepare v4.5.3. ( #31880 )
2020-10-13 18:38:30 +03:00
Ankit Mishra
5d066caace
Backport #31809 ( #31851 )
...
carousel: add missing `to` and `nextwhenvisible` description
2020-10-09 07:51:12 +03:00
Mark Otto
c437735b6c
Backport versions update from #31754 and reverse order of versions to match v5
2020-10-05 16:12:47 +03:00
XhmikosR
d9cccf476b
Compress the new images
2020-09-30 08:44:42 +03:00
Mark Otto
b25e6d5fa9
Add new Bootstrap Icons homepage images
2020-09-30 08:44:42 +03:00
XhmikosR
6c051294aa
typography.md: update wording about RFS and Bootstrap version.
2020-09-30 08:44:42 +03:00
XhmikosR
ff1d751e36
docs: link to the Asynchronous functions section
2020-09-30 08:44:42 +03:00
Mark Otto
f927a95b6c
Backport #31300 ( #31769 )
...
* Manually backport JS bundle guidance
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-09-28 10:57:42 +03:00
Johann-S
e45fbe7f72
add suggested fix for gpu acceleration
2020-09-24 15:06:30 +03:00
XhmikosR
16aa05752b
Update popovers.md
2020-09-24 15:06:30 +03:00
Mark Otto
34208778ba
v4: Mention GPU acceleration fix in docs callout
...
Closes #22610
2020-09-24 15:06:30 +03:00
XhmikosR
30c3cd45a2
icons.md: add icofont like in v5
2020-09-21 14:58:34 +03:00
XhmikosR
6994dacee4
Backport #31689
...
docs: fix a few redirects
* Fix GitHub's permanent redirects
* Fix a11yproject redirects
2020-09-21 14:58:34 +03:00
XhmikosR
dfefd48c34
Backport #31516
...
Add new icons set - CoreUI Icons
2020-09-21 14:58:34 +03:00
XhmikosR
be18957933
Backport 65d130fbd8
...
Mention the quotes requirement in the docs too
2020-09-21 14:58:34 +03:00
Mr. Will
ab0aec397e
Add new Chinese Simplified translation ( #31540 )
2020-09-20 14:24:13 +03:00
Patrick H. Lauke
63b8a6ffdd
Docs: Add top/bottom margin to highlighted code samples ( #31706 )
...
Backport of #31036 to v4
2020-09-19 18:59:56 +03:00
XhmikosR
3be585990c
Comply to the new rules
2020-09-10 12:06:30 +03:00
XhmikosR
1c37a2ba77
Switch to xo and remove babel-eslint
2020-09-10 12:06:30 +03:00
Gaël Poupard
39282bcc9d
docs(build tools): mention how to get the sources ( #31589 )
2020-09-04 20:17:37 +03:00
XhmikosR
5f2480a90a
Prepare v4.5.2. ( #31444 )
2020-08-06 19:22:43 +03:00
XhmikosR
89dc9750ec
Prepare v4.5.1. ( #31408 )
2020-08-04 19:24:33 +03:00
XhmikosR
e0f89dc90b
Backport #31339 ( #31414 )
...
* Backport #31339
Add view on GitHub links for easier content editing from the docs
2020-08-04 18:54:01 +03:00
XhmikosR
d44a1e105e
Backport #31344
...
Add toasts to the components requiring JavaScript
2020-08-03 19:06:36 +03:00
Gaël Poupard
81d3e2b917
docs(skippy): prevent skip links from overlapping header
2020-08-03 19:06:36 +03:00
Patrick H. Lauke
99013a5c54
Docs: forms accessibility cleanup (backport from v5) ( #31234 )
...
* Expand advice for anchor-based controls
* Expand accessibility note in input group
* Correct statement about validation, fix server example
* Tweak label > accessible name
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: Mark Otto <markd.otto@gmail.com>
2020-07-12 07:57:48 +03:00
XhmikosR
234dd96abf
Backport #31135
...
* Move color utility callouts to start of page
Hierarchically/structurally, in the position they are currently at, the two callouts seem like they "belong" just to the "background color" section. Moving them to the start makes it clearer that those two callouts relate to everything in the page (both "Color" and "Background color" classes.
* Change heading level
otherwise the assistive technology callout looks like it's hierarchically under the "Dealing with specificity" heading
2020-07-06 16:40:27 +03:00
Gaël Poupard
04dbb6c24c
Floating labels improvements ( #30966 )
...
* docs(example): floating-labels' better Edge fallback
* docs(example): refactor floating-labels' CSS
2020-06-24 15:16:58 +03:00
Patrick H. Lauke
c995886c0f
Docs: add Gaël Poupard to the core team page ( #31081 )
...
Docs: add Gaël Poupard to the core team page
2020-06-24 15:16:58 +03:00
XhmikosR
9b241e630c
Backport #31070
...
* Make example less broken-looking
don't want to give impression that now it's ok to just sprinkle `role="button"` around. this at least makes the `span` keyboard-focusable, similar to at least the start of a custom control
2020-06-24 15:16:58 +03:00
XhmikosR
f6b74b8b41
Fix typo
2020-06-24 15:16:58 +03:00
XhmikosR
3349eb6a41
Update links to point to v4-dev or main branches
2020-06-24 15:16:58 +03:00
XhmikosR
7de8582657
Stylelint: remove redundant inline suppressions
2020-06-24 15:16:58 +03:00
XhmikosR
78a51cb12f
Backport #30973
...
Remove the class `.nav-item` from `.nav-link` inside the non `ul` or `ol` based navs.
This makes the consistency for `.nav-item` (This class will not be required on the `.nav-link`).
`.nav-item` was only required when you use `.nav-fill` or `.nav-justified` on the `.nav`. In other cases, it was redundant. And the purpose of `.nav-item` on `.nav-link`s can be achieved via flexbox utilities as well (Mentioned in the docs also).
2020-06-24 15:16:58 +03:00
Gaël Poupard
7c6a0db820
Floating labels examples in IE ( #30965 )
...
* docs(example): drop IE workaround since it works fine in IE
* Serial comma
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: Mark Otto <markd.otto@gmail.com>
2020-06-13 09:38:13 +03:00
Gaël Poupard
ba6d5e802b
docs(toasts): centered examples flexbugs #3 in IE11
2020-06-10 08:14:30 +03:00
XhmikosR
8bc6dcd280
Backport #30936
...
Add role="dialog" in modals via JavaScript
2020-06-04 17:53:16 +03:00
XhmikosR
288b9b82b5
Backport #30932
...
Restore word-break: break-word on .text-break to fix text breaking on flex containers
2020-06-04 17:53:16 +03:00
Mark Otto
ac48bbe081
Simplify list-group borders in cards ( #30808 )
2020-06-04 17:53:16 +03:00
Gaël Poupard
6f4d9fff02
docs(cards): fix card-img-bottom example ( #30925 )
2020-05-29 18:01:40 +03:00
Gaël Poupard
daa01aacb5
docs(CDN): improve wording to match master and fix #30873 ( #30896 )
2020-05-26 18:48:53 +03:00
Mark Otto
58dd4cc66c
v4: Update docs callout for responsive SVG images ( #30809 )
...
Turns out this applies to IE11 as well as IE10, so this clarifies the docs callout.
Closes #25242 .
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-05-14 09:18:01 +03:00
Mark Otto
a8eb919f44
v4: Mention Bootstrap Icons in extend/icons.md ( #30813 )
...
- Closes #30796
2020-05-14 09:06:08 +03:00
XhmikosR
7a6da5e3e7
Dist
2020-05-12 20:44:42 +03:00
XhmikosR
109ad5db90
Bump version to 4.5.0.
2020-05-12 20:44:42 +03:00
Mark Otto
4a0ddb02db
Wording fixes
2020-05-12 19:21:36 +03:00
XhmikosR
0f26be5ff3
Move the input groups validation workaround in docs.
2020-05-12 19:21:36 +03:00
XhmikosR
842b0d2ae4
Remove mention of build tools
...
They are not included in npm.
2020-05-12 19:21:36 +03:00
XhmikosR
32932d27d5
Grammar fixes
2020-05-12 19:21:36 +03:00
Rohit Sharma
d2f9fbd055
Removed role="document" from the modal dialog ( #30755 )
2020-05-12 19:21:36 +03:00
XhmikosR
eb720f20ff
Minor lint tweaks and rules cleanup
2020-05-12 19:21:36 +03:00
Mark Otto
5d10e4a58e
Add new interaction utilities and role attr to Reboot ( #30562 )
...
- Adds .user-select-* utils from v5
- Adds button role attribute util, one of the top requested features in our issues for adding pointer cursors
- Adds new docs page to demonstrate both
- Includes Sass list for customizing user select
2020-05-11 20:57:29 +03:00
XhmikosR
fce3370843
Backport #29272 and adapt if for v4-dev
...
docs: fix tap targets
2020-05-10 12:19:58 -07:00
XhmikosR
345d68cdbb
Add loading="lazy"
in images
...
Backport of #30199 after adapting it for v4-dev.
2020-05-10 12:19:58 -07:00
Mark Otto
a1d8ed4413
v4: Update homepage, examples, and general docs styles
...
- Refreshes the look and feel of the homepage with fresh colors, new content, and simplified styles.
- Updates docs button styles
- Replaces bytesize icons with Bootstrap icons
- Adds themes callout to examples page
2020-05-10 12:19:58 -07:00
Johann-S
22f75ca2e3
enforce element check on scrollspy target
2020-05-07 09:31:49 +03:00
XhmikosR
5f267b1854
Update jQuery to v3.5.1.
2020-05-07 09:31:49 +03:00
Mark Otto
e51a09a2b8
Wording fixes
2020-05-06 20:56:04 +03:00
XhmikosR
8876866399
Update browser-bugs.md
...
Add a danger callout that the page is outdated
2020-05-06 20:56:04 +03:00
Quy
d63b651f37
Fix typo ( #30745 )
...
Use possessive form of it
2020-05-06 06:54:42 +03:00
XhmikosR
63dbe4705d
search.js: make the check for URL stricter ( #30695 )
2020-05-02 15:39:19 +03:00
XhmikosR
c06a1f305d
Backport #30130
...
Add a script to zip the built examples
2020-05-02 15:39:19 +03:00
XhmikosR
33f47771ca
Fix redirect
2020-05-02 15:39:19 +03:00
XhmikosR
6d9256d2b1
Backport #30362
...
Remove unneeded og:image:secure_url from social.html
The image is always available over HTTPS anyway
2020-05-02 15:39:19 +03:00
Shohei Yoshida
e344ed4446
v4: Change input group validation examples ( #30180 )
...
* Change input group examples
* Update forms.md
* Update site/docs/4.4/components/forms.md
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: Mark Otto <markd.otto@gmail.com>
Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
2020-04-30 09:29:03 +03:00
Mark Otto
f79d14f7c8
Fixes #30503 to replace renamed position utility ( #30505 )
2020-04-30 08:11:51 +02:00
XhmikosR
f5c7da4c78
Backport 9b97dc6
...
Tweak syntax highlighting colors to be WCAG2AA valid.
Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
2020-04-28 20:59:30 +03:00
Mark Otto
c4355e4a6b
v5: Improve the responsiveness of our Dashboard example ( #30573 )
...
Cleans up some column classes to ensure things line up across all viewports. Also fixes some broken padding on the .navbar-brand.
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-04-28 20:59:30 +03:00
XhmikosR
05cfefd32b
Update jQuery to v3.5.0.
2020-04-17 11:41:32 +03:00
XhmikosR
341ad62517
Update clipboard.js to v2.0.6
2020-04-13 21:12:29 +03:00
XhmikosR
5053725870
Update bs-custom-file-input.js to v1.3.4
2020-04-13 21:12:29 +03:00
XhmikosR
5455e30048
Backport #30542
...
Remove redundant class and line height
2020-04-13 21:12:29 +03:00
Laussel Loïc
0cf29baf63
v4 tabs - accessibility issue when using ul/li semantic ( #30381 )
...
Add aria-role presentation on li element when ul element has role tablist and remove dropdown from visual tests as they've been removed from doc
2020-04-10 08:35:09 +03:00
XhmikosR
573c10f099
Backport #30041 and #30448
...
Switch links to the GitHub organization and fix redirected links
2020-03-31 21:11:29 +03:00
Shohei Yoshida
effe4e9588
Update modal docs ( #30325 )
2020-03-31 21:11:29 +03:00
XhmikosR
0c8d8a48e1
Backport ( #30418 )
...
Open icons in a new tab like the rest of the external links
2020-03-31 21:11:29 +03:00
XhmikosR
03fec36b44
Clarify card group behavior ( #30416 )
...
Co-authored-by: Mark Otto <markd.otto@gmail.com>
2020-03-31 21:11:29 +03:00
XhmikosR
3b5283602c
Replace uglify-js with terser.
2020-03-09 16:26:10 +02:00
Martijn Cuppens
81ba76bb3c
CSS & alignment tweaks
2020-03-09 16:08:41 +02:00
Minobi
39ac525f6e
Example dashboard: fix menu disappearing on small viewport
2020-03-09 16:08:41 +02:00
Gaël Poupard
473d36ff38
docs(theming): improve headings hierarchy under Sass → Functions ( #30207 )
2020-02-17 21:33:54 +02:00
XhmikosR
4a7cbd5b9f
Backport #29971
...
Remove old versions from docs-navbar.html
2020-02-17 21:33:54 +02:00
Christian Oliff
037bad148c
Add Microsoft Edge for MacOS to supported browsers ( #29956 )
...
The new Chromium-based Edge has been available as a beta for sometime and general availability of the final version is expected to ship from Jan 15. I think it makes sense to add it as a supported browser once it's out of beta.
REF: https://blogs.windows.com/windowsexperience/2019/11/04/introducing-the-new-microsoft-edge-and-bing/
2020-02-17 21:33:54 +02:00
Martijn Cuppens
0d35f10842
Add ysds to the team page ( #30145 )
2020-02-17 21:33:54 +02:00
Giovanni Mendoza
6daae47cc0
Backport #29886
...
Close modal with keyboard=true & backdrop=static
2020-02-17 21:33:54 +02:00
Martijn Cuppens
1884b8a421
Backport #29325 . ( #30074 )
...
`.text-break` fix
2020-02-17 21:33:54 +02:00
XhmikosR
f737c73a27
javascript.md: Add srcset
in sanitizer docs ( #30007 )
2020-02-17 21:33:54 +02:00
Martijn Cuppens
21041eecb7
Backport #30090 ( #30175 )
...
Add version number to documentation `<title>`
2020-02-14 22:15:04 +02:00
XhmikosR
0d1aee6a2f
reboot.md: Add missing Noto Sans font ( #29937 )
...
* reboot.md: Add missing Noto Sans font
* Sans serif order fix
Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
2020-01-02 12:11:56 +02:00
XhmikosR
3c0cf9365b
Bump copyright year to 2020. ( #29944 )
2020-01-02 12:11:56 +02:00
Martijn Cuppens
00b0e0a9b7
Documentation fix: move width after make-container()
mixin ( #29820 )
...
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-01-02 12:11:56 +02:00
AlexKoala
52aceee0ab
docs: Add Korean translation link
2019-12-14 17:09:46 +02:00
Shohei Yoshida
52762f83d8
Improve wrapping and hit area of accordion example titles ( #29782 )
2019-12-14 17:09:46 +02:00
XhmikosR
dca1ab7d87
Release v4.4.1.
2019-11-28 14:59:49 +02:00
XhmikosR
593574d510
Release v4.4.0 ( #29735 )
2019-11-26 19:12:00 +02:00
XhmikosR
d61bba584f
Backport #29734
...
justify-content:between ⇒ justify-content:space-between
2019-11-26 09:51:27 +02:00
XhmikosR
136afcf59b
Update anchor.js to v4.2.1 ( #29662 )
2019-11-25 13:12:53 +02:00
XhmikosR
a0bb417691
Fix icons link.
2019-11-25 13:12:53 +02:00
XhmikosR
7629daedc1
Update modal.md ( #29621 )
...
Fix typo
2019-11-02 10:02:07 +02:00
Johann-S
dd96b832f7
backport #29516 : added animation when modal backdrop is static
2019-11-02 10:02:07 +02:00
Martijn Cuppens
f55566e36b
Add configurable button text wrapping ( #29554 )
2019-11-02 10:02:07 +02:00
XhmikosR
7453733ff6
Backport #29544
...
Add link to Icons site in our docs
2019-11-02 10:02:07 +02:00
XhmikosR
f830450ca8
Fix highlighting.
...
v4-dev is using Jekyll, not Hugo.
2019-11-01 20:22:37 +02:00
Martijn Cuppens
b0b8d3c982
Convert v4-dev calc() left overs to add/subtract functions
2019-11-01 20:22:37 +02:00
Mark Otto
ea1d09c444
Doc tweaks.
2019-11-01 20:22:37 +02:00
ysds
7bd70e54f2
Add add and subtract function
2019-11-01 20:22:37 +02:00
Martijn Cuppens
ed4a4e6081
Link to versioned RFS repo ( #29598 )
2019-10-28 08:41:08 +02:00
Martijn Cuppens
f47243460e
Variable card height ( #29462 )
2019-10-14 12:12:05 +03:00
Martijn Cuppens
cd64a164f1
IE image fix ( #29483 )
2019-10-08 08:49:29 +03:00
XhmikosR
1f2b048312
Use 180 for the grid-cards placeholder images' height.
2019-09-26 18:37:07 +03:00
Shohei Yoshida
b5ba078b12
Grid card example tweaks ( #29409 )
...
Stack in cards in one column when < md
2019-09-26 18:37:07 +03:00
ysds
8741eed7a5
Add responsive example
2019-09-26 18:37:07 +03:00
ysds
afc9cae32c
Allow override default col width
2019-09-26 18:37:07 +03:00
Mark Otto
d08567797f
Cleanup
...
- Rename and move the variable to variables file
- Move code to the grid file
- Use the mixin to generate our own classes
- Wrap in a grid classes enabled conditional
- Document the mixin
2019-09-26 18:37:07 +03:00
Mark Otto
acb2b7061c
Move margins, and equal height via utility example
2019-09-26 18:37:07 +03:00
Mark Otto
9ed860ef24
First pass at .row-cols classes
...
Trying to find a new way to do responsive card decks while not locking ourselves into the cards themselves. My thinking here is we can easily control the column (.col) width by the parent, but I don't know how many we need (have 0-5 now) across each breakpoint. This works for cards so far, and I think could get us equal height, too.
2019-09-26 18:37:07 +03:00
XhmikosR
28758a03f0
carousel.md: Remove duplicate bd-example div. ( #29341 )
...
The example shortcode already adds this.
2019-09-26 18:37:07 +03:00
XhmikosR
f732bf025a
docs: remove swatches for theme colors. ( #29327 )
...
Use the built-in utilities instead.
2019-09-26 18:37:07 +03:00
XhmikosR
68ddcec057
theming.md: bring :root
up to par with Scss. ( #29323 )
...
Also, add a warning in _root.scss so that we don't miss it again.
2019-09-26 18:37:07 +03:00
XhmikosR
6d5739320e
blog example: remove unused CSS. ( #29316 )
2019-09-26 18:37:07 +03:00
tracyjordan
41b8ce278b
fixed minor typo ( #29291 )
2019-08-27 16:32:25 +03:00
Martijn Cuppens
c4e5aa0d32
docs: fix tap targets ( #29272 )
2019-08-27 16:32:25 +03:00
Johann-S
7652d326e4
Backport #29251
...
allow to pass popper.js configuration for tooltip/popover and dropdown
2019-08-27 16:32:25 +03:00
Martijn Cuppens
81d5e6eb1b
Clarify order documentation ( #29252 )
2019-08-17 17:03:00 +03:00
XhmikosR
38d055e7fb
Fix redirects. ( #29254 )
2019-08-17 17:03:00 +03:00
Mark Otto
81fa902454
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-17 17:03:00 +03:00
Mark Otto
2892675f65
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-08-17 17:03:00 +03:00