aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-06-25 18:16:37 -0700
committerMark Otto <[email protected]>2017-06-25 18:16:37 -0700
commitfc053ed096a16a4c0840fc9a942394390847b12c (patch)
treedfc45eabcd03fb88807cf2e455c93e1c15575c60 /docs
parentaa83c4f4170a3ad102a69f601bd822a833c23099 (diff)
downloadbootstrap-fc053ed096a16a4c0840fc9a942394390847b12c.tar.xz
bootstrap-fc053ed096a16a4c0840fc9a942394390847b12c.zip
update background utils
Diffstat (limited to 'docs')
-rw-r--r--docs/4.0/utilities/colors.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/4.0/utilities/colors.md b/docs/4.0/utilities/colors.md
index 3d06b3e4e..11ac0be60 100644
--- a/docs/4.0/utilities/colors.md
+++ b/docs/4.0/utilities/colors.md
@@ -15,14 +15,14 @@ Contextual text classes also work well on anchors with the provided hover and fo
{% example html %}
{% for color in site.data.theme-colors %}
-<p><a href="#" class="text-{{ color.name }}{% if color.name == "white" %} bg-gray{% endif %}">{{ color.name | capitalize }} link</a></p>{% endfor %}
+<p><a href="#" class="text-{{ color.name }}{% if color.name == "light" %} bg-gray{% endif %}">{{ color.name | capitalize }} link</a></p>{% endfor %}
{% 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 bg-{{ color.name }} {% if color.name == "white" %}text-gray-dark{% else %}text-white{% endif %}">.bg-{{ color.name }}</div>{% endfor %}
+<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 %}
{% endexample %}
{% callout info %}