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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Slaughter <pslaughter@gitlab.com>2019-01-02 22:27:15 +0300
committerPaul Slaughter <pslaughter@gitlab.com>2019-01-05 08:16:09 +0300
commit27c84cb3dfc67702e0d5bfe5ff8002748a0cb48f (patch)
tree8b59dd1546c28b8c42b4c16d07934d0e1e926177 /app/assets/stylesheets/framework/selects.scss
parentc50b0e58feb208fd26129548ad086c3ef50df604 (diff)
Add shared CSS for MR approvals
- Adds some common classes - Updates common css layout (there's more to be done here) - Adds classes for using <label> to wrap inputs - Adds select2 bootstrap validation support - Fixes select2 in modal z-index - Adds thead-white class
Diffstat (limited to 'app/assets/stylesheets/framework/selects.scss')
-rw-r--r--app/assets/stylesheets/framework/selects.scss18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/assets/stylesheets/framework/selects.scss b/app/assets/stylesheets/framework/selects.scss
index a68f1e4e570..bcd601e198a 100644
--- a/app/assets/stylesheets/framework/selects.scss
+++ b/app/assets/stylesheets/framework/selects.scss
@@ -57,6 +57,16 @@
color: $gl-text-color;
}
}
+
+ &.is-invalid {
+ ~ .invalid-feedback {
+ display: block;
+ }
+
+ .select2-choices {
+ border-color: $red-500;
+ }
+ }
}
.select2-drop,
@@ -67,10 +77,18 @@
min-width: 175px;
color: $gl-text-color;
z-index: 999;
+
+ .modal-open & {
+ z-index: $zindex-modal + 200;
+ }
}
.select2-drop-mask {
z-index: 998;
+
+ .modal-open & {
+ z-index: $zindex-modal + 100;
+ }
}
.select2-drop.select2-drop-above.select2-drop-active {