0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-28 00:54:30 +01:00

card.md: use text-dark for warning card.

This commit is contained in:
XhmikosR 2019-08-05 16:11:51 +03:00
parent 1edba8072d
commit 758ee5f0f8

View File

@ -409,7 +409,7 @@ Use [text and background utilities]({{< docsref "/utilities/colors" >}}) to chan
{{< example >}} {{< example >}}
{{< card.inline >}} {{< card.inline >}}
{{- range (index $.Site.Data "theme-colors") }} {{- range (index $.Site.Data "theme-colors") }}
<div class="card{{ if not (eq .name "light") }} text-white{{ end }} bg-{{ .name }} mb-3" style="max-width: 18rem;"> <div class="card{{ if not (or (eq .name "light") (eq .name "warning")) }} text-white{{ end }} bg-{{ .name }} mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div> <div class="card-header">Header</div>
<div class="card-body"> <div class="card-body">
<h5 class="card-title">{{ .name | title }} card title</h5> <h5 class="card-title">{{ .name | title }} card title</h5>