Browse Source

HUE-6077 [frontend] Fixed styles for search dashboards

Enrico Berti 8 years ago
parent
commit
639f8c4270

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


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

@@ -184,3 +184,8 @@ input[type='password']::-ms-reveal {
   margin-left: -1px;
   margin-top: -1px;
 }
+
+.card {
+  background-color: @cui-white;
+  border: 1px solid @cui-gray-100;
+}

File diff suppressed because it is too large
+ 0 - 0
desktop/libs/dashboard/src/dashboard/static/dashboard/css/common_dashboard.css


+ 11 - 4
desktop/libs/dashboard/src/dashboard/static/dashboard/less/common_dashboard.less

@@ -81,6 +81,7 @@
     padding-left: 3px !important;
     padding-right: 3px !important;
     background-color: @cui-white;
+    border-bottom: 1px solid @cui-gray-100;
   }
 
   .card-widget .card-body {
@@ -218,6 +219,16 @@
     padding-bottom: 6px;
   }
 
+  .form-search .input-append .btn {
+    border-radius: 4px!important;
+    margin-right: 10px;
+    &.flat-left {
+      border-top-left-radius: 0!important;
+      border-bottom-left-radius: 0!important;
+      border-left-width: 0;
+    }
+  }
+
   .widget-settings-section {
     display: none;
   }
@@ -229,10 +240,6 @@
     text-align: center;
   }
 
-  .card {
-    margin: 0;
-  }
-
   .move-widget {
     cursor: move;
   }

+ 1 - 1
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -130,7 +130,7 @@ from desktop.views import commonheader, commonfooter, _ko
       <span data-bind="foreach: query.qs">
         <input data-bind="clearable: q, valueUpdate:'afterkeydown', typeahead: { target: q, nonBindableSource: queryTypeahead, multipleValues: true, multipleValuesSeparator: ':', extraKeywords: 'AND OR TO', completeSolrRanges: true }, css:{'input-xlarge': $root.query.qs().length == 1, 'input-medium': $root.query.qs().length < 4, 'input-small': $root.query.qs().length >= 4}" maxlength="4096" type="text" class="search-query">
         <!-- ko if: $index() >= 1 -->
-        <a class="btn" href="javascript:void(0)" data-bind="click: $root.query.removeQ"><i class="fa fa-minus"></i></a>
+        <a class="btn flat-left" href="javascript:void(0)" data-bind="click: $root.query.removeQ"><i class="fa fa-minus"></i></a>
         <!-- /ko -->
       </span>
 

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