Skip to content
GitLab
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
f732bf02
Commit
f732bf02
authored
5 years ago
by
XhmikosR
Browse files
Options
Download
Email Patches
Plain Diff
docs: remove swatches for theme colors. (#29327)
Use the built-in utilities instead.
parent
68ddcec0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
site/docs/4.3/assets/scss/_colors.scss
+0
-7
site/docs/4.3/assets/scss/_colors.scss
site/docs/4.3/getting-started/theming.md
+1
-1
site/docs/4.3/getting-started/theming.md
with
1 addition
and
8 deletions
+1
-8
site/docs/4.3/assets/scss/_colors.scss
+
0
-
7
View file @
f732bf02
...
@@ -9,13 +9,6 @@
...
@@ -9,13 +9,6 @@
}
}
}
}
@each
$color
,
$value
in
$theme-colors
{
.swatch-
#{
$color
}
{
color
:
color-yiq
(
$value
);
background-color
:
#{
$value
}
;
}
}
@each
$color
,
$value
in
$grays
{
@each
$color
,
$value
in
$grays
{
.swatch-
#{
$color
}
{
.swatch-
#{
$color
}
{
color
:
color-yiq
(
$value
);
color
:
color-yiq
(
$value
);
...
...
This diff is collapsed.
Click to expand it.
site/docs/4.3/getting-started/theming.md
+
1
-
1
View file @
f732bf02
...
@@ -292,7 +292,7 @@ We use a subset of all colors to create a smaller color palette for generating c
...
@@ -292,7 +292,7 @@ We use a subset of all colors to create a smaller color palette for generating c
<div
class=
"row"
>
<div
class=
"row"
>
{% for color in site.data.theme-colors %}
{% for color in site.data.theme-colors %}
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
<div
class=
"p-3 mb-3
swatch
-{{ color.name }}"
>
{{ color.name | capitalize }}
</div>
<div
class=
"p-3 mb-3
bg
-{{ color.name }}
{% if color.name == "
light
"
or
color.name =
=
"
warning
"
%}
text-dark
{%
else
%}
text-white
{%
endif
%}
"
>
{{ color.name | capitalize }}
</div>
</div>
</div>
{% endfor %}
{% endfor %}
</div>
</div>
...
...
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