X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=scss%2Fbootstrap%2F_input-group.scss;fp=scss%2Fbootstrap%2F_input-group.scss;h=d72ebeaba7af6c98bafa2c7e7b899e424749b0b4;hp=cad8ea367a82059be08cbf0b8378d2c82cc9c7f6;hb=b1da0768aed0ffc12b300174eff724a412fad487;hpb=2b33573f81a301e8ee55ba2bbb872b7edd18f4f6 diff --git a/scss/bootstrap/_input-group.scss b/scss/bootstrap/_input-group.scss index cad8ea367a..d72ebeaba7 100644 --- a/scss/bootstrap/_input-group.scss +++ b/scss/bootstrap/_input-group.scss @@ -42,7 +42,6 @@ > .form-control, > .custom-select { - &:not(:last-child) { @include border-right-radius(0); } &:not(:first-child) { @include border-left-radius(0); } } @@ -53,9 +52,24 @@ align-items: center; &:not(:last-child) .custom-file-label, - &:not(:last-child) .custom-file-label::after { @include border-right-radius(0); } &:not(:first-child) .custom-file-label { @include border-left-radius(0); } } + + &:not(.has-validation) { + > .form-control:not(:last-child), + > .custom-select:not(:last-child), + > .custom-file:not(:last-child) .custom-file-label::after { + @include border-right-radius(0); + } + } + + &.has-validation { + > .form-control:nth-last-child(n + 3), + > .custom-select:nth-last-child(n + 3), + > .custom-file:nth-last-child(n + 3) .custom-file-label::after { + @include border-right-radius(0); + } + } } @@ -175,8 +189,10 @@ .input-group > .input-group-prepend > .btn, .input-group > .input-group-prepend > .input-group-text, -.input-group > .input-group-append:not(:last-child) > .btn, -.input-group > .input-group-append:not(:last-child) > .input-group-text, +.input-group:not(.has-validation) > .input-group-append:not(:last-child) > .btn, +.input-group:not(.has-validation) > .input-group-append:not(:last-child) > .input-group-text, +.input-group.has-validation > .input-group-append:nth-last-child(n + 3) > .btn, +.input-group.has-validation > .input-group-append:nth-last-child(n + 3) > .input-group-text, .input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group > .input-group-append:last-child > .input-group-text:not(:last-child) { @include border-right-radius(0);