Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/blog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markd.otto@gmail.com>2022-05-13 20:22:46 +0300
committerGitHub <noreply@github.com>2022-05-13 20:22:46 +0300
commitf5fae5d1028261481b78474a1e2144a365fc576f (patch)
treedf63cc7c6ffbbe6149878de07c9a74532401004a
parentb08aa8f812bdfbb36ddc8e88a927f5b92007d783 (diff)
Add v5.2.0 post (#270)
* Add v5.2.0 post * Optimised images with calibre/image-actions * Improve image compression * Fix links * Update release link * Update bootstrap-5-2-0-beta.md * Update bootstrap-5-2-0-beta.md * Update bootstrap-5-2-0-beta.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: XhmikosR <xhmikosr@gmail.com>
-rw-r--r--src/content/posts/2022/bootstrap-5-2-0-beta.md199
-rw-r--r--src/static/assets/img/2021/05/v150-new-icons.pngbin22185 -> 22179 bytes
-rw-r--r--src/static/assets/img/2021/11/icons-v170.pngbin21499 -> 21483 bytes
-rw-r--r--src/static/assets/img/2022/01/icons-v180-filetypes.pngbin8934 -> 8927 bytes
-rw-r--r--src/static/assets/img/2022/01/icons-v180-love.pngbin12922 -> 12916 bytes
-rw-r--r--src/static/assets/img/2022/01/icons-v180-misc.pngbin11038 -> 11036 bytes
-rw-r--r--src/static/assets/img/2022/05/buttons-compared.pngbin0 -> 18183 bytes
-rw-r--r--src/static/assets/img/2022/05/custom-button.pngbin0 -> 51599 bytes
-rw-r--r--src/static/assets/img/2022/05/docs-darkmode.pngbin0 -> 159669 bytes
-rw-r--r--src/static/assets/img/2022/05/docs-home.pngbin0 -> 653864 bytes
-rw-r--r--src/static/assets/img/2022/05/docs-quick-start.pngbin0 -> 167317 bytes
-rw-r--r--src/static/assets/img/2022/05/docs-search.pngbin0 -> 149403 bytes
-rw-r--r--src/static/assets/img/2022/05/docs-version-picker.pngbin0 -> 46924 bytes
-rw-r--r--src/static/assets/img/2022/05/docs-versions.pngbin0 -> 149109 bytes
-rw-r--r--src/static/assets/img/2022/05/inputs-compared.pngbin0 -> 14489 bytes
15 files changed, 199 insertions, 0 deletions
diff --git a/src/content/posts/2022/bootstrap-5-2-0-beta.md b/src/content/posts/2022/bootstrap-5-2-0-beta.md
new file mode 100644
index 00000000..4a73d088
--- /dev/null
+++ b/src/content/posts/2022/bootstrap-5-2-0-beta.md
@@ -0,0 +1,199 @@
+---
+author: mdo
+date: "2022-05-13T00:00:00Z"
+title: Bootstrap 5.2.0 beta
+video: 1-yzqgwTVi8
+keywords:
+ - bootstrap
+ - release
+---
+
+It's the biggest release since v5 itself—**Bootstrap v5.2.0-beta1 is here!** This release features redesigned docs, CSS variables for all our components, responsive offcanvas, new helpers and utilities, refined buttons and inputs, and lots of improvements under the hood.
+
+Given the size of the update and time since our last release, we're doing something different and shipping it as a beta first. Keep reading for details.
+
+## Why so long?
+
+I want to start by acknowledging the time it's taken to ship a new release. As an open source maintainer, I'm constantly worried about not doing or being good enough of a developer for my projects. Pair that with a distributed team all working through this pandemic and [me having a heart attack](https://twitter.com/mdo/status/1483871584267866115?s=20&t=8rPOWalniMVV8u49S_yxkA), we've all needed some down time. I managed to put together a [Bootstrap Icons release](/2022/01/31/bootstrap-icons-1-8-0/) with what energy I had before needing another break. The rest of the team has also needed some well deserved down time.
+
+I ask that you all **please take some time to send some appreciation and support to your favorite open source maintainers**. Everyone could use a little more love in this work.
+
+All that said, we’re shipping v5.2.0-beta1 first since it's been so long—we'd love your help testing things out. We’ll follow up with a stable release as soon as possible.
+
+Okay, now onto the good parts!
+
+## Redesigned docs
+
+Another release, another docs refresh! From the get go, you'll notice our Bootstrap Purple™ is much more vibrant now, making everything feel brand new. We've rewritten our entire homepage to better show off all the awesome features of Bootstrap.
+
+[![New homepage](/assets/img/2022/05/docs-home.png)](https://getbootstrap.com)
+
+[See the homepage in action](https://getbootstrap.com) and let us know what you think!
+
+[![New docs page](/assets/img/2022/05/docs-quick-start.png)](https://getbootstrap.com/docs/5.2/getting-started/introduction/)
+
+Stepping into the actual docs, you'll notice quite a few changes. We've streamlined our navbar, done away with our subnav, and changed the sidebar to always show every page link for greater discoverability. Show above is also our [refreshed quick start guide](https://getbootstrap.com/docs/5.2/getting-started/introduction/), which is now a step-by-step instructional guide for using Bootstrap via CDN.
+
+![Docs version picker](/assets/img/2022/05/docs-version-picker.png)
+
+The refreshed navbar also has a long-awaited new version picker for v5.2.0 and beyond. From any page, click the version and see options to navigate to previous minor releases of that same page. When a page doesn't exist in an older release, you'll see a disabled version in the dropdown. We currently have no plans to link pages across major versions.
+
+![New search](/assets/img/2022/05/docs-search.png)
+
+The docs search is now powered by the latest version of Algolia's DocSearch, bringing an improved design that even shows your most recent searches.
+
+## Design tweaks
+
+To coincide with our docs redesign, we've given our buttons and inputs a slight refresh with some refined `border-radius` values. It's a small change, but a welcomed refresh to keep things modern and fresh. Here's a look at the before and after of [our buttons](https://getbootstrap.com/docs/5.2/components/buttons/):
+
+![Updated buttons](/assets/img/2022/05/buttons-compared.png)
+
+And the before and after of [our inputs](https://getbootstrap.com/docs/5.2/forms/form-control/):
+
+![Updated inputs](/assets/img/2022/05/inputs-compared.png)
+
+## Component CSS variables
+
+With this release, all our components now include CSS variables to enable real-time customization, easier theming, and (soon) color mode support starting with dark mode. Every component page has been updated to include a reference guide of the relevant CSS variables. Take for example [our buttons](https://getbootstrap.com/docs/5.2/components/buttons/#css):
+
+```scss
+--#{$prefix}btn-padding-x: #{$btn-padding-x};
+--#{$prefix}btn-padding-y: #{$btn-padding-y};
+--#{$prefix}btn-font-family: #{$btn-font-family};
+@include rfs($btn-font-size, --#{$prefix}btn-font-size);
+--#{$prefix}btn-font-weight: #{$btn-font-weight};
+--#{$prefix}btn-line-height: #{$btn-line-height};
+--#{$prefix}btn-color: #{$body-color};
+--#{$prefix}btn-bg: transparent;
+--#{$prefix}btn-border-width: #{$btn-border-width};
+--#{$prefix}btn-border-color: transparent;
+--#{$prefix}btn-border-radius: #{$btn-border-radius};
+--#{$prefix}btn-box-shadow: #{$btn-box-shadow};
+--#{$prefix}btn-disabled-opacity: #{$btn-disabled-opacity};
+--#{$prefix}btn-focus-box-shadow: 0 0 0 #{$btn-focus-width} rgba(var(--#{$prefix}btn-focus-shadow-rgb), .5);
+```
+
+Values for virtually every CSS variables are assigned via Sass variable, so customization via CSS and Sass are both well supported. Also included for several components are examples of customizing via CSS variables.
+
+![Custom button](/assets/img/2022/05/custom-button.png)
+
+Check out all our components to see how you can customize them to your liking.
+
+## New `_maps.scss`
+
+Bootstrap v5.2.0-beta1 introduces a new Sass file with `_maps.scss` that pulls out several Sass maps from `_variables.scss` to fix an issue where updates to an original map were not applied to secondary maps that extend it. It's not ideal, but it resolves a longstanding issue for folks when working with customized maps.
+
+For example, updates to `$theme-colors` were not being applied to other maps that relied on `$theme-colors` (like the `$utilities-colors` and more), which created broken customization workflows. To summarize the problem, **Sass has a limitation where once a default variable or map has been _used_, it cannot be updated**. _There's a similar shortcoming with CSS variables when they're used to compose other CSS variables._
+
+This is also why variable customizations in Bootstrap have to come after `@import "functions";`, but before `@import "variables";` and the rest of our import stack. The same applies to Sass maps—you must override the defaults before they get used. The following maps have been moved to the new `_maps.scss`:
+
+- `$theme-colors-rgb`
+- `$utilities-colors`
+- `$utilities-text`
+- `$utilities-text-colors`
+- `$utilities-bg`
+- `$utilities-bg-colors`
+- `$negative-spacers`
+- `$gutters`
+
+Your custom Bootstrap CSS builds should now look like this with a separate maps import.
+
+```diff
+ // Functions come first
+ @import "functions";
+
+ // Optional variable overrides here
++ $custom-color: #df711b;
++ $custom-theme-colors: (
++ "custom": $custom-color
++ );
+
+ // Variables come next
+ @import "variables";
+
++ // Optional Sass map overrides here
++ $theme-colors: map-merge($theme-colors, $custom-theme-colors);
++
++ // Followed by our default maps
++ @import "maps";
++
+ // Rest of our imports
+ @import "mixins";
+ @import "utilities";
+ @import "root";
+ @import "reboot";
+ // etc
+```
+
+## New helpers and utilities
+
+We're continuing to invest in our helpers and utilities to make it easier to quickly build and modify custom components.
+
+- Added new `.text-bg-{color}` helpers. Instead of setting individual `.text-*` and `.bg-*` utilities, you can now use [the `.text-bg-*` helpers](https://getbootstrap.com/docs/5.2/helpers/color-background/) to set a `background-color` with contrasting foreground `color`.
+
+- Expanded [`font-weight` utilities](https://getbootstrap.com/docs/5.2/utilities/text/#font-weight-and-italics) to include `.fw-semibold` for semibold fonts.
+
+- Expanded [`border-radius` utilities](https://getbootstrap.com/docs/5.2/utilities/borders/#sizes) to include two new sizes, `.rounded-4` and `.rounded-5`, for more options.
+
+Expect more improvements here as v5's development continues.
+
+## Responsive offcanvas
+
+Our Offcanvas component now has [responsive variations](https://getbootstrap.com/docs/5.2/components/offcanvas/#responsive). The original `.offcanvas` class remains unchanged—it hides content across all viewports. To make it responsive, change that `.offcanvas` class to any `.offcanvas-{sm|md|lg|xl|xxl}` class.
+
+## And tons more!
+
+- **Introduced new `$enable-container-classes` option. —** Now when opting into the experimental CSS Grid layout, `.container-*` classes will still be compiled, unless this option is set to `false`. Containers also now keep their gutter values.
+
+- **Thicker table dividers are now opt-in. —** We've removed the thicker and more difficult to override border between table groups and moved it to an optional class you can apply, `.table-group-divider`. [See the table docs for an example.](https://getbootstrap.com/docs/5.2/content/tables/#table-group-dividers)
+
+- **[Scrollspy has been rewritten](https://github.com/twbs/bootstrap/pull/33421) to use the Intersection Observer API**, which means you no longer need relative parent wrappers, deprecates `offset` config, and more. Look for your Scrollspy implementations to be more accurate and consistent in their nav highlighting.
+
+- Added `.form-check-reverse` modifier to flip the order of labels and associated checkboxes/radios.
+
+- Added [striped columns](https://getbootstrap.com/docs/5.2/content/tables/#striped-columns) support to tables via the new `.table-striped-columns` class.
+
+For a complete list of changes, [see the project on GitHub](https://github.com/twbs/bootstrap/projects/32).
+
+## Coming soon: Dark mode!
+
+Much of the work we've done in v5.2.0-beta1 has been in support of adding dark mode to Bootstrap. Yes, it's finally coming in our next minor release!
+
+![Dark mode](/assets/img/2022/05/docs-darkmode.png)
+
+We're adding tons of new global CSS variables, cleaning up docs styles, and better supporting overall customization. Some details and topics [being worked on for dark mode](https://github.com/twbs/bootstrap/pull/35857):
+
+- Do we provide a JS plugin for toggling color modes? Right now we're just building custom functionality for our docs.
+
+- Our current implementation is being built with `data-theme` selectors which allows explicit color mode switching (via user control vs and system preference) and custom color modes beyond `light` and `dark`.
+
+- We're adding quite a few new colors outside `$theme-colors` to improve subtle UI customization. These are being implemented via `:root` and `[data-theme="{theme}"]` selectors for global use.
+
+We'd love your feedback along the way, so [check out the dark mode pull request](https://github.com/twbs/bootstrap/pull/35857) and [dark mode staging site](https://deploy-preview-35857--twbs-bootstrap.netlify.app) to test it out.
+
+## Also coming in v5.3.0
+
+There's lots to look forward to in our next minor release, though we'll likely have some bug fixes along the way.
+
+- **Dark mode!** As mentioned above, we're actively working to bring more nuanced color options and color modes to Bootstrap. [Follow along.](https://github.com/twbs/bootstrap/pull/35857)
+- An [**attribute toggle plugin**](https://github.com/twbs/bootstrap/pull/35872) to programmatically toggle a classes and attributes by only writing HTML.
+- CSS variables for forms!
+- [Sticky headers for tables](https://github.com/twbs/bootstrap/pull/36125)
+- [Mixins and functions for modifying the utilities API](https://github.com/twbs/bootstrap/pull/35977)
+- An option for ["always floating" floating forms](https://github.com/twbs/bootstrap/pull/36155).
+
+And likely a lot more!
+
+## Get the release
+
+**Head to <https://getbootstrap.com> for the latest.** It's also been pushed to npm:
+
+```sh
+npm i bootstrap@v5.2.0-beta1
+```
+
+[Read the GitHub v5.2.0-beta1 changelog](https://github.com/twbs/bootstrap/releases/tag/v5.2.0-beta1) for a complete list of changes in this release.
+
+## Support the team
+
+Visit our [Open Collective page]({{< param "opencollective" >}}) or our [team members](https://github.com/orgs/twbs/people)' GitHub profiles to help support the maintainers contributing to Bootstrap.
diff --git a/src/static/assets/img/2021/05/v150-new-icons.png b/src/static/assets/img/2021/05/v150-new-icons.png
index f74e6122..2ea2732c 100644
--- a/src/static/assets/img/2021/05/v150-new-icons.png
+++ b/src/static/assets/img/2021/05/v150-new-icons.png
Binary files differ
diff --git a/src/static/assets/img/2021/11/icons-v170.png b/src/static/assets/img/2021/11/icons-v170.png
index 30612aa0..5e6378c4 100644
--- a/src/static/assets/img/2021/11/icons-v170.png
+++ b/src/static/assets/img/2021/11/icons-v170.png
Binary files differ
diff --git a/src/static/assets/img/2022/01/icons-v180-filetypes.png b/src/static/assets/img/2022/01/icons-v180-filetypes.png
index 3e87e5b1..c5f0d019 100644
--- a/src/static/assets/img/2022/01/icons-v180-filetypes.png
+++ b/src/static/assets/img/2022/01/icons-v180-filetypes.png
Binary files differ
diff --git a/src/static/assets/img/2022/01/icons-v180-love.png b/src/static/assets/img/2022/01/icons-v180-love.png
index 9cc5a98a..e0a5b7c2 100644
--- a/src/static/assets/img/2022/01/icons-v180-love.png
+++ b/src/static/assets/img/2022/01/icons-v180-love.png
Binary files differ
diff --git a/src/static/assets/img/2022/01/icons-v180-misc.png b/src/static/assets/img/2022/01/icons-v180-misc.png
index b7fe249d..0fcaf2bd 100644
--- a/src/static/assets/img/2022/01/icons-v180-misc.png
+++ b/src/static/assets/img/2022/01/icons-v180-misc.png
Binary files differ
diff --git a/src/static/assets/img/2022/05/buttons-compared.png b/src/static/assets/img/2022/05/buttons-compared.png
new file mode 100644
index 00000000..1fdfae6f
--- /dev/null
+++ b/src/static/assets/img/2022/05/buttons-compared.png
Binary files differ
diff --git a/src/static/assets/img/2022/05/custom-button.png b/src/static/assets/img/2022/05/custom-button.png
new file mode 100644
index 00000000..5cb301fa
--- /dev/null
+++ b/src/static/assets/img/2022/05/custom-button.png
Binary files differ
diff --git a/src/static/assets/img/2022/05/docs-darkmode.png b/src/static/assets/img/2022/05/docs-darkmode.png
new file mode 100644
index 00000000..560a8af0
--- /dev/null
+++ b/src/static/assets/img/2022/05/docs-darkmode.png
Binary files differ
diff --git a/src/static/assets/img/2022/05/docs-home.png b/src/static/assets/img/2022/05/docs-home.png
new file mode 100644
index 00000000..eb66575b
--- /dev/null
+++ b/src/static/assets/img/2022/05/docs-home.png
Binary files differ
diff --git a/src/static/assets/img/2022/05/docs-quick-start.png b/src/static/assets/img/2022/05/docs-quick-start.png
new file mode 100644
index 00000000..ff3a6634
--- /dev/null
+++ b/src/static/assets/img/2022/05/docs-quick-start.png
Binary files differ
diff --git a/src/static/assets/img/2022/05/docs-search.png b/src/static/assets/img/2022/05/docs-search.png
new file mode 100644
index 00000000..324387ec
--- /dev/null
+++ b/src/static/assets/img/2022/05/docs-search.png
Binary files differ
diff --git a/src/static/assets/img/2022/05/docs-version-picker.png b/src/static/assets/img/2022/05/docs-version-picker.png
new file mode 100644
index 00000000..aceb5b7b
--- /dev/null
+++ b/src/static/assets/img/2022/05/docs-version-picker.png
Binary files differ
diff --git a/src/static/assets/img/2022/05/docs-versions.png b/src/static/assets/img/2022/05/docs-versions.png
new file mode 100644
index 00000000..80a3f362
--- /dev/null
+++ b/src/static/assets/img/2022/05/docs-versions.png
Binary files differ
diff --git a/src/static/assets/img/2022/05/inputs-compared.png b/src/static/assets/img/2022/05/inputs-compared.png
new file mode 100644
index 00000000..d7c3b7ca
--- /dev/null
+++ b/src/static/assets/img/2022/05/inputs-compared.png
Binary files differ