|
|
|
|
|
by hbn
1694 days ago
|
|
No, I agree, I develop with one .scss file per component. The issue is bouncing between markup and styles. If I've got some outer div that's a container for other, inner things, why do I need a name for it? It's much easier to just say how it should look within the context of that component than it is to come up with a name and put the styles for that name in another area of code. I want a 1rem horizontal margin? I set a class of mx-4. No need to name it, no need to jump to another area of code, I just put the styles in the context of where I'm laying out the element. |
|