瀏覽代碼

HUE-6077 [frontend] Move the jHueAutocomplete CSS to a LESS component

Enrico Berti 8 年之前
父節點
當前提交
95c07d0a7d

文件差異過大導致無法顯示
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


文件差異過大導致無法顯示
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 0 - 29
desktop/core/src/desktop/static/desktop/css/hue3.css

@@ -633,35 +633,6 @@ html.modal-open {
  font-size: 60px;
 }
 
-.jHueAutocomplete {
-   -webkit-border-radius: 0;
-      -moz-border-radius: 0;
-      border-radius: 0;
-
-  -webkit-box-shadow: none;
-     -moz-box-shadow: none;
-          box-shadow: none;
-  border-top: none;
-}
-
-.jHueAutocomplete .popover-content {
-  padding: 0;
-  max-height: 200px;
-  overflow-y: auto;
-}
-
-.jHueAutocomplete .popover-content ul li {
-  cursor: pointer;
-  margin: 3px;
-  padding: 2px;
-}
-
-
-.jHueAutocomplete .popover-content ul li:hover, .jHueAutocomplete .popover-content ul li.active {
-  color: #FFFFFF;
-  background: #0B7FAD;
-}
-
 .fa-1halfx {
   font-size: 1.5em;
 }

+ 37 - 0
desktop/core/src/desktop/static/desktop/less/components/hue-inputautocomplete.less

@@ -0,0 +1,37 @@
+/*
+ Licensed to Cloudera, Inc. under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  Cloudera, Inc. licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+.jHueAutocomplete {
+  border-radius: 0;
+  box-shadow: none;
+  border-top: none;
+  .popover-content {
+    padding: 0;
+    max-height: 200px;
+    overflow-y: auto;
+    ul li {
+      cursor: pointer;
+      margin: 3px;
+      padding: 2px;
+    }
+    ul li:hover, ul li.active {
+      color: @cui-white;
+      background: @hue-primary-color-dark;
+    }
+  }
+}

+ 1 - 0
desktop/core/src/desktop/static/desktop/less/hue-cross-version.less

@@ -33,6 +33,7 @@
 @import "components/hue-query-builder.less";
 @import "components/hue-qq-upload.less";
 @import "components/hue-breadcrumbs.less";
+@import "components/hue-inputautocomplete.less";
 @import "hue-helpers.less";
 
 input[type='password']::-ms-reveal {

部分文件因文件數量過多而無法顯示