Answer the question
In order to leave comments, you need to log in
How to import scss from url correctly?
There is the following file structure:
styles/
fonts/
_fonts.cscc
font1.woff
theme.scss
@font-face {
font-family: "font1";
src: local("font1-Regular"), url("font1.woff") format("woff");
font-weight: 400;
font-style: normal;
}
@import "fonts/_fonts.cscc";
@font-face {
font-family: "font1";
src: local("font1-Regular"), url("font1.woff") format("woff");
font-weight: 400;
font-style: normal; }
Answer the question
In order to leave comments, you need to log in
Write paths relative to the place where the future css will lie.
For example, in the following structure:
In the main.sass file, I write the path to the font, starting from the main.css file
This task is not solved automatically. url('./../fonts/font.woff') format('woff')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question