diff options
| author | ysds <[email protected]> | 2018-01-13 16:40:55 +0900 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-01-13 09:40:55 +0200 |
| commit | f4bf0542d78018a31c0ae07d5dee1aacfd20182e (patch) | |
| tree | 89511c3c94b1d19eb43c78d98c214795b6458aed | |
| parent | 6d8d8639f3a290cba93ef406c59ea31ad46e1c6d (diff) | |
| download | bootstrap-f4bf0542d78018a31c0ae07d5dee1aacfd20182e.tar.xz bootstrap-f4bf0542d78018a31c0ae07d5dee1aacfd20182e.zip | |
Add direct children selectors to avoid cascading styles into a menu form (#25279)
| -rw-r--r-- | scss/_input-group.scss | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scss/_input-group.scss b/scss/_input-group.scss index fcf7c3c43..2f7b05d5d 100644 --- a/scss/_input-group.scss +++ b/scss/_input-group.scss @@ -11,9 +11,9 @@ align-items: stretch; width: 100%; - .form-control, - .custom-select, - .custom-file { + > .form-control, + > .custom-select, + > .custom-file { position: relative; // For focus state's z-index flex: 1 1 auto; // Add width 1% and flex-basis auto to ensure that button will not wrap out @@ -33,15 +33,15 @@ } } - .form-control, - .custom-select { + > .form-control, + > .custom-select { &:not(:last-child) { @include border-right-radius(0); } &:not(:first-child) { @include border-left-radius(0); } } // Custom file inputs have more complex markup, thus requiring different // border-radius overrides. - .custom-file { + > .custom-file { display: flex; align-items: center; |
