Browse Source

HUE-5801 [assist] Move search styles to less

Johan Ahlen 8 years ago
parent
commit
977ac6a

File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 32 - 0
desktop/core/src/desktop/static/desktop/less/hue-assist.less

@@ -588,4 +588,36 @@
 .top-star {
   vertical-align: text-top;
   font-size: 70%;
+}
+
+.nav-autocomplete-item .ui-state-focus {
+  border: 1px solid @hue-primary-color-light;
+  background-color: @hue-primary-color-light !important;
+}
+
+.nav-autocomplete-item-link {
+  height: 44px;
+  overflow:hidden;
+
+  i {
+    font-size: 18px;
+    color: @hue-primary-color-dark;
+  }
+
+  > div {
+    vertical-align: top;
+    display:inline-block;
+  }
+}
+
+.nav-autocomplete-item-link em, .result-entry em {
+  font-style: normal;
+  font-weight: bold;
+}
+
+.nav-autocomplete-item-link
+
+.nav-autocomplete-divider {
+  height: 2px;
+  border-top: 1px solid #dddddd;
 }

+ 0 - 32
desktop/core/src/desktop/templates/assist_search.mako

@@ -28,38 +28,6 @@ from notebook.conf import ENABLE_QUERY_BUILDER
 %>
 
 <%def name="assistSearch()">
-  <style>
-    .nav-autocomplete-item .ui-state-focus {
-      border: 1px solid #DBE8F1;
-      background-color: #DBE8F1 !important;
-    }
-
-    .nav-autocomplete-item-link {
-      height: 44px;
-      overflow:hidden;
-    }
-
-    .nav-autocomplete-item-link i {
-      font-size: 18px;
-      color: #338bb8;
-    }
-
-    .nav-autocomplete-item-link em, .result-entry em {
-      font-style: normal;
-      font-weight: bold;
-    }
-
-    .nav-autocomplete-item-link > div {
-      vertical-align: top;
-      display:inline-block;
-    }
-
-    .nav-autocomplete-divider {
-      height: 2px;
-      border-top: 1px solid #dddddd;
-    }
-  </style>
-
   <script type="text/html" id="nav-search-autocomp-item">
     <a>
       <div class="nav-autocomplete-item-link">

Some files were not shown because too many files changed in this diff