Skip to content

Commit 5a7b9b6

Browse files
authored
Merge pull request #45 from gtt-project/hotfix/cleanup_fonts_css
Trying to cleanup fonts.css
2 parents cdae35a + 7d9524a commit 5a7b9b6

File tree

2 files changed

+13
-29
lines changed

2 files changed

+13
-29
lines changed

assets/stylesheets/fonts.css

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
/* Generated by Glyphter (http://www.glyphter.com) on Thu Jan 19 2017*/
22
@font-face {
33
font-family: 'Redmine';
4-
src: url('../fonts/Redmine.eot');
5-
src: url('../fonts/Redmine.eot?#iefix') format('embedded-opentype'),
6-
url('../fonts/Redmine.woff') format('woff'),
7-
url('../fonts/Redmine.ttf') format('truetype'),
8-
url('../fonts/Redmine.svg#Redmine') format('svg');
4+
src: url('../fonts/Redmine.woff') format('woff'),
5+
url('../fonts/Redmine.ttf') format('truetype');
96
font-weight: normal;
107
font-style: normal;
118
}
@@ -41,11 +38,9 @@
4138

4239
@font-face {
4340
font-family: "mcr-icons";
44-
src: url("../fonts/mcr-icons.eot?b88144ffa3049f78bfa19b5159b89f09?#iefix") format("embedded-opentype"),
45-
url("../fonts/mcr-icons.woff2?b88144ffa3049f78bfa19b5159b89f09") format("woff2"),
46-
url("../fonts/mcr-icons.woff?b88144ffa3049f78bfa19b5159b89f09") format("woff"),
47-
url("../fonts/mcr-icons.ttf?b88144ffa3049f78bfa19b5159b89f09") format("truetype"),
48-
url("../fonts/mcr-icons.svg?b88144ffa3049f78bfa19b5159b89f09#mcr-icons") format("svg");
41+
src: url("../fonts/mcr-icons.woff2") format("woff2"),
42+
url("../fonts/mcr-icons.woff") format("woff"),
43+
url("../fonts/mcr-icons.ttf") format("truetype");
4944
}
5045

5146
[class^="mcr-icon-"]:before, i[class*=" mcr-icon-"]:before {
@@ -106,11 +101,8 @@ url("../fonts/mcr-icons.svg?b88144ffa3049f78bfa19b5159b89f09#mcr-icons") format(
106101
*/
107102
@font-face {
108103
font-family: 'fontmaki';
109-
src: url('../fonts/fontmaki.eot?66752613');
110-
src: url('../fonts/fontmaki.eot?66752613#iefix') format('embedded-opentype'),
111-
url('../fonts/fontmaki.woff?66752613') format('woff'),
112-
url('../fonts/fontmaki.ttf?66752613') format('truetype'),
113-
url('../fonts/fontmaki.svg?66752613#fontmaki') format('svg');
104+
src: url('../fonts/fontmaki.woff') format('woff'),
105+
url('../fonts/fontmaki.ttf') format('truetype');
114106
font-weight: normal;
115107
font-style: normal;
116108
}
@@ -129,7 +121,7 @@ url("../fonts/mcr-icons.svg?b88144ffa3049f78bfa19b5159b89f09#mcr-icons") format(
129121
font-family: "fontmaki";
130122
font-style: normal;
131123
font-weight: normal;
132-
speak: none;
124+
/* speak: none; */
133125

134126
display: inline-block;
135127
text-decoration: inherit;

lib/redmine_gtt/hooks/view_layouts_base_html_head_hook.rb

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,16 @@ class ViewLayoutsBaseHtmlHeadHook < Redmine::Hook::ViewListener
66

77
def view_layouts_base_html_head(context={})
88
tags = [];
9-
tags << tag(:link, :rel => "preload", :as => "font", :type => "application/vnd.ms-fontobject",
10-
:href => "/plugin_assets/redmine_gtt/fonts/mcr-icons.eot?75e7536f7f839b0f143e30ad8d0da92d?#iefi", :crossorigin => "anonymous" )
119
tags << tag(:link, :rel => "preload", :as => "font", :type => "font/woff2",
12-
:href => "/plugin_assets/redmine_gtt/fonts/mcr-icons.woff2?75e7536f7f839b0f143e30ad8d0da92d", :crossorigin => "anonymous" )
10+
:href => "/plugin_assets/redmine_gtt/fonts/mcr-icons.woff2", :crossorigin => "anonymous" )
1311
tags << tag(:link, :rel => "preload", :as => "font", :type => "font/woff",
14-
:href => "/plugin_assets/redmine_gtt/fonts/mcr-icons.woff?75e7536f7f839b0f143e30ad8d0da92d", :crossorigin => "anonymous" )
12+
:href => "/plugin_assets/redmine_gtt/fonts/mcr-icons.woff", :crossorigin => "anonymous" )
1513
tags << tag(:link, :rel => "preload", :as => "font", :type => "font/ttf",
16-
:href => "/plugin_assets/redmine_gtt/fonts/mcr-icons.ttf?75e7536f7f839b0f143e30ad8d0da92d", :crossorigin => "anonymous" )
17-
tags << tag(:link, :rel => "preload", :as => "font", :type => "image/svg+xml",
18-
:href => "/plugin_assets/redmine_gtt/fonts/mcr-icons.svg?75e7536f7f839b0f143e30ad8d0da92d#mcr-icons", :crossorigin => "anonymous" )
19-
tags << tag(:link, :rel => "preload", :as => "font", :type => "application/vnd.ms-fontobject",
20-
:href => "/plugin_assets/redmine_gtt/fonts/fontmaki.eot?66752613#iefix'", :crossorigin => "anonymous" )
14+
:href => "/plugin_assets/redmine_gtt/fonts/mcr-icons.ttf", :crossorigin => "anonymous" )
2115
tags << tag(:link, :rel => "preload", :as => "font", :type => "font/woff",
22-
:href => "/plugin_assets/redmine_gtt/fonts/fontmaki.woff?66752613", :crossorigin => "anonymous" )
16+
:href => "/plugin_assets/redmine_gtt/fonts/fontmaki.woff", :crossorigin => "anonymous" )
2317
tags << tag(:link, :rel => "preload", :as => "font", :type => "font/ttf",
24-
:href => "/plugin_assets/redmine_gtt/fonts/fontmaki.ttf?66752613", :crossorigin => "anonymous" )
25-
tags << tag(:link, :rel => "preload", :as => "font", :type => "image/svg+xml",
26-
:href => "/plugin_assets/redmine_gtt/fonts/fontmaki.svg?66752613#fontmaki", :crossorigin => "anonymous" )
18+
:href => "/plugin_assets/redmine_gtt/fonts/fontmaki.ttf", :crossorigin => "anonymous" )
2719

2820
tags << stylesheet_link_tag("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css")
2921
tags << stylesheet_link_tag("fonts.css", :plugin => "redmine_gtt", :media => "all")

0 commit comments

Comments
 (0)