summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Slaughter <pslaughter@gitlab.com>2018-06-27 16:37:30 -0500
committerPaul Slaughter <pslaughter@gitlab.com>2018-06-27 19:57:14 -0500
commitc287c731a8fba74e59364f7b7d5f993486df0e75 (patch)
treea38754ae2f333b5ba923211453d276f793de9211
parent453e37d741e48455ff3478ceab2a6f50c0e26aac (diff)
downloadgitlab-ce-c287c731a8fba74e59364f7b7d5f993486df0e75.tar.gz
Add .input-icon-wrapper class for wrapping embedded input icons
-rw-r--r--app/assets/stylesheets/framework.scss1
-rw-r--r--app/assets/stylesheets/framework/datepicker.scss10
-rw-r--r--app/assets/stylesheets/framework/forms.scss12
-rw-r--r--app/views/shared/_personal_access_tokens_form.html.haml5
4 files changed, 14 insertions, 14 deletions
diff --git a/app/assets/stylesheets/framework.scss b/app/assets/stylesheets/framework.scss
index da254184546..c46b0b5db09 100644
--- a/app/assets/stylesheets/framework.scss
+++ b/app/assets/stylesheets/framework.scss
@@ -17,7 +17,6 @@
@import 'framework/callout';
@import 'framework/common';
@import 'framework/dropdowns';
-@import 'framework/datepicker';
@import 'framework/files';
@import 'framework/filters';
@import 'framework/flash';
diff --git a/app/assets/stylesheets/framework/datepicker.scss b/app/assets/stylesheets/framework/datepicker.scss
deleted file mode 100644
index f17ca6d96bc..00000000000
--- a/app/assets/stylesheets/framework/datepicker.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-.datepicker-container {
- position: relative;
-
- .datepicker-icon {
- position: absolute;
- right: 0.9em;
- top: 0.4em;
- color: $theme-gray-600;
- }
-}
diff --git a/app/assets/stylesheets/framework/forms.scss b/app/assets/stylesheets/framework/forms.scss
index 2b2e6d69e33..81207c0a4c7 100644
--- a/app/assets/stylesheets/framework/forms.scss
+++ b/app/assets/stylesheets/framework/forms.scss
@@ -243,3 +243,15 @@ label {
}
}
}
+
+.input-icon-wrapper {
+ position: relative;
+
+ .input-icon {
+ position: absolute;
+ right: 0.8em;
+ top: 50%;
+ transform: translateY(-50%);
+ color: $theme-gray-600;
+ }
+}
diff --git a/app/views/shared/_personal_access_tokens_form.html.haml b/app/views/shared/_personal_access_tokens_form.html.haml
index b32379518b0..a6d291e6171 100644
--- a/app/views/shared/_personal_access_tokens_form.html.haml
+++ b/app/views/shared/_personal_access_tokens_form.html.haml
@@ -17,10 +17,9 @@
.row
.form-group.col-md-6
= f.label :expires_at, class: 'label-light'
- .datepicker-container
+ .input-icon-wrapper
= f.text_field :expires_at, class: "datepicker form-control", placeholder: 'YYYY-MM-DD'
- .datepicker-icon
- = icon('calendar')
+ = icon('calendar', { class: 'input-icon' })
.form-group
= f.label :scopes, class: 'label-light'