Skip to content

Commit

Permalink
Inverse card improvements (#21242)
Browse files Browse the repository at this point in the history
* Add a color to .card-inverse to account for non .card- prefixed classes

* reword the docs to better articulate what the class does
  • Loading branch information
mdo authored Nov 28, 2016
1 parent a6f5488 commit 2f9a94c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/components/card.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
2 changes: 2 additions & 0 deletions scss/mixins/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
//

@mixin card-inverse {
color: rgba(255,255,255,.65);

.card-header,
.card-footer {
background-color: transparent;
Expand Down

0 comments on commit 2f9a94c

Please sign in to comment.