▲ | edent 5 days ago | |
I love this - and I applied the lessons to my own site. It was fascinating to see just how often I'd slapped a class on something which was never going to be re-used. Similarly, WordPress spams tonnes of classes everywhere. Most are unused. So I took a look at rewriting my CSS to target by logical structure, rather than just random names dotted about. It mostly worked well, although it did mean that I occasionally had to write a selector like: `li[itemtype="Comment"] > article > div[itemprop="author"] {}` |