|
|
|
|
|
|
|
|
|
.input-group { |
|
position: relative; |
|
display: flex; |
|
flex-wrap: wrap; |
|
align-items: stretch; |
|
width: 100%; |
|
|
|
> .form-control, |
|
> .form-select { |
|
position: relative; |
|
flex: 1 1 auto; |
|
width: 1%; |
|
min-width: 0; |
|
} |
|
|
|
|
|
> .form-control:focus, |
|
> .form-select:focus { |
|
z-index: 3; |
|
} |
|
|
|
|
|
|
|
|
|
.btn { |
|
position: relative; |
|
z-index: 2; |
|
|
|
&:focus { |
|
z-index: 3; |
|
} |
|
} |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.input-group-text { |
|
display: flex; |
|
align-items: center; |
|
padding: $input-group-addon-padding-y $input-group-addon-padding-x; |
|
@include font-size($input-font-size); |
|
font-weight: $input-group-addon-font-weight; |
|
line-height: $input-line-height; |
|
color: $input-group-addon-color; |
|
text-align: center; |
|
white-space: nowrap; |
|
background-color: $input-group-addon-bg; |
|
border: $input-border-width solid $input-group-addon-border-color; |
|
@include border-radius($input-border-radius); |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.input-group-lg > .form-control, |
|
.input-group-lg > .form-select, |
|
.input-group-lg > .input-group-text, |
|
.input-group-lg > .btn { |
|
padding: $input-padding-y-lg $input-padding-x-lg; |
|
@include font-size($input-font-size-lg); |
|
@include border-radius($input-border-radius-lg); |
|
} |
|
|
|
.input-group-sm > .form-control, |
|
.input-group-sm > .form-select, |
|
.input-group-sm > .input-group-text, |
|
.input-group-sm > .btn { |
|
padding: $input-padding-y-sm $input-padding-x-sm; |
|
@include font-size($input-font-size-sm); |
|
@include border-radius($input-border-radius-sm); |
|
} |
|
|
|
.input-group-lg > .form-select, |
|
.input-group-sm > .form-select { |
|
padding-right: $form-select-padding-x + $form-select-indicator-padding; |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.input-group { |
|
&:not(.has-validation) { |
|
> :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu), |
|
> .dropdown-toggle:nth-last-child(n + 3) { |
|
@include border-end-radius(0); |
|
} |
|
} |
|
|
|
&.has-validation { |
|
> :nth-last-child(n + 3):not(.dropdown-toggle):not(.dropdown-menu), |
|
> .dropdown-toggle:nth-last-child(n + 4) { |
|
@include border-end-radius(0); |
|
} |
|
} |
|
|
|
$validation-messages: ""; |
|
@each $state in map-keys($form-validation-states) { |
|
$validation-messages: $validation-messages + ":not(." + unquote($state) + "-tooltip)" + ":not(." + unquote($state) + "-feedback)"; |
|
} |
|
|
|
> :not(:first-child):not(.dropdown-menu)#{$validation-messages} { |
|
margin-left: -$input-border-width; |
|
@include border-start-radius(0); |
|
} |
|
} |
|
|