superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grace...@apache.org
Subject [incubator-superset] branch master updated: fix input height to match with react-select (#3852)
Date Thu, 16 Nov 2017 19:50:34 GMT
This is an automated email from the ASF dual-hosted git repository.

graceguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new fa35d7d  fix input height to match with react-select (#3852)
fa35d7d is described below

commit fa35d7d2f47d2f5b664d0433ea1be677924767e6
Author: Grace Guo <grace.guo@airbnb.com>
AuthorDate: Thu Nov 16 11:50:32 2017 -0800

    fix input height to match with react-select (#3852)
---
 superset/assets/stylesheets/react-select/select.less | 16 ++++++++++++++++
 superset/assets/stylesheets/superset.less            | 16 ----------------
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/superset/assets/stylesheets/react-select/select.less b/superset/assets/stylesheets/react-select/select.less
index c76c186..474f989 100644
--- a/superset/assets/stylesheets/react-select/select.less
+++ b/superset/assets/stylesheets/react-select/select.less
@@ -1,5 +1,6 @@
 @import "~react-select/less/select.less";
 @select-primary-color:              black;
+@select-input-height:               30px;
 
 // imports
 @import "~react-select/less/control.less";
@@ -8,6 +9,21 @@
 @import "~react-select/less/multi.less";
 @import "~react-select/less/spinner.less";
 
+.Select--multi {
+  .Select-multi-value-wrapper {
+    display: flex;
+    flex-wrap: wrap;
+  }
+
+  .Select-value {
+    margin: 2px;
+  }
+
+  .Select-input > input {
+    width: 100px;
+  }
+}
+
 .VirtualSelectGrid {
   z-index: 1;
 }
diff --git a/superset/assets/stylesheets/superset.less b/superset/assets/stylesheets/superset.less
index 89ba020..49c6544 100644
--- a/superset/assets/stylesheets/superset.less
+++ b/superset/assets/stylesheets/superset.less
@@ -356,22 +356,6 @@ iframe {
     color: transparent;
 }
 
-// overwrite react-select css
-.Select--multi {
-  .Select-multi-value-wrapper {
-    display: flex;
-    flex-wrap: wrap;
-  }
-
-  .Select-value {
-    height: 23px;
-  }
-
-  .Select-input > input {
-    width: 100px;
-  }
-}
-
 .dimmed {
   opacity: 0.5;
 }

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message