1
- // scss-lint: disable QualifyingElement
1
+ // stylelint- disable selector-no-qualifying-type
2
2
3
3
//
4
4
// Base styles
22
22
& :focus ,
23
23
& .focus {
24
24
outline : 0 ;
25
- box-shadow : $btn-focus-box-shadow ;
25
+ box-shadow : $input- btn-focus-box-shadow ;
26
26
}
27
27
28
28
// Disabled comes first so active can properly restyle
32
32
@include box-shadow (none );
33
33
}
34
34
35
- & :active ,
36
- & .active {
35
+ & :not ([ disabled ]) :not ( .disabled ) : active ,
36
+ & :not ([ disabled ]) :not ( .disabled ) .active {
37
37
background-image : none ;
38
- @include box-shadow ($btn-focus-box-shadow , $btn-active-box-shadow );
38
+ @include box-shadow ($input- btn-focus-box-shadow , $btn-active-box-shadow );
39
39
}
40
40
}
41
41
@@ -58,7 +58,11 @@ fieldset[disabled] a.btn {
58
58
59
59
@each $color , $value in $theme-colors {
60
60
.btn-outline-#{$color } {
61
- @include button-outline-variant ($value , #fff );
61
+ @if $color == " light" {
62
+ @include button-outline-variant ($value , $gray-900 );
63
+ } @else {
64
+ @include button-outline-variant ($value , $white );
65
+ }
62
66
}
63
67
}
64
68
@@ -71,36 +75,27 @@ fieldset[disabled] a.btn {
71
75
.btn-link {
72
76
font-weight : $font-weight-normal ;
73
77
color : $link-color ;
74
- border-radius : 0 ;
78
+ background-color : transparent ;
75
79
76
- & ,
77
- & :active ,
78
- & .active ,
79
- & :disabled {
80
+ @include hover {
81
+ color : $link-hover-color ;
82
+ text-decoration : $link-hover-decoration ;
80
83
background-color : transparent ;
81
- @include box-shadow ( none ) ;
84
+ border-color : transparent ;
82
85
}
83
- & ,
86
+
84
87
& :focus ,
85
- & :active {
88
+ & .focus {
86
89
border-color : transparent ;
87
90
box-shadow : none ;
88
91
}
89
- @include hover {
90
- border-color : transparent ;
91
- }
92
- @include hover-focus {
93
- color : $link-hover-color ;
94
- text-decoration : $link-hover-decoration ;
95
- background-color : transparent ;
96
- }
97
- & :disabled {
98
- color : $btn-link-disabled-color ;
99
92
100
- @include hover-focus {
101
- text-decoration : none ;
102
- }
93
+ & :disabled ,
94
+ & .disabled {
95
+ color : $btn-link-disabled-color ;
103
96
}
97
+
98
+ // No need for an active state here
104
99
}
105
100
106
101
@@ -109,11 +104,11 @@ fieldset[disabled] a.btn {
109
104
//
110
105
111
106
.btn-lg {
112
- @include button-size ($input-btn-padding-y-lg , $input-btn-padding-x-lg , $font-size-lg , $line-height-lg , $btn-border-radius-lg );
107
+ @include button-size ($input-btn-padding-y-lg , $input-btn-padding-x-lg , $font-size-lg , $input-btn- line-height-lg , $btn-border-radius-lg );
113
108
}
114
109
115
110
.btn-sm {
116
- @include button-size ($input-btn-padding-y-sm , $input-btn-padding-x-sm , $font-size-sm , $line-height-sm , $btn-border-radius-sm );
111
+ @include button-size ($input-btn-padding-y-sm , $input-btn-padding-x-sm , $font-size-sm , $input-btn- line-height-sm , $btn-border-radius-sm );
117
112
}
118
113
119
114
0 commit comments