I've started using CSS modules, however I cannot find any examples of how exactly this works:
:local(.class){
/* some property */
}
All classes are local by default, so what does :local
or :global
mean?
I've started using CSS modules, however I cannot find any examples of how exactly this works:
:local(.class){
/* some property */
}
All classes are local by default, so what does :local
or :global
mean?
That's right, all classes are local by default. But if you switched a block to
global
and you need a local selector inside, this where you needlocal
applied.compiles to