Skip to content

Commit 0d869a1

Browse files
committed
Remove background-colors example and show only the code.
This is to avoid confusion.
1 parent 928ebd8 commit 0d869a1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

site/docs/4.1/utilities/colors.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,10 @@ Similar to the contextual text color classes, easily set the background of an el
4343

4444
## Background gradient
4545

46-
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.
46+
When `$enable-gradients` is set to true, you'll be able to use `.bg-gradient-` utility classes. 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.
4747

48-
{% capture example %}
4948
{% for color in site.data.theme-colors %}
50-
<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 %}
51-
{% endcapture %}
52-
{% include example.html content=example %}
49+
- `.bg-gradient-{{ color.name }}`{% endfor %}
5350

5451
{% capture callout %}
5552
#### Dealing with specificity

0 commit comments

Comments
 (0)