|
10 | 10 | > .btn { |
11 | 11 | position: relative; |
12 | 12 | flex: 0 1 auto; |
13 | | - margin-bottom: 0; |
14 | 13 |
|
15 | 14 | // Bring the hover, focused, and "active" buttons to the front to overlay |
16 | 15 | // the borders properly |
|
66 | 65 | .btn-group > .btn-group { |
67 | 66 | float: left; |
68 | 67 | } |
| 68 | + |
69 | 69 | .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { |
70 | 70 | border-radius: 0; |
71 | 71 | } |
| 72 | + |
72 | 73 | .btn-group > .btn-group:first-child:not(:last-child) { |
73 | 74 | > .btn:last-child, |
74 | 75 | > .dropdown-toggle { |
75 | 76 | @include border-right-radius(0); |
76 | 77 | } |
77 | 78 | } |
| 79 | + |
78 | 80 | .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { |
79 | 81 | @include border-left-radius(0); |
80 | 82 | } |
|
129 | 131 | // |
130 | 132 |
|
131 | 133 | .btn-group-vertical { |
132 | | - display: inline-flex; |
133 | 134 | flex-direction: column; |
134 | 135 | align-items: flex-start; |
135 | 136 | justify-content: center; |
|
146 | 147 | margin-top: -$input-btn-border-width; |
147 | 148 | margin-left: 0; |
148 | 149 | } |
149 | | -} |
150 | 150 |
|
151 | | -.btn-group-vertical > .btn { |
152 | | - &:not(:first-child):not(:last-child) { |
153 | | - border-radius: 0; |
| 151 | + > .btn { |
| 152 | + &:not(:first-child):not(:last-child) { |
| 153 | + border-radius: 0; |
| 154 | + } |
154 | 155 | } |
| 156 | + |
155 | 157 | &:first-child:not(:last-child) { |
156 | 158 | @include border-bottom-radius(0); |
157 | 159 | } |
| 160 | + |
158 | 161 | &:last-child:not(:first-child) { |
159 | 162 | @include border-top-radius(0); |
160 | 163 | } |
161 | | -} |
162 | | -.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { |
163 | | - border-radius: 0; |
164 | | -} |
165 | | -.btn-group-vertical > .btn-group:first-child:not(:last-child) { |
166 | | - > .btn:last-child, |
167 | | - > .dropdown-toggle { |
168 | | - @include border-bottom-radius(0); |
| 164 | + |
| 165 | + > .btn-group:not(:first-child):not(:last-child) > .btn { |
| 166 | + border-radius: 0; |
| 167 | + } |
| 168 | + |
| 169 | + > .btn-group:first-child:not(:last-child) { |
| 170 | + > .btn:last-child, |
| 171 | + > .dropdown-toggle { |
| 172 | + @include border-bottom-radius(0); |
| 173 | + } |
| 174 | + } |
| 175 | + |
| 176 | + > .btn-group:last-child:not(:first-child) > .btn:first-child { |
| 177 | + @include border-top-radius(0); |
169 | 178 | } |
170 | | -} |
171 | | -.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { |
172 | | - @include border-top-radius(0); |
173 | 179 | } |
174 | 180 |
|
175 | 181 |
|
|
0 commit comments