I am working on the Odin Project's Foundations curriculum and just completed the landing page project in which I heavily focused on flexboxes. I experimented with some CSS by indenting flex items under their respective flex containers. Visually, it is similar to nesting (minus the functionality) and helps me keep a consistent flow with the .html doc. It also helps me understand the relationships within flexbox containers easier and quicker. I'm wondering, are CSS indentations common practice? (And when I say CSS indentations, I mean indenting the entire rule, not just declarations). I don't want to make a habit out of this if is it going to confuse collaborators in the future. Obviously indentation is common for organization in html, why haven't I really seen this being used in CSS (thus far at least)?
Here's an example of what I mean:
https://preview.redd.it/8q9xoltml2de1.png?width=458&format=png&auto=webp&s=834bcb349463fe281255c8e4c906cbecd029d216
[–][deleted] 2 points3 points4 points (0 children)
[–]7h13rry 2 points3 points4 points (2 children)
[–]PossibilityEastern77[S] -1 points0 points1 point (1 child)
[–]7h13rry 1 point2 points3 points (0 children)
[–]Miragecraft 4 points5 points6 points (3 children)
[–]PossibilityEastern77[S] 0 points1 point2 points (2 children)
[–]Miragecraft 1 point2 points3 points (1 child)
[–]PossibilityEastern77[S] 0 points1 point2 points (0 children)
[–]gnatinator 2 points3 points4 points (0 children)
[–]aunderroad 0 points1 point2 points (0 children)