From 2f9a94caac58a68a12c17818da0d1e2c2402368e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 28 Nov 2016 13:22:51 -0800 Subject: [PATCH] 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 --- docs/components/card.md | 2 +- scss/mixins/_cards.scss | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/components/card.md b/docs/components/card.md index 8fd2276cb7..7d350708c9 100644 --- a/docs/components/card.md +++ b/docs/components/card.md @@ -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). diff --git a/scss/mixins/_cards.scss b/scss/mixins/_cards.scss index 2c852c4267..4b1232d8b2 100644 --- a/scss/mixins/_cards.scss +++ b/scss/mixins/_cards.scss @@ -20,6 +20,8 @@ // @mixin card-inverse { + color: rgba(255,255,255,.65); + .card-header, .card-footer { background-color: transparent;