@@ -1541,9 +1541,7 @@ where is actually to be avoided wherever possible**.
1541
1541
1542
1542
Generally speaking, each part in a compound selector adds specificity. Ergo, the
1543
1543
fewer parts to a compound selector then the lower its overall specificity, and
1544
- we always want to keep specificity low.
1545
-
1546
- To quote Jonathan Snook:
1544
+ we always want to keep specificity low. To quote Jonathan Snook:
1547
1545
1548
1546
> …whenever declaring your styles, ** use the least number of selectors required
1549
1547
> to style an element.**
@@ -1560,7 +1558,7 @@ Let’s look at an example:
1560
1558
1561
1559
To style an element with a class of ` .widget__title ` , we have a selector that is
1562
1560
twice as specific as it needs to be. That means that if we want to make any
1563
- modifications to ` .widget__title ` , we’ll need another, equally specific
1561
+ modifications to ` .widget__title ` , we’ll need another at-least- equally specific
1564
1562
selector:
1565
1563
1566
1564
.widget { ... }
@@ -1576,7 +1574,7 @@ selector that is literally double the specificity it needs to be. We used 200%
1576
1574
of the specificity actually required. And not only _ that_ , but this also leads
1577
1575
to needless verbosity in our code—more to send over the wire.
1578
1576
1579
- As a rule, ** if a selector will work without it being nested, then do not nest
1577
+ As a rule, ** if a selector will work without it being nested then do not nest
1580
1578
it** .
1581
1579
1582
1580
#### Scope
0 commit comments