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
4d863eff
Commit
4d863eff
authored
4 years ago
by
Martijn Cuppens
Committed by
XhmikosR
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Backport #30512
Use `box-shadow` mixin for `.btn`
parent
5455e300
v4-dev-dropdown-hide-method
v4-dev
v4.6.2
v4.6.1
v4.6.0
v4.5.3
v4.5.2
v4.5.1
v4.5.0
6 merge requests
!36532
My v4 dev
,
!34086
v4: Fix prevented show event disables modals with fade class from being displayed again
,
!33729
V4 dev
,
!33086
V4 dev
,
!31901
Add opacity utilities
,
!31513
Update icons.md
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scss/mixins/_buttons.scss
+6
-6
scss/mixins/_buttons.scss
with
6 additions
and
6 deletions
+6
-6
scss/mixins/_buttons.scss
+
6
-
6
View file @
4d863eff
...
...
@@ -20,10 +20,10 @@
color
:
color-yiq
(
$hover-background
);
@include
gradient-bg
(
$hover-background
);
border-color
:
$hover-border
;
// Avoid using mixin so we can pass custom focus shadow properly
@if
$enable-shadows
{
box-shadow
:
$btn-box-shadow
,
0
0
0
$btn-focus-width
rgba
(
mix
(
color-yiq
(
$background
)
,
$border
,
15%
)
,
.5
);
@include
box-shadow
(
$btn-box-shadow
,
0
0
0
$btn-focus-width
rgba
(
mix
(
color-yiq
(
$background
)
,
$border
,
15%
)
,
.5
)
)
;
}
@else
{
// Avoid using mixin so we can pass custom focus shadow properly
box-shadow
:
0
0
0
$btn-focus-width
rgba
(
mix
(
color-yiq
(
$background
)
,
$border
,
15%
)
,
.5
);
}
}
...
...
@@ -51,10 +51,10 @@
border-color
:
$active-border
;
&
:focus
{
// Avoid using mixin so we can pass custom focus shadow properly
@if
$enable-shadows
and
$btn-active-box-shadow
!=
none
{
box-shadow
:
$btn-active-box-shadow
,
0
0
0
$btn-focus-width
rgba
(
mix
(
color-yiq
(
$background
)
,
$border
,
15%
)
,
.5
);
@include
box-shadow
(
$btn-active-box-shadow
,
0
0
0
$btn-focus-width
rgba
(
mix
(
color-yiq
(
$background
)
,
$border
,
15%
)
,
.5
)
)
;
}
@else
{
// Avoid using mixin so we can pass custom focus shadow properly
box-shadow
:
0
0
0
$btn-focus-width
rgba
(
mix
(
color-yiq
(
$background
)
,
$border
,
15%
)
,
.5
);
}
}
...
...
@@ -90,10 +90,10 @@
border-color
:
$active-border
;
&
:focus
{
// Avoid using mixin so we can pass custom focus shadow properly
@if
$enable-shadows
and
$btn-active-box-shadow
!=
none
{
box-shadow
:
$btn-active-box-shadow
,
0
0
0
$btn-focus-width
rgba
(
$color
,
.5
);
@include
box-shadow
(
$btn-active-box-shadow
,
0
0
0
$btn-focus-width
rgba
(
$color
,
.5
)
)
;
}
@else
{
// Avoid using mixin so we can pass custom focus shadow properly
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
Menu
Explore
Projects
Groups
Snippets