]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Inverse card improvements (#21242)
authorMark Otto <markd.otto@gmail.com>
Mon, 28 Nov 2016 21:22:51 +0000 (13:22 -0800)
committerGitHub <noreply@github.com>
Mon, 28 Nov 2016 21:22:51 +0000 (13:22 -0800)
* 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
scss/mixins/_cards.scss

index 8fd2276cb78a17f27830d39bae92d6fc9fc0e700..7d350708c900523f1209e9c2d69c44f7301326a4 100644 (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).
 
index 2c852c4267a8122116f55b9aff0131ca9b9c5664..4b1232d8b20094db228d7da58353f4bf2b9cb639 100644 (file)
@@ -20,6 +20,8 @@
 //
 
 @mixin card-inverse {
+  color: rgba(255,255,255,.65);
+
   .card-header,
   .card-footer {
     background-color: transparent;