|
30 | 30 | color: $hover-color; |
31 | 31 | @include gradient-bg($hover-background); |
32 | 32 | border-color: $hover-border; |
33 | | - // Avoid using mixin so we can pass custom focus shadow properly |
34 | 33 | @if $enable-shadows { |
35 | | - box-shadow: $btn-box-shadow, 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5); |
| 34 | + @include box-shadow($btn-box-shadow, 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5)); |
36 | 35 | } @else { |
| 36 | + // Avoid using mixin so we can pass custom focus shadow properly |
37 | 37 | box-shadow: 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5); |
38 | 38 | } |
39 | 39 | } |
|
48 | 48 | border-color: $active-border; |
49 | 49 |
|
50 | 50 | &:focus { |
51 | | - // Avoid using mixin so we can pass custom focus shadow properly |
52 | | - @if $enable-shadows and $btn-active-box-shadow != none { |
53 | | - box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5); |
| 51 | + @if $enable-shadows { |
| 52 | + @include box-shadow($btn-active-box-shadow, 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5)); |
54 | 53 | } @else { |
| 54 | + // Avoid using mixin so we can pass custom focus shadow properly |
55 | 55 | box-shadow: 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5); |
56 | 56 | } |
57 | 57 | } |
|
96 | 96 | border-color: $active-border; |
97 | 97 |
|
98 | 98 | &:focus { |
99 | | - // Avoid using mixin so we can pass custom focus shadow properly |
100 | | - @if $enable-shadows and $btn-active-box-shadow != none { |
101 | | - box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($color, .5); |
| 99 | + @if $enable-shadows { |
| 100 | + @include box-shadow($btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($color, .5)); |
102 | 101 | } @else { |
| 102 | + // Avoid using mixin so we can pass custom focus shadow properly |
103 | 103 | box-shadow: 0 0 0 $btn-focus-width rgba($color, .5); |
104 | 104 | } |
105 | 105 | } |
|
0 commit comments