Переглянути джерело

HUE-6077 [frontend] Ported hue-scrollbar to common LESS

Enrico Berti 8 роки тому
батько
коміт
069b405

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


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

@@ -1352,40 +1352,6 @@ body {
   transition: opacity .3s;
 }
 
-.dataTables_wrapper:hover > .hue-scrollbar-x-rail, .hue-scrollbar-x-rail:hover {
-  opacity: 1;
-}
-
-.hue-scrollbar-x-rail {
-  opacity: 0.2;
-  position: fixed;
-  z-index: 10000;
-  -webkit-border-radius: 5px;
-  -moz-border-radius: 5px;
-  border-radius: 5px;
-  -webkit-transition: background-color .2s linear, opacity .2s linear;
-  -moz-transition: background-color .2s linear, opacity .2s linear;
-  -o-transition: background-color .2s linear, opacity .2s linear;
-  transition: background-color .2s linear, opacity .2s linear;
-  height: 9px;
-}
-
-
-.hue-scrollbar-x-rail > .hue-scrollbar-x {
-  position: absolute;
-  background-color: #C1C1C1;
-  -webkit-border-radius: 5px;
-  -moz-border-radius: 5px;
-  border-radius: 5px;
-  -webkit-transition: background-color .2s linear;
-  -moz-transition: background-color .2s linear;
-  -o-transition: background-color .2s linear;
-  transition: background-color .2s linear;
-  bottom: 1px;
-  height: 9px;
-  z-index: 10000;
-}
-
 .dropdown-menu.less-padding > li > a {
   padding-left: 6px
 }

+ 51 - 0
desktop/core/src/desktop/static/desktop/less/components/hue-scrollbar.less

@@ -0,0 +1,51 @@
+/*
+ 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.
+*/
+
+.dataTables_wrapper:hover > .hue-scrollbar-x-rail, .hue-scrollbar-x-rail:hover {
+  opacity: 1;
+}
+
+.hue-scrollbar-x-rail {
+  opacity: 0.2;
+  position: fixed;
+  z-index: 10000;
+  -webkit-border-radius: 5px;
+  -moz-border-radius: 5px;
+  border-radius: 5px;
+  -webkit-transition: background-color .2s linear, opacity .2s linear;
+  -moz-transition: background-color .2s linear, opacity .2s linear;
+  -o-transition: background-color .2s linear, opacity .2s linear;
+  transition: background-color .2s linear, opacity .2s linear;
+  height: 9px;
+}
+
+
+.hue-scrollbar-x-rail > .hue-scrollbar-x {
+  position: absolute;
+  background-color: #C1C1C1;
+  -webkit-border-radius: 5px;
+  -moz-border-radius: 5px;
+  border-radius: 5px;
+  -webkit-transition: background-color .2s linear;
+  -moz-transition: background-color .2s linear;
+  -o-transition: background-color .2s linear;
+  transition: background-color .2s linear;
+  bottom: 1px;
+  height: 9px;
+  z-index: 10000;
+}

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

@@ -29,6 +29,7 @@
 @import "components/hue-demi-modal.less";
 @import "components/hue-spinner.less";
 @import "components/hue-tour.less";
+@import "components/hue-scrollbar.less";
 @import "hue-helpers.less";
 
 .app-header {

Деякі файли не було показано, через те що забагато файлів було змінено