File tree 1 file changed +8
-17
lines changed
1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change 22
22
z-index : 1 ;
23
23
}
24
24
}
25
-
26
- // Prevent double borders when buttons are next to each other
27
- .btn + .btn ,
28
- .btn + .btn-group ,
29
- .btn-group + .btn ,
30
- .btn-group + .btn-group {
31
- margin-left : - $btn-border-width ;
32
- }
33
25
}
34
26
35
27
// Optional: Group multiple button groups together for a toolbar
44
36
}
45
37
46
38
.btn-group {
47
- > .btn :first-child {
48
- margin-left : 0 ;
39
+ // Prevent double borders when buttons are next to each other
40
+ > .btn :not (:first-child ),
41
+ > .btn-group :not (:first-child ) {
42
+ margin-left : - $btn-border-width ;
49
43
}
50
44
51
45
// Reset rounded corners
119
113
align-items : flex-start ;
120
114
justify-content : center ;
121
115
122
- .btn ,
123
- .btn-group {
116
+ > .btn ,
117
+ > .btn-group {
124
118
width : 100% ;
125
119
}
126
120
127
- > .btn + .btn ,
128
- > .btn + .btn-group ,
129
- > .btn-group + .btn ,
130
- > .btn-group + .btn-group {
121
+ > .btn :not (:first-child ),
122
+ > .btn-group :not (:first-child ) {
131
123
margin-top : - $btn-border-width ;
132
- margin-left : 0 ;
133
124
}
134
125
135
126
// Reset rounded corners
You can’t perform that action at this time.
0 commit comments