diff options
| author | Mark Otto <[email protected]> | 2016-12-22 16:45:48 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-12-22 16:45:48 -0800 |
| commit | 5692406a11a0753035773e9e93bd2eebecc910d6 (patch) | |
| tree | cfbcc6c852284db1659501035622e9144fd630ff /docs | |
| parent | 49315dc16daf2413a6db3e62fcabf952787eb4c7 (diff) | |
| download | bootstrap-5692406a11a0753035773e9e93bd2eebecc910d6.tar.xz bootstrap-5692406a11a0753035773e9e93bd2eebecc910d6.zip | |
better grouping of card styles docs
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/components/card.md | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/components/card.md b/docs/components/card.md index 00bc50e51..e3c89e6c3 100644 --- a/docs/components/card.md +++ b/docs/components/card.md @@ -364,7 +364,11 @@ Turn an image into a card background and overlay your card's text. Depending on </div> {% endexample %} -## Inverted text +## Card styles + +Cards include various options for customizing their backgrounds, borders, and color. + +### Inverted text 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. @@ -380,7 +384,7 @@ You can also use `.card-inverse` with the [contextual backgrounds variants](#bac </div> {% endexample %} -## Background variants +### Background variants Cards include their own variant classes for quickly changing the `background-color` and `border-color` of a card. **Darker colors require the use of `.card-inverse`.** @@ -430,7 +434,7 @@ Cards include their own variant classes for quickly changing the `background-col {% capture callout-include %}{% include callout-warning-color-assistive-technologies.md %}{% endcapture %} {{ callout-include | markdownify }} -## Outline variants +### Outline cards In need of a colored card, but not the hefty background colors they bring? Replace the default modifier classes with the `.card-outline-*` ones to style just the `border-color` of a card. |
