Say I have these three classes:
Expand|Select|Wrap|Line Numbers
- .Paragraph { width: 200px; margin: auto; }
- .Paragraph .Header { display: block; font-weight: bold; }
- .Paragraph .Text { display: block; font-size: 90%; }
Like, for example:
Expand|Select|Wrap|Line Numbers
- .Paragraph {
- width: 200px; margin: auto;
- .Header { display: block; font-weight: bold; }
- .Text { display: block; font-size: 90%; }
- }
I've been trying to search for an alternate syntax, but all I can find are examples of the basic syntax. I even tried going through the W3C documentation but couldn't find anything useful.
I'm just wondering, because I have a lot of classes that need to be nested pretty deep and right now something like 90% of the CSS file seems to be nothing but repeated parent classes. Seems like an awful waste of bandwidth :P