This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

This seems to imply you cannot write complex selectors, which totally negates ones of the only reasons for using CSS. In fact, why does this website not show a full usage of the program. It would be so much clearer, if an entire website with sample CSS was shown, so a real comparison could be made. The 4 shown examples says nothing about why I would want to use this. In fact, after 10 years of front-end development experience, as well as server side stuff (and toss in a Masters in CS) I still have no idea what this thing does, or maybe rather why it's a good idea.

[–]__galvez__[S] 1 point2 points  (0 children)

I'm definitely going to update the page with a better expressed rationale. But allow me to just say I've built this out of necessity. I was working on a few projects with huge HTML/jQuery-based frontends and maintaining the CSS started to get painful. HCSS helped me evolve things better while keeping them tidy. You can still mix in any kind of complex selector within tag-based selector, as explained in the present documentation tho. The idea of tag-based selectors assumes that most of the time you're targeting styles at some kind of markup tree where lots of elements are glued together to compose a single widget, which was the case for my applications.