Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Working Groups
AsciiDoc WG
asciidoc.org
Commits
aa90900d
Verified
Commit
aa90900d
authored
Apr 20, 2022
by
Dan Allen
Browse files
fix declaration of font face for FontAwesome font
parent
989e89be
Pipeline
#3488
canceled with stage
in 34 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.eleventy.js
View file @
aa90900d
...
...
@@ -36,7 +36,13 @@ module.exports = function (eleventyConfig, rest) {
postcssPresetEnv
({
browsers
:
'
defaults,not IE 11
'
}),
(
css
,
result
)
=>
{
result
.
root
.
walk
((
node
)
=>
{
if
(
node
.
type
===
'
decl
'
&&
node
.
prop
===
'
font-display
'
)
node
.
remove
()
if
(
node
.
type
===
'
decl
'
)
{
if
(
node
.
prop
===
'
font-display
'
)
{
node
.
remove
()
}
else
if
(
node
.
prop
===
'
src
'
&&
node
.
parent
.
name
===
'
font-face
'
&&
node
.
value
.
includes
(
'
.eot
'
))
{
node
.
parent
.
remove
()
}
}
})
return
result
},
...
...
pages/assets/css/_doc.css
View file @
aa90900d
...
...
@@ -106,13 +106,14 @@
}
#editorPreview
i
.fa
{
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
font-family
:
FontAwesome
;
hyphens
:
none
;
display
:
inline-block
;
}
#editorPreview
span
.icon
>
i
.fa
{
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
font
:
normal
normal
normal
1rem
FontAwesome
;
font-size
:
1rem
;
}
#editorPreview
p
code
,
...
...
pages/assets/css/_font.css
View file @
aa90900d
...
...
@@ -9,3 +9,9 @@
@import
"@fontsource/source-code-pro/latin-400.css"
;
@import
"@fontsource/source-code-pro/latin-500.css"
;
@import
"@fontsource/source-code-pro/latin-600.css"
;
@font-face
{
font-family
:
'FontAwesome'
;
src
:
url('./files/fontawesome-webfont.woff2')
format
(
'woff2'
);
font-weight
:
normal
;
font-style
:
normal
;
}
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