// stylelint-disable selector-no-qualifying-type // // Base styles // .input-group { position: relative; display: flex; align-items: stretch; width: 100%; .form-control { // Ensure that the input is always above the *appended* addon button for // proper border colors. position: relative; z-index: 1; flex: 1 1 auto; // Add width 1% and flex-basis auto to ensure that button will not wrap out // the column. Applies to IE Edge+ and Firefox. Chrome does not require this. width: 1%; margin-bottom: 0; // Bring the "active" form control to the front @include hover-focus-active { z-index: 2; } } } .input-group-addon, .input-group-btn, .input-group .form-control, .input-group .custom-select, .input-group .custom-file { display: flex; align-items: center; &:not(:first-child):not(:last-child) { @include border-radius(0); } } .input-group .custom-file { display: flex; align-items: center; } .input-group .custom-select, .input-group .custom-file { width: 100%; } .input-group-addon, .input-group-btn { white-space: nowrap; } // Sizing options // // Remix the default form control sizing classes into new ones for easier // manipulation. .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { @extend .form-control-lg; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { @extend .form-control-sm; } // // Text input groups // .input-group-addon { padding: $input-btn-padding-y $input-btn-padding-x; margin-bottom: 0; // Allow use of