Answer the question
In order to leave comments, you need to log in
How to tell one css file about another when using css modules?
Tell me, who worked with stylus and css modules, how to import styles from one file to another without styles?)
Let me explain the case: we have this markup: <a><b>Foo</b><c>Bar</c></a>
. Styles for a and b are set in file 1.styl, and for c in file 2.styl.
Next, we need to make sure that when you hover over a , the frame for a and c lights up . You can, of course, do something like a > *:fisrt-child{}
, but this is a hat in the 1.styl file.
I would like to somehow tell the 1.styl file that there is another 2.styl file and get something like this:
// 1.styl
import other from './2.styl';
a:hover
border-color red
other(b)
border-color red
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question