Re:Show HN: CSS Quality Guide
by austinlyons on Friday July 10, 2015 @01:13PM
(#9865283)
Wouldn't you just instead write the CSS as follows?
[ Parent
| on HN ]
That likely wouldn't have the intended effect as I find it doubtful that the element with the sidebar class would also be the title.
Well, you could also write .sidebar > .title to be more specific than simply all .title elements in .sidebar, but the point is to not tie your CSS quite so closely to the HTML hierarchy I suppose.