diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-24 12:33:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-24 12:33:51 +0000 |
commit | 3ea39841c8049525e31e9f4d6300f0c60cdb42de (patch) | |
tree | 855de60a8872eafb5911acd303aedcdbfe713a73 /site/content/docs/5.2/utilities/opacity.md | |
parent | Inital commit. (diff) | |
download | bootstrap-html-3ea39841c8049525e31e9f4d6300f0c60cdb42de.tar.xz bootstrap-html-3ea39841c8049525e31e9f4d6300f0c60cdb42de.zip |
Adding upstream version 5.2.3+dfsg.upstream/5.2.3+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | site/content/docs/5.2/utilities/opacity.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/site/content/docs/5.2/utilities/opacity.md b/site/content/docs/5.2/utilities/opacity.md new file mode 100644 index 0000000..5cc4c22 --- /dev/null +++ b/site/content/docs/5.2/utilities/opacity.md @@ -0,0 +1,31 @@ +--- +layout: docs +title: Opacity +description: Control the opacity of elements. +group: utilities +added: "5.1" +--- + +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" >}} |