aboutsummaryrefslogtreecommitdiff
path: root/site/docs
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2018-09-17 12:34:41 -0700
committerMark Otto <[email protected]>2018-09-17 12:34:41 -0700
commit9e24d68112e79b0ae0cf3e264cb59a2dc5e0c492 (patch)
tree72729a19e303cf4ab272b724e05f20f297fbdf52 /site/docs
parentb68ea572da7b16232b04820bfa1035c506af8bb2 (diff)
parent47107d46477c4750abc876467d30c8612b25b371 (diff)
downloadbootstrap-9e24d68112e79b0ae0cf3e264cb59a2dc5e0c492.tar.xz
bootstrap-9e24d68112e79b0ae0cf3e264cb59a2dc5e0c492.zip
Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev
Diffstat (limited to 'site/docs')
-rw-r--r--site/docs/4.1/utilities/colors.md7
1 files changed, 2 insertions, 5 deletions
diff --git a/site/docs/4.1/utilities/colors.md b/site/docs/4.1/utilities/colors.md
index 573782644..55699adb8 100644
--- a/site/docs/4.1/utilities/colors.md
+++ b/site/docs/4.1/utilities/colors.md
@@ -43,13 +43,10 @@ Similar to the contextual text color classes, easily set the background of an el
## Background gradient
-When `$enable-gradients` is set to true, you'll be able to use `.bg-gradient-` utility classes. **By default, `$enable-gradients` is disabled and the example below is intentionally broken.** This is done for easier customization from the moment you start using Bootstrap. [Learn about our Sass options]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/theming/#sass-options) to enable these classes and more.
+When `$enable-gradients` is set to `true` (default is `false`), you can use `.bg-gradient-` utility classes. [Learn about our Sass options]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/theming/#sass-options) to enable these classes and more.
-{% capture example %}
{% for color in site.data.theme-colors %}
-<div class="p-3 mb-2 bg-gradient-{{ color.name }} {% if color.name == "light" or color.name == "warning" %}text-dark{% else %}text-white{% endif %}">.bg-gradient-{{ color.name }}</div>{% endfor %}
-{% endcapture %}
-{% include example.html content=example %}
+- `.bg-gradient-{{ color.name }}`{% endfor %}
{% capture callout %}
#### Dealing with specificity