Browse Source

HUE-6077 [frontend] Port scroll to anchors to a LESS component

Enrico Berti 8 năm trước cách đây
mục cha
commit
bf599a1dfb

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


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

@@ -253,47 +253,6 @@ a#advanced-btn:hover {
   margin-top: -12px;
 }
 
-.hueAnchor {
-  color: #FFFFFF;
-  opacity: 0.65;
-  filter: alpha(opacity=65);
-  position: fixed;
-  z-index: 2147483647;
-  -webkit-border-radius: 6px;
-  -moz-border-radius: 6px;
-  border-radius: 6px;
-  background-color: #333333;
-  padding: 10px;
-  padding-left: 14px;
-  padding-right: 14px;
-}
-
-.hueAnchor:hover {
-  text-decoration: none;
-  opacity: 0.85;
-  filter: alpha(opacity=85);
-}
-
-.hueAnchor input {
-  min-height: 19px!important;
-  height: 19px!important;
-  margin: 0;
-}
-
-
-
-#jHueScrollUpAnchor {
-  bottom: 20px;
-  right: 20px;
-  display: none;
-}
-
-#jHueScrollLeftAnchor {
-  bottom: 20px;
-  right: 20px;
-  display: none;
-}
-
 #jHueTourMask {
   position: absolute;
   display: none;

+ 55 - 0
desktop/core/src/desktop/static/desktop/less/components/hue-scroll-anchor.less

@@ -0,0 +1,55 @@
+/*
+ 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.
+*/
+
+.hueAnchor {
+  color: #FFFFFF;
+  opacity: 0.65;
+  filter: alpha(opacity=65);
+  position: fixed;
+  z-index: 2147483647;
+  -webkit-border-radius: 6px;
+  -moz-border-radius: 6px;
+  border-radius: 6px;
+  background-color: #333333;
+  padding: 10px;
+  padding-left: 14px;
+  padding-right: 14px;
+  min-height: 22px;
+  &:hover {
+    text-decoration: none;
+    opacity: 0.85;
+    filter: alpha(opacity=85);
+  }
+  & input {
+    min-height: 10px!important;
+    height: 10px!important;
+    margin: 0;
+  }
+}
+
+#jHueScrollUpAnchor {
+  bottom: 20px;
+  right: 20px;
+  display: none;
+}
+
+#jHueScrollLeftAnchor {
+  bottom: 20px;
+  right: 20px;
+  display: none;
+}

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

@@ -24,6 +24,7 @@
 @import "components/hue-ribbon.less";
 @import "components/hue-selector.less";
 @import "components/hue-tables.less";
+@import "components/hue-scroll-anchor.less";
 @import "hue-helpers.less";
 
 .app-header {

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác