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
9f7fc4ac
Unverified
Commit
9f7fc4ac
authored
5 years ago
by
Martijn Cuppens
Committed by
GitHub
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Deprecate `bg-gradient-variant` mixin (#30594)
Co-authored-by:
XhmikosR
<
xhmikosr@gmail.com
>
parent
f5ec0dbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scss/mixins/_background-variant.scss
+2
-1
scss/mixins/_background-variant.scss
scss/utilities/_background.scss
+1
-1
scss/utilities/_background.scss
with
3 additions
and
2 deletions
+3
-2
scss/mixins/_background-variant.scss
+
2
-
1
View file @
9f7fc4ac
...
@@ -15,8 +15,9 @@
...
@@ -15,8 +15,9 @@
@include
deprecate
(
"The `bg-variant` mixin"
,
"v4.4.0"
,
"v5"
,
$ignore-warning
);
@include
deprecate
(
"The `bg-variant` mixin"
,
"v4.4.0"
,
"v5"
,
$ignore-warning
);
}
}
@mixin
bg-gradient-variant
(
$parent
,
$color
)
{
@mixin
bg-gradient-variant
(
$parent
,
$color
,
$ignore-warning
:
false
)
{
#{
$parent
}
{
#{
$parent
}
{
background
:
$color
linear-gradient
(
180deg
,
mix
(
$body-bg
,
$color
,
15%
)
,
$color
)
repeat-x
!
important
;
background
:
$color
linear-gradient
(
180deg
,
mix
(
$body-bg
,
$color
,
15%
)
,
$color
)
repeat-x
!
important
;
}
}
@include
deprecate
(
"The `bg-gradient-variant` mixin"
,
"v4.4.2"
,
"v5"
,
$ignore-warning
);
}
}
This diff is collapsed.
Click to expand it.
scss/utilities/_background.scss
+
1
-
1
View file @
9f7fc4ac
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
@if
$enable-gradients
{
@if
$enable-gradients
{
@each
$color
,
$value
in
$theme-colors
{
@each
$color
,
$value
in
$theme-colors
{
@include
bg-gradient-variant
(
".bg-gradient-
#{
$color
}
"
,
$value
);
@include
bg-gradient-variant
(
".bg-gradient-
#{
$color
}
"
,
$value
,
true
);
}
}
}
}
...
...
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