diff options
| author | XhmikosR <[email protected]> | 2018-09-11 06:37:11 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-09-17 09:06:12 +0300 |
| commit | 0d869a10630d36be9277c4eac3db9b1d81b1356f (patch) | |
| tree | f976dfac9b9db20f994b99bae56d56c0e31d6ea5 | |
| parent | 928ebd89254300aee284fc78b84c8a57de188d71 (diff) | |
| download | bootstrap-0d869a10630d36be9277c4eac3db9b1d81b1356f.tar.xz bootstrap-0d869a10630d36be9277c4eac3db9b1d81b1356f.zip | |
Remove background-colors example and show only the code.
This is to avoid confusion.
| -rw-r--r-- | site/docs/4.1/utilities/colors.md | 7 |
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..dbc3e6c18 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, 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. -{% 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 |
