How to use @extend the styles from another SCSS file, and does it make sense?

0 like 0 dislike
5 views
Good day!

I apologize in advance if this question has already been asked, but, despite the vast number of information on the subject, to find the answer to your question, I couldn't.

The essence of the following:
For example, I have two separate scss file header.scss and footer.scss. The footer styles are almost identical with the styles of the header, except for a couple of properties.
But if I write it in the file footer.scss @extend header styles header can't be used because it is a different file.

Tell me how ideologically rather do in this situation? To a new class/item received styles of an existing class from another file, + added or changed some of the styles on their own.
by | 5 views

1 Answer

0 like 0 dislike
Because @extend is not working with files and working with the existing styles.
\rhttps://sass-scss.ru/documentation/pravila_i_direk...
by

Related questions

0 like 0 dislike
7 answers
0 like 0 dislike
2 answers
asked Jun 1, 2019 by denisopko
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
33,924 users