diff options
| author | XhmikosR <[email protected]> | 2021-07-29 09:14:40 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-29 09:14:40 +0300 |
| commit | ef5336373fc2431b3d1d37cde85cd262210a1dc6 (patch) | |
| tree | e325fb4c5532b464d05780c731d0f118f2a88d7f /site/content/docs/5.0/utilities | |
| parent | 62edf07d7491684fe67a9c1e9439ed2bd10ca741 (diff) | |
| parent | c6c0bbb0b67fe89b55740a63fd10d4ad79044970 (diff) | |
| download | bootstrap-main-fod-simpler-table-structure.tar.xz bootstrap-main-fod-simpler-table-structure.zip | |
Merge branch 'main' into main-fod-simpler-table-structuremain-fod-simpler-table-structure
Diffstat (limited to 'site/content/docs/5.0/utilities')
| -rw-r--r-- | site/content/docs/5.0/utilities/opacity.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/site/content/docs/5.0/utilities/opacity.md b/site/content/docs/5.0/utilities/opacity.md new file mode 100644 index 000000000..a2fdc3807 --- /dev/null +++ b/site/content/docs/5.0/utilities/opacity.md @@ -0,0 +1,30 @@ +--- +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" >}} |
