// // Base styles // .input-group { position: relative; display: flex; width: 100%; .form-control { // Ensure that the input is always above the *appended* addon button for // proper border colors. position: relative; z-index: 2; 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: 3; } } } .input-group-addon, .input-group-btn, .input-group .form-control { // Vertically centers the content of the addons within the input group display: flex; align-items: center; &:not(:first-child):not(:last-child) { @include border-radius(0); } } .input-group-addon, .input-group-btn { white-space: nowrap; vertical-align: middle; // Match the inputs } // 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