From 548be2ed6604ddfc8488cd4a793c6271c2caf485 Mon Sep 17 00:00:00 2001 From: GeoSot Date: Tue, 2 Mar 2021 19:10:10 +0200 Subject: Offcanvas as component (#29017) * Add a new offcanvas component * offcanvas.js: switch to string constants and `event.key` * Remove unneeded code * Sass optimizations * Fixes Make sure the element is hidden and not offscreen when inactive fix close icon negative margins Add content in right & bottom examples Re-fix bottom offcanvas height not to cover all viewport * Wording tweaks * update tests and offcanvas class * separate scrollbar functionality and use it in offcanvas * Update .bundlewatch.config.json * fix focus * update btn-close / fix focus on close * add aria-modal and role return focus on trigger when offcanvas is closed change body scrolling timings * move common code to reusable functions * add aria-labelledby * Replace lorem ipsum text * fix focus when offcanvas is closed * updates * revert modal, add tests for scrollbar * show backdrop by default * Update offcanvas.md * Update offcanvas CSS to better match modals - Add background-clip for borders - Move from outline to border (less clever, more consistent) - Add scss-docs in vars * Revamp offcanvas docs - Add static example to show and explain the components - Split live examples and rename them - Simplify example content - Expand docs notes elsewhere - Add sass docs * Add .offcanvas-title instead of .modal-title * Rename offcanvas example to offcanvas-navbar to reflect it's purpose * labelledby references title and not header * Add default shadow to offcanvas * enable offcanvas-body to fill all the remaining wrapper area * Be more descriptive, on Accessibility area * remove redundant classes * ensure in case of an already open offcanvas, not to open another one * bring back backdrop|scroll combinations * bring back toggling class * refactor scrollbar method, plus tests * add check if element is not full-width, according to #30621 * revert all in modal * use documentElement innerWidth * Rename classes to -start and -end Also copyedit some docs wording * omit some things on scrollbar * PASS BrowserStack tests -- IOS devices, Android devices and Browsers on Mac, hide scrollbar by default and appear it, only while scrolling. * Rename '_handleClosing' to '_addEventListeners' * change pipe usage to comma * change Data.getData to Data.get Co-authored-by: XhmikosR Co-authored-by: Martijn Cuppens Co-authored-by: Mark Otto --- site/data/examples.yml | 8 ++------ site/data/sidebar.yml | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'site/data') diff --git a/site/data/examples.yml b/site/data/examples.yml index 0ddafaf41..d243bdad0 100644 --- a/site/data/examples.yml +++ b/site/data/examples.yml @@ -47,12 +47,8 @@ description: "Single navbar example with a fixed top navbar along with some additional content." - name: Navbar bottom description: "Single navbar example with a bottom navbar along with some additional content." - -- category: Experiments - description: "Examples that focus on future-friendly features or techniques." - examples: - - name: Offcanvas - description: "Turn your expandable navbar into a sliding offcanvas menu." + - name: Offcanvas navbar + description: "Turn your expandable navbar into a sliding offcanvas menu (doesn't use our offcanvas component)." - category: RTL description: "See Bootstrap's RTL version in action with these modified Custom Components examples." diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index 2c8f9b45c..4e43255a3 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -72,6 +72,7 @@ - title: Modal - title: Navs & tabs - title: Navbar + - title: Offcanvas - title: Pagination - title: Popovers - title: Progress -- cgit v1.2.3 From a3ad7327f233cac4bf1c9431bf99e47ab8d5f551 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 22 Mar 2021 13:59:14 -0700 Subject: Update examples (#33214) * Add updated Jumbotron example made from utilities * Update starter template example with new design and links * Update some existing examples and their screenshots * Add four new snippet-based examples * Update layout to improve things a bit * WIP * Add d-block to images * Fix horizontal scroll * move d-block to the anchor Co-authored-by: XhmikosR --- site/data/examples.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'site/data') diff --git a/site/data/examples.yml b/site/data/examples.yml index d243bdad0..9898363d6 100644 --- a/site/data/examples.yml +++ b/site/data/examples.yml @@ -1,3 +1,15 @@ +- category: Snippets + description: "Common patterns for building sites and apps that build on existing components and utilities with custom CSS and more." + examples: + - name: Headers + description: "Display your branding, navigation, search, and more with these header components" + - name: Heroes + description: "Set the stage on your homepage with heroes that feature clear calls to action." + - name: Features + description: "Explain the features, benefits, or other details in your marketing content." + - name: Sidebars + description: "Common navigation patterns ideal for offcanvas or multi-column layouts." + - category: Custom Components description: "Brand new components and templates to help folks quickly get started with Bootstrap and demonstrate best practices for adding onto the framework." examples: @@ -23,6 +35,8 @@ description: "Attach a footer to the bottom of the viewport when page content is short." - name: Sticky footer navbar description: "Attach a footer to the bottom of the viewport with a fixed top navbar." + - name: Jumbotron + description: "Use utilities to recreate and enhance Bootstrap 4's jumbotron." - category: Framework description: "Examples that focus on implementing uses of built-in components provided by Bootstrap." -- cgit v1.2.3 From 220139a89ffc3864bbb6e1b35471667318eadc1f Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 23 Mar 2021 18:26:54 +0200 Subject: Release v5.0.0-beta3 (#33439) --- site/data/docs-versions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'site/data') diff --git a/site/data/docs-versions.yml b/site/data/docs-versions.yml index aa239d976..b4fb88f05 100644 --- a/site/data/docs-versions.yml +++ b/site/data/docs-versions.yml @@ -48,6 +48,6 @@ - group: v5.x baseurl: "https://getbootstrap.com/docs" - description: "Current major release. Last update was v5.0.0-beta2." + description: "Current major release. Last update was v5.0.0-beta3." versions: - v: "5.0" -- cgit v1.2.3 From 8854eb9f3d5c99daa1506f2fca047ac1e726067c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 30 Apr 2021 14:38:58 -0700 Subject: Add new team members to the Teams page (#33782) * Add new team members to the Teams page * Update core-team.yml --- site/data/core-team.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'site/data') diff --git a/site/data/core-team.yml b/site/data/core-team.yml index 2966b9daf..3552f6f38 100644 --- a/site/data/core-team.yml +++ b/site/data/core-team.yml @@ -7,20 +7,26 @@ - name: XhmikosR user: xhmikosr -- name: Patrick H. Lauke - user: patrickhlauke +- name: GeoSot + user: geosot -- name: Gleb Mazovetskiy - user: glebm +- name: Rohit Sharma + user: rohit2sharma95 -- name: Johann-S - user: johann-s +- name: alpadev + user: alpadev + +- name: Gaël Poupard + user: ffoodd + +- name: Patrick H. Lauke + user: patrickhlauke - name: Martijn Cuppens user: martijncuppens -- name: Shohei Yoshida - user: ysds +- name: Johann-S + user: johann-s -- name: Gaël Poupard - user: ffoodd +- name: Gleb Mazovetskiy + user: glebm -- cgit v1.2.3 From bf0936748602c8109fd916c64b4560799fa1c3f8 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 5 May 2021 22:32:12 +0300 Subject: Release v5.0.0 (#33647) * Bump version to 5.0.0 * Fix npm tag * Dist --- site/data/docs-versions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'site/data') diff --git a/site/data/docs-versions.yml b/site/data/docs-versions.yml index b4fb88f05..9426eeac8 100644 --- a/site/data/docs-versions.yml +++ b/site/data/docs-versions.yml @@ -48,6 +48,6 @@ - group: v5.x baseurl: "https://getbootstrap.com/docs" - description: "Current major release. Last update was v5.0.0-beta3." + description: "Current major release. Last update was v5.0.0." versions: - v: "5.0" -- cgit v1.2.3 From 308ffba7930a33b93d0366ad6c19336f907e60da Mon Sep 17 00:00:00 2001 From: Mustafa Mahdi Date: Mon, 10 May 2021 21:16:19 +0300 Subject: Add Arabic translation (#33709) --- site/data/translations.yml | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 site/data/translations.yml (limited to 'site/data') diff --git a/site/data/translations.yml b/site/data/translations.yml deleted file mode 100644 index a17163cfa..000000000 --- a/site/data/translations.yml +++ /dev/null @@ -1,34 +0,0 @@ -- name: 中文(繁體) - code: zh-tw - description: Bootstrap 4 繁體中文手冊 - url: https://bootstrap.hexschool.com/ - -- name: Chinese - code: zh - description: Bootstrap 4 · 全球最流行的 HTML、CSS 和 JS 工具库。 - url: https://code.z01.com/v4/ - -- name: Brazilian Portuguese - code: pt-BR - description: Bootstrap 4 Português do Brasil - url: https://getbootstrap.com.br/v4/ - -- name: Japanese - code: ja - description: Bootstrap 4 日本語リファレンス - url: https://getbootstrap.jp/ - -- name: Russian - code: ru - description: Bootstrap 5 на русском - url: https://getbootstrap.su/ - -- name: Korean - code: ko - description: Bootstrap 5 한국어 문서 - url: https://getbootstrap.kr/ - -- name: 中文(繁體) - code: zh-tw - description: Bootstrap 5 繁體中文手冊 - url: https://bootstrap5.hexschool.com/ -- cgit v1.2.3 From 9106d2a0eaa53a58d6cf6eef7250634329578843 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 10 May 2021 13:57:26 -0700 Subject: Fix accidental directory rename from https://github.com/twbs/bootstrap/pull/33709 --- site/data/translations.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 site/data/translations.yml (limited to 'site/data') diff --git a/site/data/translations.yml b/site/data/translations.yml new file mode 100644 index 000000000..02302b631 --- /dev/null +++ b/site/data/translations.yml @@ -0,0 +1,39 @@ +- name: العربية + code: ar + description: Bootstrap 5 باللغة العربية + url: https://bootstrap.mahdi.style/ + +- name: 中文(繁體) + code: zh-tw + description: Bootstrap 4 繁體中文手冊 + url: https://bootstrap.hexschool.com/ + +- name: Chinese + code: zh + description: Bootstrap 4 · 全球最流行的 HTML、CSS 和 JS 工具库。 + url: https://code.z01.com/v4/ + +- name: Brazilian Portuguese + code: pt-BR + description: Bootstrap 4 Português do Brasil + url: https://getbootstrap.com.br/v4/ + +- name: Japanese + code: ja + description: Bootstrap 4 日本語リファレンス + url: https://getbootstrap.jp/ + +- name: Russian + code: ru + description: Bootstrap 5 на русском + url: https://getbootstrap.su/ + +- name: Korean + code: ko + description: Bootstrap 5 한국어 문서 + url: https://getbootstrap.kr/ + +- name: 中文(繁體) + code: zh-tw + description: Bootstrap 5 繁體中文手冊 + url: https://bootstrap5.hexschool.com/ -- cgit v1.2.3 From 58b1be927f43c779377e478df2d119f2ddf956ca Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 13 May 2021 19:22:20 +0300 Subject: Release v5.0.1 (#33972) * Bump version to 5.0.1. * Dist --- site/data/docs-versions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'site/data') diff --git a/site/data/docs-versions.yml b/site/data/docs-versions.yml index 9426eeac8..1ffad03ae 100644 --- a/site/data/docs-versions.yml +++ b/site/data/docs-versions.yml @@ -48,6 +48,6 @@ - group: v5.x baseurl: "https://getbootstrap.com/docs" - description: "Current major release. Last update was v5.0.0." + description: "Current major release. Last update was v5.0.1." versions: - v: "5.0" -- cgit v1.2.3 From 9c7f3bed710c580743c70ca104a90c7d290caf9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=B5=9B?= Date: Mon, 26 Apr 2021 13:39:12 +0800 Subject: add Bootstrap 5 Simplified Chinese translation --- site/data/translations.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'site/data') diff --git a/site/data/translations.yml b/site/data/translations.yml index 02302b631..6c71985d6 100644 --- a/site/data/translations.yml +++ b/site/data/translations.yml @@ -37,3 +37,8 @@ code: zh-tw description: Bootstrap 5 繁體中文手冊 url: https://bootstrap5.hexschool.com/ + +- name: Simplified Chinese + code: zh-CN + description: Bootstrap 5 中文文档 + url: https://v5.bootcss.com/ -- cgit v1.2.3 From 688bce4fa695cc360a0d084e34f029b0c192b223 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 22 Jun 2021 21:29:16 +0300 Subject: Release v5.0.2 (#34276) * Bump version to v5.0.2. * Dist --- site/data/docs-versions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'site/data') diff --git a/site/data/docs-versions.yml b/site/data/docs-versions.yml index 1ffad03ae..b30e10047 100644 --- a/site/data/docs-versions.yml +++ b/site/data/docs-versions.yml @@ -48,6 +48,6 @@ - group: v5.x baseurl: "https://getbootstrap.com/docs" - description: "Current major release. Last update was v5.0.1." + description: "Current major release. Last update was v5.0.2." versions: - v: "5.0" -- cgit v1.2.3 From 2d8da8bcb0432daeb7de9d0042690af3be84f422 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 22 Jun 2021 19:15:02 -0700 Subject: Add four new snippet examples (#33882) * Add four new snippet examples - Dropdowns - Footers - List groups - Modals * Fix HTML linter errors * more linter --- site/data/examples.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'site/data') diff --git a/site/data/examples.yml b/site/data/examples.yml index 9898363d6..6d6419d21 100644 --- a/site/data/examples.yml +++ b/site/data/examples.yml @@ -9,6 +9,14 @@ description: "Explain the features, benefits, or other details in your marketing content." - name: Sidebars description: "Common navigation patterns ideal for offcanvas or multi-column layouts." + - name: Footers + description: "Finish every page strong with an awesome footer, big or small." + - name: Dropdowns + description: "Enhance your dropdowns with filters, icons, custom styles, and more." + - name: List groups + description: "Extend list groups with utilities and custom styles for any content." + - name: Modals + description: "Transform modals to serve any purpose, from feature tours to dialogs." - category: Custom Components description: "Brand new components and templates to help folks quickly get started with Bootstrap and demonstrate best practices for adding onto the framework." -- cgit v1.2.3 From a816615efa9d4fbd311c58d79b096c5672a406a1 Mon Sep 17 00:00:00 2001 From: harishhalodoc <80090779+harishhalodoc@users.noreply.github.com> Date: Wed, 23 Jun 2021 07:50:01 +0530 Subject: Add utility classes for opacity (#33781) * Add responsive utility classes for opacity - fix for #33483 * remove responsive opacity utils as it has impact on bootstrap.css bundle size * Update opacity.md * Update site/content/docs/5.0/utilities/opacity.md Co-authored-by: Mark Otto * Update site/content/docs/5.0/utilities/opacity.md Co-authored-by: Mark Otto Co-authored-by: Harish Co-authored-by: XhmikosR Co-authored-by: Mark Otto Co-authored-by: Mark Otto Co-authored-by: alpadev <2838324+alpadev@users.noreply.github.com> --- site/data/sidebar.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'site/data') diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index 4e43255a3..70652afd8 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -101,6 +101,7 @@ - title: Flex - title: Float - title: Interactions + - title: Opacity - title: Overflow - title: Position - title: Shadows -- cgit v1.2.3 From dd824f2d3eab63790ccbd30d6e5c125b77d82d32 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 22 Jun 2021 19:51:16 -0700 Subject: v5.1: Add optional CSS grid (#31813) --- site/data/sidebar.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'site/data') diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index 70652afd8..ab99029b0 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -34,6 +34,7 @@ - title: Gutters - title: Utilities - title: Z-index + - title: CSS Grid - title: Content pages: -- cgit v1.2.3 From 2bc6de1f5ea85e2b1e228e56c96b339dc105b1c8 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 14 May 2021 14:32:24 -0700 Subject: Add hstack and vstack helpers --- site/data/sidebar.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'site/data') diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index ab99029b0..fa37b8197 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -88,6 +88,7 @@ - title: Colored links - title: Ratio - title: Position + - title: Stacks - title: Visually hidden - title: Stretched link - title: Text truncation -- cgit v1.2.3 From aee169d19288d78330be2df0960ea8924353f84f Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 22 Jun 2021 22:22:02 -0700 Subject: Split .vr from stacks as a new helper --- site/data/sidebar.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'site/data') diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index fa37b8197..b4f63bfae 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -92,6 +92,7 @@ - title: Visually hidden - title: Stretched link - title: Text truncation + - title: Vertical rule - title: Utilities pages: -- cgit v1.2.3 From 2bdbb42dcf6bfb99b5e9e5444d9e64589eb8c08f Mon Sep 17 00:00:00 2001 From: Ben Koshy Date: Fri, 23 Jul 2021 01:29:47 +1000 Subject: docs: Add Github Octicons to the list (#34526) Co-authored-by: Mark Otto Co-authored-by: XhmikosR --- site/data/icons.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'site/data') diff --git a/site/data/icons.yml b/site/data/icons.yml index f97350ce4..02727fc2f 100644 --- a/site/data/icons.yml +++ b/site/data/icons.yml @@ -9,6 +9,8 @@ preferred: more: - name: Bytesize website: https://github.com/danklammer/bytesize-icons + - name: CoreUI Icons + website: https://icons.coreui.io/ - name: Google Material icons website: https://material.io/resources/icons/ - name: Ionicons @@ -21,5 +23,5 @@ more: website: https://icons8.com/ - name: icofont website: https://icofont.com/ - - name: CoreUI Icons - website: https://icons.coreui.io/ + - name: Octicons + website: https://primer.style/octicons/ -- cgit v1.2.3 From f41bf2f7c5640da7a17872cb9f4dc0175246b100 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 26 Jul 2021 23:14:24 -0600 Subject: Rename Build Tools page to Contribute (#34578) Co-authored-by: XhmikosR --- site/data/sidebar.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'site/data') diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index b4f63bfae..4bfdcc0ab 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -8,12 +8,12 @@ - title: Contents - title: Browsers & devices - title: JavaScript - - title: Build tools - title: Webpack - title: Parcel - title: Accessibility - title: RFS - title: RTL + - title: Contribute - title: Customize pages: -- cgit v1.2.3 From 39b7c75b13dd982e1a4f106f412ff18acc0026ec Mon Sep 17 00:00:00 2001 From: Jaume Sala Date: Tue, 3 Aug 2021 17:59:00 +0200 Subject: Add new placeholder component (#31859) Co-authored-by: XhmikosR Co-authored-by: Jaume Sala Co-authored-by: Mark Otto Co-authored-by: Patrick H. Lauke --- site/data/sidebar.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'site/data') diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index 4bfdcc0ab..df95692af 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -75,6 +75,7 @@ - title: Navbar - title: Offcanvas - title: Pagination + - title: Placeholders - title: Popovers - title: Progress - title: Scrollspy -- cgit v1.2.3 From f20fece3a8cdd0e76a42c2737524b7652bf54d26 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 4 Aug 2021 18:41:51 +0300 Subject: Prepare v5.1.0. (#34674) --- site/data/docs-versions.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'site/data') diff --git a/site/data/docs-versions.yml b/site/data/docs-versions.yml index b30e10047..8e12f8434 100644 --- a/site/data/docs-versions.yml +++ b/site/data/docs-versions.yml @@ -48,6 +48,7 @@ - group: v5.x baseurl: "https://getbootstrap.com/docs" - description: "Current major release. Last update was v5.0.2." + description: "Current major release. Last update was v5.1.0." versions: - v: "5.0" + - v: "5.1" -- cgit v1.2.3