Просмотр исходного кода

HUE-5964 [useradmin] Moved CSS to LESS

Enrico Berti 8 лет назад
Родитель
Сommit
913c26337d

+ 3 - 0
Gruntfile.js

@@ -44,6 +44,7 @@ module.exports = function(grunt) {
           'apps/filebrowser/src/filebrowser/static/filebrowser/css/listdir_components.css': 'apps/filebrowser/src/filebrowser/static/filebrowser/less/listdir_components.less',
           'apps/jobbrowser/src/jobbrowser/static/jobbrowser/css/jobbrowser.css': 'apps/jobbrowser/src/jobbrowser/static/jobbrowser/less/jobbrowser.less',
           'apps/jobbrowser/src/jobbrowser/static/jobbrowser/css/jobbrowser-embeddable.css': 'apps/jobbrowser/src/jobbrowser/static/jobbrowser/less/jobbrowser-embeddable.less',
+          'apps/useradmin/src/useradmin/static/useradmin/css/useradmin.css': 'apps/useradmin/src/useradmin/static/useradmin/less/useradmin.less',
         }
       }
     },
@@ -62,6 +63,8 @@ module.exports = function(grunt) {
           'apps/filebrowser/src/filebrowser/static/filebrowser/less/**/*.less',
           'apps/jobbrowser/src/jobbrowser/static/jobbrowser/less/*.less',
           'apps/jobbrowser/src/jobbrowser/static/jobbrowser/less/**/*.less',
+          'apps/useradmin/src/useradmin/static/useradmin/less/*.less',
+          'apps/useradmin/src/useradmin/static/useradmin/less/**/*.less',
         ],
         tasks: ['less']
       }

+ 17 - 70
apps/useradmin/src/useradmin/static/useradmin/css/useradmin.css

@@ -1,70 +1,17 @@
-/*
- 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.
-*/
-
-.fixed {
-  position: fixed;
-  top: 80px;
-  filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
-  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-}
-
-.sortable {
-  cursor: pointer;
-}
-
-.file-row {
-  height: 37px;
-}
-
-.steps {
-  padding-top: 20px;
-  margin-bottom: 100px;
-  border: 1px solid #DDDDDD;
-  border-top: transparent;
-}
-
-.section {
-  margin: 20px;
-}
-
-input[type=submit] {
-  margin-left: 50px;
-}
-
-.nav-tabs .active {
-  font-weight: bold;
-}
-
-.form-actions {
-  padding-left: 0 !important;
-}
-
-@media all and (max-height: 800px) {
-  .form-actions {
-    z-index: 2;
-    border-top: 1px solid #F1F1F1;
-    position: fixed;
-    bottom: 0;
-    left: 0;
-    width: 100%;
-    margin: 0;
-    padding-left: 20px !important;
-  }
-}
+/*!
+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.
+ */.fixed{position:fixed;top:80px;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);-webkit-box-shadow:0 1px 4px rgba(0,0,0,0.065);-moz-box-shadow:0 1px 4px rgba(0,0,0,0.065);box-shadow:0 1px 4px rgba(0,0,0,0.065)}.sortable{cursor:pointer}.file-row{height:37px}.steps{padding-top:20px;margin-bottom:100px;border:1px solid #DDDDDD;border-top:transparent}.section{margin:20px}input[type=submit]{margin-left:50px}.nav-tabs .active{font-weight:bold}.form-actions{padding-left:0 !important}@media all and (max-height:800px){.form-actions{z-index:2;border-top:1px solid #F1F1F1;position:fixed;bottom:0;left:0;width:100%;margin:0;padding-left:20px !important}}

+ 70 - 0
apps/useradmin/src/useradmin/static/useradmin/less/useradmin.less

@@ -0,0 +1,70 @@
+/*
+ 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.
+*/
+
+.fixed {
+  position: fixed;
+  top: 80px;
+  filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
+}
+
+.sortable {
+  cursor: pointer;
+}
+
+.file-row {
+  height: 37px;
+}
+
+.steps {
+  padding-top: 20px;
+  margin-bottom: 100px;
+  border: 1px solid #DDDDDD;
+  border-top: transparent;
+}
+
+.section {
+  margin: 20px;
+}
+
+input[type=submit] {
+  margin-left: 50px;
+}
+
+.nav-tabs .active {
+  font-weight: bold;
+}
+
+.form-actions {
+  padding-left: 0 !important;
+}
+
+@media all and (max-height: 800px) {
+  .form-actions {
+    z-index: 2;
+    border-top: 1px solid #F1F1F1;
+    position: fixed;
+    bottom: 0;
+    left: 0;
+    width: 100%;
+    margin: 0;
+    padding-left: 20px !important;
+  }
+}