Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
f4df2522
Commit
f4df2522
authored
Jul 31, 2019
by
Faizal Andyka
Committed by
hetech
Jul 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Icon: Adding font-display to @font-face declaration (#16805)
parent
54887e5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
packages/theme-chalk/src/common/var.scss
packages/theme-chalk/src/common/var.scss
+1
-0
packages/theme-chalk/src/icon.scss
packages/theme-chalk/src/icon.scss
+2
-1
No files found.
packages/theme-chalk/src/common/var.scss
View file @
f4df2522
...
...
@@ -104,6 +104,7 @@ $--fill-base: $--color-white !default;
/* Typography
-------------------------- */
$--font-path
:
'fonts'
!
default
;
$--font-display
:
'auto'
!
default
;
/// fontSize|1|Font Size|0
$--font-size-extra-large
:
20px
!
default
;
/// fontSize|1|Font Size|0
...
...
packages/theme-chalk/src/icon.scss
View file @
f4df2522
...
...
@@ -5,7 +5,8 @@
src
:
url('
#{
$--font-path
}
/element-icons.woff')
format
(
'woff'
)
,
/*
chrome
,
firefox
*/
url('
#{
$--font-path
}
/element-icons.ttf')
format
(
'truetype'
);
/* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
font-weight
:
normal
;
font-style
:
normal
font-display
:
$--font-display
;
font-style
:
normal
;
}
[
class
^=
"el-icon-"
],
[
class
*=
" el-icon-"
]
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment