Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-06-25 15:34:03 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-07-06 16:40:27 +0300
commit234dd96abf602da776c89b6ee42618b50e67c168 (patch)
tree0e0e7970e66a8887b4a3bb6b8d6f7aa8768cccaa
parentc49b08415837996a1365be533403d83e07cb3a93 (diff)
Backport #31135
* Move color utility callouts to start of page Hierarchically/structurally, in the position they are currently at, the two callouts seem like they "belong" just to the "background color" section. Moving them to the start makes it clearer that those two callouts relate to everything in the page (both "Color" and "Background color" classes. * Change heading level otherwise the assistive technology callout looks like it's hierarchically under the "Dealing with specificity" heading
-rw-r--r--site/docs/4.5/utilities/colors.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/site/docs/4.5/utilities/colors.md b/site/docs/4.5/utilities/colors.md
index 55699adb8c..bbe22d10ba 100644
--- a/site/docs/4.5/utilities/colors.md
+++ b/site/docs/4.5/utilities/colors.md
@@ -6,6 +6,15 @@ group: utilities
toc: true
---
+{% capture callout %}
+#### Dealing with specificity
+
+Sometimes contextual classes cannot be applied due to the specificity of another selector. In some cases, a sufficient workaround is to wrap your element's content in a `<div>` with the class.
+{% endcapture %}
+{% include callout.html content=callout type="info" %}
+
+{% include callout-warning-color-assistive-technologies.md %}
+
## Color
{% capture example %}
@@ -47,12 +56,3 @@ When `$enable-gradients` is set to `true` (default is `false`), you can use `.bg
{% for color in site.data.theme-colors %}
- `.bg-gradient-{{ color.name }}`{% endfor %}
-
-{% capture callout %}
-#### Dealing with specificity
-
-Sometimes contextual classes cannot be applied due to the specificity of another selector. In some cases, a sufficient workaround is to wrap your element's content in a `<div>` with the class.
-{% endcapture %}
-{% include callout.html content=callout type="info" %}
-
-{% include callout-warning-color-assistive-technologies.md %}