diff options
author | Enrique Alcantara <ealcantara@gitlab.com> | 2019-05-03 14:39:13 -0400 |
---|---|---|
committer | Enrique Alcantara <ealcantara@gitlab.com> | 2019-05-30 14:59:54 -0400 |
commit | 778a393a720c8e14bea33fe48ba4f32dcd5e3eb2 (patch) | |
tree | 81efc95ce7b87558af179c5b6ac83d515ac25301 | |
parent | 674491732bf1d3cc0f2c11f9b18e3545d22647e7 (diff) | |
download | gitlab-ce-778a393a720c8e14bea33fe48ba4f32dcd5e3eb2.tar.gz |
Use single position: relative declaration
-rw-r--r-- | app/assets/stylesheets/framework/forms.scss | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/app/assets/stylesheets/framework/forms.scss b/app/assets/stylesheets/framework/forms.scss index ee1511edbf0..c05394962d8 100644 --- a/app/assets/stylesheets/framework/forms.scss +++ b/app/assets/stylesheets/framework/forms.scss @@ -126,19 +126,6 @@ label { } } -.select-wrapper { - position: relative; - - .fa-chevron-down { - position: absolute; - font-size: 10px; - right: 10px; - top: 12px; - color: $gray-darkest; - pointer-events: none; - } -} - .select-control { padding-left: 10px; padding-right: 10px; @@ -241,16 +228,26 @@ label { } } -.input-icon-wrapper { +.input-icon-wrapper, +.select-wrapper { position: relative; +} - .input-icon-right { - position: absolute; - right: 0.8em; - top: 50%; - transform: translateY(-50%); - color: $gray-600; - } +.select-wrapper > .fa-chevron-down { + position: absolute; + font-size: 10px; + right: 10px; + top: 12px; + color: $gray-darkest; + pointer-events: none; +} + +.input-icon-wrapper > .input-icon-right { + position: absolute; + right: 0.8em; + top: 50%; + transform: translateY(-50%); + color: $gray-600; } .input-md { |