Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
407
Merge Requests
66
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
a4004c7a
Commit
a4004c7a
authored
12 minutes ago
by
Mark Harding
Browse files
Options
Download
(chore): ensure preloading of icons works correctly
parent
97dd99fa
master
No related merge requests found
Pipeline
#119381732
running with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
10 deletions
+45
-10
angular.json
View file @
a4004c7a
...
...
@@ -21,7 +21,6 @@
"styles"
:
[
"node_modules/material-design-lite/dist/material.blue_grey-amber.min.css"
,
"node_modules/plyr/dist/plyr.css"
,
"node_modules/material-design-icons/iconfont/material-icons.css"
,
"src/main.css"
],
"scripts"
:
[
...
...
This diff is collapsed.
src/index.html
View file @
a4004c7a
...
...
@@ -26,13 +26,7 @@
/>
<link
rel=
"preload"
href=
"https://cdn-assets.minds.com/front/fonts/material-icons.css"
as=
"style"
crossorigin
/>
<link
rel=
"preload"
href=
"https://cdn-assets.minds.com/front/fonts/material-icons.woff2"
href=
"https://cdn-assets.minds.com/front/fonts/MaterialIcons-Regular.woff2"
as=
"font"
type=
"font/woff2"
crossorigin
...
...
This diff is collapsed.
src/stylesheets/fonts.scss
View file @
a4004c7a
...
...
@@ -398,7 +398,7 @@
font-weight
:
900
;
font-display
:
swap
;
src
:
local
(
'Roboto Black'
)
,
local
(
'Roboto-Black'
)
,
url(
https://fonts.gstatic.com/s/roboto/v19/KFOlCnqEu92Fr1MmYUtfChc4AMP6lbBP.woff2
)
url(
'<%= APP_CDN %>/assets/fonts/roboto/bold-latin-ext.woff2'
)
format
(
'woff2'
);
unicode-range
:
U
+
0100-024
F
,
U
+
0259
,
U
+
1
E00-1EFF
,
U
+
2020
,
U
+
20
A0-20AB
,
U
+
20
AD-20CF
,
U
+
2113
,
U
+
2
C60-2C7F
,
U
+
A720-A7FF
;
...
...
@@ -410,9 +410,51 @@
font-weight
:
900
;
font-display
:
swap
;
src
:
local
(
'Roboto Black'
)
,
local
(
'Roboto-Black'
)
,
url(
https://fonts.gstatic.com/s/roboto/v19/KFOlCnqEu92Fr1MmYUtfBBc4AMP6lQ.woff2
)
url(
'<%= APP_CDN %>/assets/fonts/roboto/bold-latin-ext.woff2'
)
format
(
'woff2'
);
unicode-range
:
U
+
0000-00
FF
,
U
+
0131
,
U
+
0152-0153
,
U
+
02
BB-02BC
,
U
+
02
C6
,
U
+
02
DA
,
U
+
02
DC
,
U
+
2000-206
F
,
U
+
2074
,
U
+
20
AC
,
U
+
2122
,
U
+
2191
,
U
+
2193
,
U
+
2212
,
U
+
2215
,
U
+
FEFF
,
U
+
FFFD
;
}
/**
* NOTE: these are not relative to app path as we need preloading of the icons
*/
@font-face
{
font-family
:
'Material Icons'
;
font-style
:
normal
;
font-weight
:
400
;
src
:
url('https://cdn-assets.minds.com/front/fonts/MaterialIcons-Regular.eot')
;
/* For IE6-8 */
src
:
local
(
'Material Icons'
)
,
local
(
'MaterialIcons-Regular'
)
,
url('https://cdn-assets.minds.com/front/fonts/MaterialIcons-Regular.woff2')
format
(
'woff2'
)
,
url('https://cdn-assets.minds.com/front/fonts/MaterialIcons-Regular.woff')
format
(
'woff'
)
,
url('https://cdn-assets.minds.com/front/fonts/MaterialIcons-Regular.ttf')
format
(
'truetype'
);
}
.material-icons
{
font-family
:
'Material Icons'
;
font-weight
:
normal
;
font-style
:
normal
;
font-size
:
24px
;
/* Preferred icon size */
display
:
inline-block
;
line-height
:
1
;
text-transform
:
none
;
letter-spacing
:
normal
;
word-wrap
:
normal
;
white-space
:
nowrap
;
direction
:
ltr
;
/* Support for all WebKit browsers. */
-webkit-font-smoothing
:
antialiased
;
/* Support for Safari and Chrome. */
text-rendering
:
optimizeLegibility
;
/* Support for Firefox. */
-moz-osx-font-smoothing
:
grayscale
;
/* Support for IE. */
font-feature-settings
:
'liga'
;
}
This diff is collapsed.
Please
register
or
sign in
to comment