Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
8df34b07
Commit
8df34b07
authored
7 years ago
by
Andres Galante
Committed by
XhmikosR
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Change the text color to dark on bg color warning examples (#24805)
parent
81cf6c49
6 merge requests
!28721
Hot test
,
!27561
Adds font-weight-medium to font weight classes
,
!25494
web pack
,
!25326
Adjust examples
,
!23207
#22402 : modal: new autofocus & keyboardBtnNav options
,
!17021
v4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/4.0/utilities/colors.md
+2
-2
docs/4.0/utilities/colors.md
with
2 additions
and
2 deletions
+2
-2
docs/4.0/utilities/colors.md
+
2
-
2
View file @
8df34b07
...
...
@@ -30,7 +30,7 @@ Similar to the contextual text color classes, easily set the background of an el
{% example html %}
{% for color in site.data.theme-colors %}
<div
class=
"p-3 mb-2 bg-{{ color.name }} {% if color.name == "
light
"
%}
text-dark
{%
else
%}
text-white
{%
endif
%}"
>
.bg-{{ color.name }}
</div>
{% endfor %}
<div
class=
"p-3 mb-2 bg-{{ color.name }} {% if color.name == "
light
"
or
color.name =
=
"
warning
"
%}
text-dark
{%
else
%}
text-white
{%
endif
%}"
>
.bg-{{ color.name }}
</div>
{% endfor %}
<div
class=
"p-3 mb-2 bg-white text-dark"
>
.bg-white
</div>
{% endexample %}
...
...
@@ -40,7 +40,7 @@ When `$enable-gradients` is set to true, you'll be able to use `.bg-gradient-` u
{% example html %}
{% for color in site.data.theme-colors %}
<div
class=
"p-3 mb-2 bg-gradient-{{ color.name }} {% if color.name == "
light
"
%}
text-dark
{%
else
%}
text-white
{%
endif
%}"
>
.bg-gradient-{{ color.name }}
</div>
{% endfor %}
<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 %}
{% endexample %}
{% callout info %}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets