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
8cb60bf0
Unverified
Commit
8cb60bf0
authored
4 years ago
by
Catalin Zalog
Committed by
GitHub
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Use `box-shadow` mixin for `.btn` (#30512)
Co-authored-by:
Martijn Cuppens
<
martijn.cuppens@gmail.com
>
parent
939beea6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scss/mixins/_buttons.scss
+8
-8
scss/mixins/_buttons.scss
with
8 additions
and
8 deletions
+8
-8
scss/mixins/_buttons.scss
+
8
-
8
View file @
8cb60bf0
...
@@ -30,10 +30,10 @@
...
@@ -30,10 +30,10 @@
color
:
$hover-color
;
color
:
$hover-color
;
@include
gradient-bg
(
$hover-background
);
@include
gradient-bg
(
$hover-background
);
border-color
:
$hover-border
;
border-color
:
$hover-border
;
// Avoid using mixin so we can pass custom focus shadow properly
@if
$enable-shadows
{
@if
$enable-shadows
{
box-shadow
:
$btn-box-shadow
,
0
0
0
$btn-focus-width
rgba
(
mix
(
$color
,
$border
,
15%
)
,
.5
);
@include
box-shadow
(
$btn-box-shadow
,
0
0
0
$btn-focus-width
rgba
(
mix
(
$color
,
$border
,
15%
)
,
.5
)
)
;
}
@else
{
}
@else
{
// Avoid using mixin so we can pass custom focus shadow properly
box-shadow
:
0
0
0
$btn-focus-width
rgba
(
mix
(
$color
,
$border
,
15%
)
,
.5
);
box-shadow
:
0
0
0
$btn-focus-width
rgba
(
mix
(
$color
,
$border
,
15%
)
,
.5
);
}
}
}
}
...
@@ -48,10 +48,10 @@
...
@@ -48,10 +48,10 @@
border-color
:
$active-border
;
border-color
:
$active-border
;
&
:focus
{
&
:focus
{
// Avoid using mixin so we can pass custom focus shadow properly
@if
$enable-shadows
{
@if
$enable-shadows
and
$btn-active-box-shadow
!=
none
{
@include
box-shadow
(
$btn-active-box-shadow
,
0
0
0
$btn-focus-width
rgba
(
mix
(
$color
,
$border
,
15%
)
,
.5
));
box-shadow
:
$btn-active-box-shadow
,
0
0
0
$btn-focus-width
rgba
(
mix
(
$color
,
$border
,
15%
)
,
.5
);
}
@else
{
}
@else
{
// Avoid using mixin so we can pass custom focus shadow properly
box-shadow
:
0
0
0
$btn-focus-width
rgba
(
mix
(
$color
,
$border
,
15%
)
,
.5
);
box-shadow
:
0
0
0
$btn-focus-width
rgba
(
mix
(
$color
,
$border
,
15%
)
,
.5
);
}
}
}
}
...
@@ -96,10 +96,10 @@
...
@@ -96,10 +96,10 @@
border-color
:
$active-border
;
border-color
:
$active-border
;
&
:focus
{
&
:focus
{
// Avoid using mixin so we can pass custom focus shadow properly
@if
$enable-shadows
{
@if
$enable-shadows
and
$btn-active-box-shadow
!=
none
{
@include
box-shadow
(
$btn-active-box-shadow
,
0
0
0
$btn-focus-width
rgba
(
$color
,
.5
));
box-shadow
:
$btn-active-box-shadow
,
0
0
0
$btn-focus-width
rgba
(
$color
,
.5
);
}
@else
{
}
@else
{
// Avoid using mixin so we can pass custom focus shadow properly
box-shadow
:
0
0
0
$btn-focus-width
rgba
(
$color
,
.5
);
box-shadow
:
0
0
0
$btn-focus-width
rgba
(
$color
,
.5
);
}
}
}
}
...
...
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