Answer the question
In order to leave comments, you need to log in
How to @extend class styles from another file without including the file itself?
Hello, dear Toaster users. The question is the following.
For example I have code in table.scss file with some styles (for .table and not only)
.sel1 {...}
.sel2{...}
.table {
...
}
sel3{...}
.my-table {
@extend ...
}
Answer the question
In order to leave comments, you need to log in
Extending simply adds your selector to whatever you are extending. Therefore, you need a file with an extend. Mixins may be suitable for solving your problem:
.my-table {
@include .table();
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question