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
5dcf7cd3
Commit
5dcf7cd3
authored
6 years ago
by
wojtask9
Committed by
XhmikosR
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
box-shadow mixin fix (#28004)
parent
dc436427
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scss/mixins/_box-shadow.scss
+9
-3
scss/mixins/_box-shadow.scss
with
9 additions
and
3 deletions
+9
-3
scss/mixins/_box-shadow.scss
+
9
-
3
View file @
5dcf7cd3
...
@@ -2,9 +2,15 @@
...
@@ -2,9 +2,15 @@
@if
$enable-shadows
{
@if
$enable-shadows
{
$result
:
();
$result
:
();
@for
$i
from
1
through
length
(
$shadow
)
{
@if
(
length
(
$shadow
)
==
1
)
{
@if
nth
(
$shadow
,
$i
)
!=
"none"
{
// We can pass `@include box-shadow(none);`
$result
:
append
(
$result
,
nth
(
$shadow
,
$i
)
,
"comma"
);
$result
:
$shadow
;
}
@else
{
// Filter to avoid invalid properties for example `box-shadow: none, 1px 1px black;`
@for
$i
from
1
through
length
(
$shadow
)
{
@if
nth
(
$shadow
,
$i
)
!=
"none"
{
$result
:
append
(
$result
,
nth
(
$shadow
,
$i
)
,
"comma"
);
}
}
}
}
}
@if
(
length
(
$result
)
>
0
)
{
@if
(
length
(
$result
)
>
0
)
{
...
...
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