Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorysds <fellows3@gmail.com>2018-05-07 11:30:43 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-05-07 11:30:43 +0300
commit788f3e6802df884acc0276cf8ba24b9a58d5b3c5 (patch)
tree06b3a4fa6cc8c6eade3f23817f47d6aefc6469c0 /scss
parente5e6d0c86d1456ce43fb2ae84983f7cbe2e707f6 (diff)
Fix z-index target (#26361)
Diffstat (limited to 'scss')
-rw-r--r--scss/_input-group.scss12
1 files changed, 7 insertions, 5 deletions
diff --git a/scss/_input-group.scss b/scss/_input-group.scss
index a559f15dff..a8b0e59ed4 100644
--- a/scss/_input-group.scss
+++ b/scss/_input-group.scss
@@ -21,11 +21,6 @@
width: 1%;
margin-bottom: 0;
- // Bring the "active" form control to the top of surrounding elements
- &:focus {
- z-index: 3;
- }
-
+ .form-control,
+ .custom-select,
+ .custom-file {
@@ -33,6 +28,13 @@
}
}
+ // Bring the "active" form control to the top of surrounding elements
+ > .form-control:focus,
+ > .custom-select:focus,
+ > .custom-file .custom-file-input:focus ~ .custom-file-label {
+ z-index: 3;
+ }
+
> .form-control,
> .custom-select {
&:not(:last-child) { @include border-right-radius(0); }