]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove background-colors example and show only the code.
authorXhmikosR <xhmikosr@gmail.com>
Tue, 11 Sep 2018 03:37:11 +0000 (06:37 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 17 Sep 2018 06:06:12 +0000 (09:06 +0300)
This is to avoid confusion.

site/docs/4.1/utilities/colors.md

index 573782644822f4b87044d2e75ef6283d9ae1e745..dbc3e6c186467d6e97bb6c44a6ca93466f79e02b 100644 (file)
@@ -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