diff options
| author | Bobby <[email protected]> | 2024-08-16 20:47:33 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-16 20:47:33 -0400 |
| commit | 6b28433d9cfde435be8ec2bd6cf91e6324d08865 (patch) | |
| tree | 8343c27b8b95ff5639233e81cf157f92e5688466 /site/content/docs/5.1/utilities/opacity.md | |
| parent | d53094ec16ba385faae2973ddee648698b32ab24 (diff) | |
| parent | 048f56f51460df75e92a2f7b472e1c56baeb68f7 (diff) | |
| download | bootstrap-main.tar.xz bootstrap-main.zip | |
Diffstat (limited to 'site/content/docs/5.1/utilities/opacity.md')
| -rw-r--r-- | site/content/docs/5.1/utilities/opacity.md | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/site/content/docs/5.1/utilities/opacity.md b/site/content/docs/5.1/utilities/opacity.md deleted file mode 100644 index a2fdc3807..000000000 --- a/site/content/docs/5.1/utilities/opacity.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -layout: docs -title: Opacity -description: Control the opacity of elements. -group: utilities ---- - -The `opacity` property sets the opacity level for an element. The opacity level describes the transparency level, where `1` is not transparent at all, `.5` is 50% visible, and `0` is completely transparent. - -Set the `opacity` of an element using `.opacity-{value}` utilities. - -<div class="bd-example d-sm-flex"> - <div class="opacity-100 p-3 m-2 bg-primary text-light fw-bold rounded">100%</div> - <div class="opacity-75 p-3 m-2 bg-primary text-light fw-bold rounded">75%</div> - <div class="opacity-50 p-3 m-2 bg-primary text-light fw-bold rounded">50%</div> - <div class="opacity-25 p-3 m-2 bg-primary text-light fw-bold rounded">25%</div> -</div> - -```html -<div class="opacity-100">...</div> -<div class="opacity-75">...</div> -<div class="opacity-50">...</div> -<div class="opacity-25">...</div> -``` - -### Utilities API - -Opacity utilities are declared in our utilities API in `scss/_utilities.scss`. [Learn how to use the utilities API.]({{< docsref "/utilities/api#using-the-api" >}}) - -{{< scss-docs name="utils-opacity" file="scss/_utilities.scss" >}} |
