Эх сурвалжийг харах

HUE-1966 [core] Integrate a font file with filetype icons

Added CSS and the HueFiletypes font
Changed icons on Beeswax for result download
Enrico Berti 11 жил өмнө
parent
commit
07d74afe2f

+ 4 - 3
apps/beeswax/src/beeswax/templates/execute.mako

@@ -328,11 +328,11 @@ ${layout.menubar(section='query')}
       % endif
 
       <a id="download-csv" data-bind="attr: {'href': '/${ app_name }/download/' + $root.design.history.id() + '/csv'}" href="javascript:void(0)" title="${_('Download the results in CSV format')}" rel="tooltip"
-        class="view-query-results download hide pull-right"><h4 style="margin-right: 20px"><i class="fa fa-arrow-circle-o-down"></i></h4>
+        class="view-query-results download hide pull-right"><h4 style="margin-right: 20px"><i class="hfo hfo-file-csv"></i></h4>
       </a>
 
-      <a id="download-excel" data-bind="attr: {'href': '/${ app_name }/download/' + $root.design.history.id() + '/xls'}" href="javascript:void(0)" title="${_('Download the results for excel')}" rel="tooltip"
-        class="view-query-results download hide pull-right"><h4 style="margin-right: 20px"><i class="fa fa-arrow-circle-o-down"></i></h4></a>
+      <a id="download-excel" data-bind="attr: {'href': '/${ app_name }/download/' + $root.design.history.id() + '/xls'}" href="javascript:void(0)" title="${_('Download the results in XLS format')}" rel="tooltip"
+        class="view-query-results download hide pull-right"><h4 style="margin-right: 20px"><i class="hfo hfo-file-xls"></i></h4></a>
    </div>
 
     <div class="card-body">
@@ -851,6 +851,7 @@ ${layout.menubar(section='query')}
 </style>
 
 <link href="/static/ext/css/leaflet.css" rel="stylesheet">
+<link href="/static/ext/css/hue-filetypes.css" rel="stylesheet">
 
 <script src="/static/ext/js/jquery/plugins/jquery-fieldselection.js" type="text/javascript"></script>
 <script src="/beeswax/static/js/autocomplete.utils.js" type="text/javascript" charset="utf-8"></script>

+ 48 - 0
desktop/core/static/ext/css/hue-filetypes.css

@@ -0,0 +1,48 @@
+@font-face {
+	font-family: 'HueFiletypes';
+	src:url('../fonts/huefiletypes-regular.eot?121z71');
+	src:url('../fonts/huefiletypes-regular.eot?#iefix121z71') format('embedded-opentype'),
+		url('../fonts/huefiletypes-regular.woff?121z71') format('woff'),
+		url('../fonts/huefiletypes-regular.ttf?121z71') format('truetype'),
+		url('../fonts/huefiletypes-regular.svg?121z71#filetypes') format('svg');
+	font-weight: normal;
+	font-style: normal;
+}
+
+.hfo {
+  display: inline-block;
+  font-family: HueFiletypes;
+  font-style: normal;
+  font-weight: normal;
+  line-height: 1;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+}
+
+.hfo-file-empty:before {
+  content: "\f016";
+}
+
+.hfo-file-xls:before {
+  content: "\f017";
+}
+
+.hfo-file-csv:before {
+  content: "\f018";
+}
+
+.hfo-file-pdf:before {
+  content: "\f019";
+}
+
+.hfo-file-raw:before {
+  content: "\f01a";
+}
+
+.hfo-file-json:before {
+  content: "\f01b";
+}
+
+.hfo-file-xml:before {
+  content: "\f01c";
+}

BIN
desktop/core/static/ext/fonts/huefiletypes-regular.eot


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 18 - 0
desktop/core/static/ext/fonts/huefiletypes-regular.svg


BIN
desktop/core/static/ext/fonts/huefiletypes-regular.ttf


BIN
desktop/core/static/ext/fonts/huefiletypes-regular.woff


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно