aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-10-02 20:57:24 -0700
committerMark Otto <[email protected]>2017-10-02 20:57:24 -0700
commit61cc1d8ca659e1c05640ef994ece1e594c0779b9 (patch)
treebc1445dfb8b253cba5b8ba15ffb6ebb56da56e53 /docs
parent7825144895ad84f5156cc54d7bee252315e9aa73 (diff)
downloadbootstrap-61cc1d8ca659e1c05640ef994ece1e594c0779b9.tar.xz
bootstrap-61cc1d8ca659e1c05640ef994ece1e594c0779b9.zip
fix up colors, closes #23325
Diffstat (limited to 'docs')
-rw-r--r--docs/4.0/utilities/colors.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/4.0/utilities/colors.md b/docs/4.0/utilities/colors.md
index 57afcc6ea..13c0adc8a 100644
--- a/docs/4.0/utilities/colors.md
+++ b/docs/4.0/utilities/colors.md
@@ -8,26 +8,26 @@ toc: true
{% example html %}
{% for color in site.data.theme-colors %}
-<p class="text-{{ color.name }}">.text-{{ color.name }}</p>{% endfor %}
+<p class="text-{{ color.name }}{% if color.name == "light" %} bg-dark{% endif %}">.text-{{ color.name }}</p>{% endfor %}
<p class="text-muted">.text-muted</p>
-<p class="text-white bg-dark p-2">.text-white</p>
+<p class="text-white bg-dark">.text-white</p>
{% endexample %}
-Contextual text classes also work well on anchors with the provided hover and focus states. **Note that the `.text-white` class has no link styling.**
+Contextual text classes also work well on anchors with the provided hover and focus states. **Note that the `.text-white` and `.text-muted` class has no link styling.**
{% example html %}
{% for color in site.data.theme-colors %}
-<p><a href="#" class="text-{{ color.name }}{% if color.name == "light" %} bg-gray{% endif %}">{{ color.name | capitalize }} link</a></p>{% endfor %}
+<p><a href="#" class="text-{{ color.name }}{% if color.name == "light" %} bg-dark{% endif %}">{{ color.name | capitalize }} link</a></p>{% endfor %}
<p><a href="#" class="text-muted">Muted link</a></p>
-<p class="bg-dark p-2"><a href="#" class="text-white">White link</a></p>
+<p><a href="#" class="text-white bg-dark">White link</a></p>
{% endexample %}
Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes. Background utilities **do not set `color`**, so in some cases you'll want to use `.text-*` utilities.
{% example html %}
{% for color in site.data.theme-colors %}
-<div class="p-3 mb-2 bg-{{ color.name }} {% if color.name == "light" %}text-gray-dark{% else %}text-white{% endif %}">.bg-{{ color.name }}</div>{% endfor %}
-<div class="p-3 mb-2 bg-white text-gray-dark">.bg-white</div>
+<div class="p-3 mb-2 bg-{{ color.name }} {% if color.name == "light" %}text-dark{% else %}text-white{% endif %}">.bg-{{ color.name }}</div>{% endfor %}
+<div class="p-3 mb-2 bg-white text-dark">.bg-white</div>
{% endexample %}
{% callout info %}