mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Inverse card improvements (#21242)
* Add a color to .card-inverse to account for non .card- prefixed classes * reword the docs to better articulate what the class does
This commit is contained in:
parent
a6f54889fd
commit
2f9a94caac
@ -314,7 +314,7 @@ Turn an image into a card background and overlay your card's text. Depending on
|
||||
|
||||
## Inverted text
|
||||
|
||||
Cards include a class for quickly toggling **the text color**. By default, cards use dark text and assume a light background. **Add `.card-inverse` for white text** and specify the `background-color` and `border-color` to go with it.
|
||||
By default, cards use dark text and assume a light background. You can reverse that by toggling the `color` of text within, as well as that of the card's subcomponents, with `.card-inverse`. Then, specify a dark `background-color` and `border-color` to go with it.
|
||||
|
||||
You can also use `.card-inverse` with the [contextual backgrounds variants](#background-variants).
|
||||
|
||||
|
@ -20,6 +20,8 @@
|
||||
//
|
||||
|
||||
@mixin card-inverse {
|
||||
color: rgba(255,255,255,.65);
|
||||
|
||||
.card-header,
|
||||
.card-footer {
|
||||
background-color: transparent;
|
||||
|
Loading…
Reference in New Issue
Block a user