mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
fix(input-group): custom-file with validation (#33239)
This commit is contained in:
parent
8133c3e5b2
commit
e482fbb159
@ -52,12 +52,14 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
&:not(:last-child) .custom-file-label,
|
&: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(:first-child) .custom-file-label { @include border-left-radius(0); }
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(.has-validation) {
|
&:not(.has-validation) {
|
||||||
> .form-control:not(:last-child),
|
> .form-control:not(:last-child),
|
||||||
> .custom-select:not(:last-child),
|
> .custom-select:not(:last-child),
|
||||||
|
> .custom-file:not(:last-child) .custom-file-label,
|
||||||
> .custom-file:not(:last-child) .custom-file-label::after {
|
> .custom-file:not(:last-child) .custom-file-label::after {
|
||||||
@include border-right-radius(0);
|
@include border-right-radius(0);
|
||||||
}
|
}
|
||||||
@ -66,6 +68,7 @@
|
|||||||
&.has-validation {
|
&.has-validation {
|
||||||
> .form-control:nth-last-child(n + 3),
|
> .form-control:nth-last-child(n + 3),
|
||||||
> .custom-select:nth-last-child(n + 3),
|
> .custom-select:nth-last-child(n + 3),
|
||||||
|
> .custom-file:nth-last-child(n + 3) .custom-file-label,
|
||||||
> .custom-file:nth-last-child(n + 3) .custom-file-label::after {
|
> .custom-file:nth-last-child(n + 3) .custom-file-label::after {
|
||||||
@include border-right-radius(0);
|
@include border-right-radius(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user