Skip to content

Commit 50be8f8

Browse files
committed
Neaten up wording and punctiation a little
1 parent a3ac192 commit 50be8f8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ email: harry@csswizardry.com
44
description: "High-level advice and guidelines for writing sane, manageable, scalable CSS"
55
baseurl: ""
66
url: "http://cssguidelin.es"
7-
version: 2.1.0
7+
version: 2.1.1
88

99
# Build settings
1010
markdown: kramdown

index.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,9 +1541,7 @@ where is actually to be avoided wherever possible**.
15411541

15421542
Generally speaking, each part in a compound selector adds specificity. Ergo, the
15431543
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:
15471545

15481546
> …whenever declaring your styles, **use the least number of selectors required
15491547
> to style an element.**
@@ -1560,7 +1558,7 @@ Let’s look at an example:
15601558

15611559
To style an element with a class of `.widget__title`, we have a selector that is
15621560
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
15641562
selector:
15651563

15661564
.widget { ... }
@@ -1576,7 +1574,7 @@ selector that is literally double the specificity it needs to be. We used 200%
15761574
of the specificity actually required. And not only _that_, but this also leads
15771575
to needless verbosity in our code—more to send over the wire.
15781576

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
15801578
it**.
15811579

15821580
#### Scope

0 commit comments

Comments
 (0)