From de68df20cdfff8b5cefacddfe0b554b9ffc9479a Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Wed, 8 Sep 2021 22:59:17 +0900 Subject: fix utilities typo (#34923) --- site/content/docs/5.1/customize/sass.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/5.1/customize/sass.md b/site/content/docs/5.1/customize/sass.md index 137f1cfd8..e00d1eeae 100644 --- a/site/content/docs/5.1/customize/sass.md +++ b/site/content/docs/5.1/customize/sass.md @@ -71,7 +71,7 @@ In your `custom.scss`, you'll import Bootstrap's source Sass files. You have two @import "../node_modules/bootstrap/scss/grid"; @import "../node_modules/bootstrap/scss/helpers"; -// 5. Optionally include utilities API last to generate classes based on the Sass map in `_utililies.scss` +// 5. Optionally include utilities API last to generate classes based on the Sass map in `_utilities.scss` @import "../node_modules/bootstrap/scss/utilities/api"; // 6. Add additional custom code here -- cgit v1.2.3 From 499485589f10f678fd36b3683e1c8553c0a9a2e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Wed, 8 Sep 2021 16:58:50 +0200 Subject: Remove remaining "master" branch references (#34932) --- js/src/offcanvas.js | 2 +- js/src/util/backdrop.js | 2 +- js/src/util/focustrap.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/offcanvas.js b/js/src/offcanvas.js index 57bf2e897..ba809cdf2 100644 --- a/js/src/offcanvas.js +++ b/js/src/offcanvas.js @@ -1,7 +1,7 @@ /** * -------------------------------------------------------------------------- * Bootstrap (v5.1.1): offcanvas.js - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ diff --git a/js/src/util/backdrop.js b/js/src/util/backdrop.js index e98d80707..80628c38d 100644 --- a/js/src/util/backdrop.js +++ b/js/src/util/backdrop.js @@ -1,7 +1,7 @@ /** * -------------------------------------------------------------------------- * Bootstrap (v5.1.1): util/backdrop.js - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ diff --git a/js/src/util/focustrap.js b/js/src/util/focustrap.js index ca6f8273f..f1433c219 100644 --- a/js/src/util/focustrap.js +++ b/js/src/util/focustrap.js @@ -1,7 +1,7 @@ /** * -------------------------------------------------------------------------- * Bootstrap (v5.1.1): util/focustrap.js - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ -- cgit v1.2.3 From 24daa47131c543933bc43949d9dbe01911475a08 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Thu, 9 Sep 2021 02:55:01 +0900 Subject: Fix Backdroped typo (#34920) --- site/content/docs/5.1/components/offcanvas.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/5.1/components/offcanvas.md b/site/content/docs/5.1/components/offcanvas.md index 72ba4be95..6be2cd64d 100644 --- a/site/content/docs/5.1/components/offcanvas.md +++ b/site/content/docs/5.1/components/offcanvas.md @@ -161,7 +161,7 @@ Scrolling the `` element is disabled when an offcanvas and its backdrop ar
-
Backdroped with scrolling
+
Backdrop with scrolling
-- cgit v1.2.3 From 8db02e24d6a938388ff9e0e4e9aa241c0f699437 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Thu, 9 Sep 2021 15:44:44 +0900 Subject: Non-blocking typo fix (#34935) --- site/content/docs/5.1/customize/optimize.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/5.1/customize/optimize.md b/site/content/docs/5.1/customize/optimize.md index 29b152154..2fc1bb3fc 100644 --- a/site/content/docs/5.1/customize/optimize.md +++ b/site/content/docs/5.1/customize/optimize.md @@ -71,7 +71,7 @@ Lastly, this [CSS Tricks article on unused CSS](https://css-tricks.com/how-do-yo Whenever possible, be sure to compress all the code you serve to your visitors. If you're using Bootstrap dist files, try to stick to the minified versions (indicated by the `.min.css` and `.min.js` extensions). If you're building Bootstrap from the source with your own build system, be sure to implement your own minifiers for HTML, CSS, and JS. -## Nonblocking files +## Non-blocking files While minifying and using compression might seem like enough, making your files nonblocking ones is also a big step in making your site well-optimized and fast enough. -- cgit v1.2.3 From 2a925d6fd800d89b072d9f035a069d84e735941b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Thu, 9 Sep 2021 08:50:55 +0200 Subject: Separator for table direct children (#34861) * fix(tables): separator for table direct children * fix(tables): drop universal selectors * fix(tables): trying the lobotomized owl selector * fix(tables): get closer to v4 * fix(tables): ensure borderless are borderless --- scss/_tables.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scss/_tables.scss b/scss/_tables.scss index d474ad566..e10e4c4e4 100644 --- a/scss/_tables.scss +++ b/scss/_tables.scss @@ -39,8 +39,8 @@ } // Highlight border color between thead, tbody and tfoot. - > :not(:last-child) > :last-child > * { - border-bottom-color: $table-group-separator-color; + > :not(:first-child) { + border-top: (2 * $table-border-width) solid $table-group-separator-color; } } @@ -91,6 +91,10 @@ > :not(caption) > * > * { border-bottom-width: 0; } + + > :not(:first-child) { + border-top-width: 0; + } } // Zebra-striping -- cgit v1.2.3 From f7c361f5538f0ea93badd1964b3d8b54d30ded86 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Thu, 9 Sep 2021 20:30:41 +0900 Subject: replace dummy text with English for Text truncation page (#34936) --- site/content/docs/5.1/helpers/text-truncation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/content/docs/5.1/helpers/text-truncation.md b/site/content/docs/5.1/helpers/text-truncation.md index a92a171fd..799f2059b 100644 --- a/site/content/docs/5.1/helpers/text-truncation.md +++ b/site/content/docs/5.1/helpers/text-truncation.md @@ -12,12 +12,12 @@ For longer content, you can add a `.text-truncate` class to truncate the text wi
- Praeterea iter est quasdam res quas ex communi. + This text is quite long, and will be truncated once displayed.
- Praeterea iter est quasdam res quas ex communi. + This text is quite long, and will be truncated once displayed. {{< /example >}} -- cgit v1.2.3 From cb87ed2a7985744f042b663d2c87653ce68da476 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Thu, 9 Sep 2021 20:37:52 +0900 Subject: docs: Add role="switch" to switches (#34824) * docs: Add role="switch" to switches * Tweak/expand explanation about assistive technologies Co-authored-by: Patrick H. Lauke --- site/content/docs/5.1/forms/checks-radios.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/site/content/docs/5.1/forms/checks-radios.md b/site/content/docs/5.1/forms/checks-radios.md index 0f5507f54..efd040de0 100644 --- a/site/content/docs/5.1/forms/checks-radios.md +++ b/site/content/docs/5.1/forms/checks-radios.md @@ -102,23 +102,23 @@ Add the `disabled` attribute and the associated `
' ].join('') - // const btn = fixtureEl.querySelector('[data-bs-target="#collapseOne"]') const el = fixtureEl.querySelector('#collapseOne') const activeTabPane = fixtureEl.querySelector('#nav-home') const collapse = new Collapse(el) let times = 1 el.addEventListener('hidden.bs.collapse', () => { - setTimeout(() => collapse.show(), 10) + collapse.show() }) el.addEventListener('shown.bs.collapse', () => { -- cgit v1.2.3 From 55a352d02304cb0012194c33b8b50f9426b53f94 Mon Sep 17 00:00:00 2001 From: cdalexndr Date: Wed, 8 Sep 2021 14:40:45 +0300 Subject: Fix responsive img docs https://github.com/twbs/bootstrap/issues/34885 --- site/content/docs/5.1/content/images.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/content/docs/5.1/content/images.md b/site/content/docs/5.1/content/images.md index f1012efbf..9d13ef4fb 100644 --- a/site/content/docs/5.1/content/images.md +++ b/site/content/docs/5.1/content/images.md @@ -1,14 +1,14 @@ --- layout: docs title: Images -description: Documentation and examples for opting images into responsive behavior (so they never become larger than their parent elements) and add lightweight styles to them—all via classes. +description: Documentation and examples for opting images into responsive behavior (so they never become wider than their parent) and add lightweight styles to them—all via classes. group: content toc: true --- ## Responsive images -Images in Bootstrap are made responsive with `.img-fluid`. This applies `max-width: 100%;` and `height: auto;` to the image so that it scales with the parent element. +Images in Bootstrap are made responsive with `.img-fluid`. This applies `max-width: 100%;` and `height: auto;` to the image so that it scales with the parent width. {{< example >}} {{< placeholder width="100%" height="250" class="bd-placeholder-img-lg img-fluid" text="Responsive image" >}} -- cgit v1.2.3