2 ms·
The difficulty you mention is definitely an issue, but the insane repetition required for even a modestly complex piece of UI when using "flat" CSS is worse, in
by rezonant 4y ago
The difficulty you mention is definitely an issue, but the insane repetition required for even a modestly complex piece of UI when using "flat" CSS is worse, in my opinion. I suppose there might even be a slight efficiency gain over the wire once Sass outputs nested CSS by default.
- pier25 4y agoI wrote flat CSS for many years and yeah it's a lot of work but also I find it becomes more difficult to parse visually. Like when writing HTML or regular code, I find indentation helps me parse and navigate the structure very easily. There are cases with complex components where it can become a bit complex, but it's trivial to split the tree in multiple parts to reduce the indentation.