0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-28 10:24:19 +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:
Mark Otto 2016-11-28 13:22:51 -08:00 committed by GitHub
parent a6f54889fd
commit 2f9a94caac
2 changed files with 3 additions and 1 deletions

View File

@ -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).

View File

@ -20,6 +20,8 @@
//
@mixin card-inverse {
color: rgba(255,255,255,.65);
.card-header,
.card-footer {
background-color: transparent;