D
D
dobryi_xachker2020-04-22 12:04:07
Fonts
dobryi_xachker, 2020-04-22 12:04:07

What commas to remove in sass when adding fonts?

Added this line to sass:
@font-face {
font-family: 'pf_din_text_cond_probold';
src: url('pfdintextcondprobold-fot.eot');
src: url('pfdintextcondprobold-fot.eot?#iefix') format('embedded-opentype'),
url('pfdintextcondprobold-fot.woff2') format('woff2'),
url('pfdintextcondprobold-fot.woff' ) format('woff'),
url('pfdintextcondprobold-fot.ttf') format('truetype'),
url('pfdintextcondprobold-fot.svg#pf_din_text_cond_probold') format('svg');
font-weight: normal
font-style: normal
}
And removed the extra commas like this:
src: url("../pfdintextcondprobold-fot.eot"),
src: url("../pfdintextcondprobold-fot.eot?#iefix") format("embedded-opentype")
url("../pfdintextcondprobold- fot.woff2") format("woff2"),
url("../pfdintextcondprobold-fot.woff") format("woff"),
url("../pfdintextcondprobold-fot.ttf") format("truetype" ),
url("../pfdintextcondprobold-fot.svg#pf_din_text_cond_probold") format("svg")
font-weight: normal
font-style: normal

But the sass-a converter still complains about this line = this is line 46:

src : url("../pfdintextcondprobold-fot.eot?#iefix") format("embedded-opentype")

I don't understand what he wants from me.The error is like this:

gulp-notify: [Error running something] Error: app\sass\main.sass Error: Invalid CSS after " src": expected "}", was ': url("pfdintextcon' on line 46 of app/sass/main. sass >> src: url("pfdintextcondprobold-fot.eot?#iefix") format

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question