|
33 | 33 |
|
34 | 34 | .form-control,
|
35 | 35 | .custom-select {
|
36 |
| - &:not(:first-child):not(:last-of-type) { @include border-radius(0); } |
37 |
| - &:first-child { @include border-right-radius(0); } |
38 |
| - &:last-of-type:not(:first-child) { @include border-left-radius(0); } |
| 36 | + &:not(:last-child) { @include border-right-radius(0); } |
| 37 | + &:not(:first-child) { @include border-left-radius(0); } |
39 | 38 | }
|
40 | 39 |
|
41 | 40 | // Custom file inputs have more complex markup, thus requiring different
|
|
44 | 43 | display: flex;
|
45 | 44 | align-items: center;
|
46 | 45 |
|
47 |
| - &:not(:first-child):not(:last-of-type) .custom-file-control, |
48 |
| - &:not(:first-child):not(:last-of-type) .custom-file-control::before { @include border-radius(0); } |
49 |
| - &:first-child .custom-file-control, |
50 |
| - &:first-child .custom-file-control::before { @include border-right-radius(0); } |
51 |
| - &:last-of-type:not(:first-child) .custom-file-control, |
52 |
| - &:last-of-type:not(:first-child) .custom-file-control::before { @include border-left-radius(0); } |
| 46 | + &:not(:last-child) .custom-file-control, |
| 47 | + &:not(:last-child) .custom-file-control::before { @include border-right-radius(0); } |
| 48 | + &:not(:first-child) .custom-file-control, |
| 49 | + &:not(:first-child) .custom-file-control::before { @include border-left-radius(0); } |
53 | 50 | }
|
54 | 51 | }
|
55 | 52 |
|
|
139 | 136 | // border-radius values when extending. They're more specific than we'd like
|
140 | 137 | // with the `.input-group >` part, but without it, we cannot override the sizing.
|
141 | 138 |
|
| 139 | + |
142 | 140 | .input-group > .input-group-prepend > .btn,
|
143 |
| -.input-group > .input-group-prepend > .input-group-text { |
144 |
| - // All prepended buttons have no right border-radius |
| 141 | +.input-group > .input-group-prepend > .input-group-text, |
| 142 | +.input-group > .input-group-append:not(:last-child) > .btn, |
| 143 | +.input-group > .input-group-append:not(:last-child) > .input-group-text, |
| 144 | +.input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle), |
| 145 | +.input-group > .input-group-append:last-child > .input-group-text:not(:last-child) { |
145 | 146 | @include border-right-radius(0);
|
146 |
| - |
147 |
| - + .btn, |
148 |
| - + .input-group-text { |
149 |
| - @include border-left-radius(0); |
150 |
| - } |
151 | 147 | }
|
152 | 148 |
|
153 |
| -// We separate out the button and input resets here because `.input-group-text` |
154 |
| -// can be any HTML element, but buttons are always inputs, buttons, or anchors. |
155 |
| -.input-group > .input-group-append { |
156 |
| - // Everything but the last one have no rounded corners |
157 |
| - .btn:not(:last-of-type), |
158 |
| - .input-group-text:not(:last-child) { |
159 |
| - @include border-radius(0); |
160 |
| - } |
161 |
| - |
162 |
| - .btn:last-of-type, |
163 |
| - .input-group-text:last-child { |
164 |
| - @include border-left-radius(0); |
165 |
| - } |
| 149 | +.input-group > .input-group-append > .btn, |
| 150 | +.input-group > .input-group-append > .input-group-text, |
| 151 | +.input-group > .input-group-prepend:not(:first-child) > .btn, |
| 152 | +.input-group > .input-group-prepend:not(:first-child) > .input-group-text, |
| 153 | +.input-group > .input-group-prepend:first-child > .btn:not(:first-child), |
| 154 | +.input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) { |
| 155 | + @include border-left-radius(0); |
166 | 156 | }
|
0 commit comments