ソースを参照

HUE-7400 [editor] Moved bigger icons to the specifics CSS classes

Enrico Berti 8 年 前
コミット
0eebb8c

+ 1 - 1
apps/oozie/src/oozie/templates/editor2/bundle_editor.mako

@@ -72,7 +72,7 @@ ${ commonheader(_("Bundle Editor"), "Oozie", user, request) | n,unicode }
         %if is_embeddable:
           <li>
             <a href="javascript: void(0)" data-bind="hueLink: '/home/?type=oozie-bundle2'">
-              <svg class="hi hi-fw"><use xlink:href="#hi-documents"></use></svg> ${ _('Bundles') }
+              <svg class="hi hi-fw hi-bigger"><use xlink:href="#hi-documents"></use></svg> ${ _('Bundles') }
             </a>
           </li>
         %endif

+ 1 - 1
apps/oozie/src/oozie/templates/editor2/coordinator_editor.mako

@@ -74,7 +74,7 @@ ${ commonheader(_("Coordinator Editor"), "Oozie", user, request) | n,unicode }
         %if is_embeddable:
           <li>
             <a href="javascript: void(0)" data-bind="hueLink: '/home/?type=oozie-coordinator2'">
-              <svg class="hi hi-fw"><use xlink:href="#hi-documents"></use></svg> ${ _('Schedules') }
+              <svg class="hi hi-fw hi-bigger"><use xlink:href="#hi-documents"></use></svg> ${ _('Schedules') }
             </a>
           </li>
         %endif

+ 1 - 1
apps/oozie/src/oozie/templates/editor2/workflow_editor.mako

@@ -89,7 +89,7 @@ ${ commonheader(_("Workflow Editor"), "Oozie", user, request, "40px") | n,unicod
         %if is_embeddable:
           <li>
             <a href="javascript: void(0)" data-bind="hueLink: '/home/?type=oozie-workflow2'">
-              <svg class="hi hi-fw"><use xlink:href="#hi-documents"></use></svg> ${ _('Workflows') }
+              <svg class="hi hi-fw hi-bigger"><use xlink:href="#hi-documents"></use></svg> ${ _('Workflows') }
             </a>
           </li>
         %endif

ファイルの差分が大きいため隠しています
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


ファイルの差分が大きいため隠しています
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


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

@@ -173,6 +173,9 @@ input[type='password']::-ms-reveal {
   &.hi-fw {
     width: 1.28571429em !important;
   }
+  &.hi-bigger {
+    height: 1.1em !important;
+  }
 }
 
 .big-spinner {

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

@@ -106,14 +106,14 @@ from desktop.views import commonheader, commonfooter, _ko, commonshare
         <!-- ko if: IS_HUE_4 -->
         <li>
           <a href="/home/?type=search-dashboard">
-            <svg class="hi hi-fw" style="font-size:16px;"><use xlink:href="#hi-documents"></use></svg> ${ _('Dashboards') }
+            <svg class="hi hi-fw hi-bigger"><use xlink:href="#hi-documents"></use></svg> ${ _('Dashboards') }
           </a>
         </li>
         <!-- /ko -->
         <!-- ko ifnot: IS_HUE_4 -->
         <li>
           <a href="${ url('dashboard:admin_collections') }">
-            <svg class="hi hi-fw" style="font-size:16px;"><use xlink:href="#hi-documents"></use></svg> ${ _('Dashboards') }
+            <svg class="hi hi-fw hi-bigger"><use xlink:href="#hi-documents"></use></svg> ${ _('Dashboards') }
           </a>
         </li>
         <!-- /ko -->

ファイルの差分が大きいため隠しています
+ 0 - 0
desktop/libs/notebook/src/notebook/static/notebook/css/notebook.css


+ 2 - 3
desktop/libs/notebook/src/notebook/static/notebook/less/notebook.less

@@ -373,7 +373,7 @@
   .snippet-logs-btn {
     margin-top: -9px;
     margin-left: -3px;
-    font-size: 16px;
+    font-size: 20px;
   }
 
   .snippet-execution-status {
@@ -1256,11 +1256,10 @@
     position: absolute;
     top: 0;
     right: 6px;
-    display: none;
   }
 
   .snippet-log-container:hover .close-logs-overlay {
-    display: block;
+    opacity: 1;
   }
 
   .jobs-overlay {

+ 4 - 4
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -225,12 +225,12 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
             <li>
               <!-- ko if: IS_HUE_4 -->
               <a data-bind="hueLink: '/home/?type=' + (editorMode() ? 'query-' : '') + editorType()">
-                <svg class="hi hi-fw"><use xlink:href="#hi-documents"></use></svg> <span data-bind="text: editorMode() ? '${ _ko('Queries') }' : '${ _ko('Notebooks') }'"></span>
+                <svg class="hi hi-fw hi-bigger"><use xlink:href="#hi-documents"></use></svg> <span data-bind="text: editorMode() ? '${ _ko('Queries') }' : '${ _ko('Notebooks') }'"></span>
               </a>
               <!-- /ko -->
               <!-- ko ifnot: IS_HUE_4 -->
               <a class="btn" data-bind="hueLink: '${ url('notebook:notebooks') }?type=' + editorType()">
-                <svg class="hi hi-fw"><use xlink:href="#hi-documents"></use></svg> <span data-bind="text: editorMode() ? '${ _ko('Queries') }' : '${ _ko('Notebooks') }'"></span>
+                <svg class="hi hi-fw hi-bigger"><use xlink:href="#hi-documents"></use></svg> <span data-bind="text: editorMode() ? '${ _ko('Queries') }' : '${ _ko('Notebooks') }'"></span>
               </a>
               <!-- /ko -->
             </li>
@@ -592,7 +592,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
 <script type="text/html" id="snippet-log${ suffix }">
   <div class="snippet-log-container margin-bottom-10" data-bind="visible: showLogs() && status() != 'ready' && status() != 'loading'" style="display: none;">
     <div data-bind="delayedOverflow, css: resultsKlass" style="margin-top: 5px; position: relative;">
-      <a href="javascript: void(0)" class="inactive-action close-logs-overlay" data-bind="click: function(){ showLogs(false) }"><i class="fa fa-times" style="font-size:18px;"></i></a>
+      <a href="javascript: void(0)" class="inactive-action close-logs-overlay" data-bind="click: function(){ showLogs(false) }">&times;</a>
       <ul data-bind="visible: jobs().length > 0, foreach: jobs" class="unstyled jobs-overlay">
         <li data-bind="attr: {'id': $data.name.substr(4)}">
           %if is_embeddable:
@@ -1606,7 +1606,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
 
 <script type="text/html" id="snippet-execution-status${ suffix }">
   <div class="snippet-execution-status" data-bind="clickForAceFocus: ace">
-    <a class="inactive-action pull-left snippet-logs-btn" href="javascript:void(0)" data-bind="visible: status() === 'running' && errors().length == 0, click: function() { hideFixedHeaders(); $data.showLogs(!$data.showLogs());}, css: {'blue': $data.showLogs}" title="${ _('Toggle Logs') }"><i class="fa fa-fw" style="font-size:20px;" data-bind="css: { 'fa-caret-right': !$data.showLogs(), 'fa-caret-down': $data.showLogs() }"></i></a>
+    <a class="inactive-action pull-left snippet-logs-btn" href="javascript:void(0)" data-bind="visible: status() === 'running' && errors().length == 0, click: function() { hideFixedHeaders(); $data.showLogs(!$data.showLogs());}, css: {'blue': $data.showLogs}" title="${ _('Toggle Logs') }"><i class="fa fa-fw" data-bind="css: { 'fa-caret-right': !$data.showLogs(), 'fa-caret-down': $data.showLogs() }"></i></a>
     <div class="snippet-progress-container" data-bind="visible: status() != 'canceled' && status() != 'with-optimizer-report'">
       <div class="progress-snippet progress" data-bind="css: {
         'progress-starting': progress() == 0 && status() == 'running',

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません