Adding upstream version 5.3.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
bc475d7d0d
commit
e1f69a237f
605 changed files with 15320 additions and 9495 deletions
33
site/content/docs/5.3/utilities/opacity.md
Normal file
33
site/content/docs/5.3/utilities/opacity.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
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>
|
||||
```
|
||||
|
||||
## CSS
|
||||
|
||||
### Sass 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" >}}
|
Loading…
Add table
Add a link
Reference in a new issue