Skip to content

Commit

Permalink
Add starker language on good and bad examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pigeonfresh committed Oct 15, 2021
1 parent 580e0bf commit bd7f356
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
7. [CSS](#css)
1. [Introduction](#introduction)
2. [Disclaimer](#disclaimer)
3. [z-index](#z-index)
3. [Formatting and Naming](#formatting-and-naming)
4. [z-index](#z-index)
8. [GIT](#git)
1. [Branches](#branches)
2. [Commit messages](#commit-messages)
Expand Down Expand Up @@ -600,14 +601,14 @@ Some good examples would be:

Selectors are placed on separate lines:
```css
/* Recommended */
/* Good */
h1,
h2,
h3 {
text-transform: uppercase;
}

/* Not recommended */
/* Bad */
h1, h2, h3 {
text-transform: uppercase;
}
Expand All @@ -629,15 +630,15 @@ Don't combine element types with classes and ids. Preferably don't style on elem
}
}

/* Not recommended */
/* Bad */
ul.overview {}

.overview li {}
```

Selectors are separated by empty lines
```css
/* Recommended */
/* Good */
.foo {
color: #f00;
}
Expand All @@ -650,7 +651,7 @@ Selectors are separated by empty lines
color: #00F;
}

/* Not recommended */
/* Bad */
.foo {
color: #f00;
}
Expand All @@ -665,13 +666,13 @@ Selectors are separated by empty lines
Properties have their own unique line

```css
/* Recommended */
/* Good */
.gallery {
background: #000;
color: #fff;
}

/* Not recommended */
/* Bad */
.gallery {
background: #000; color: #fff;
}
Expand Down

0 comments on commit bd7f356

Please sign in to comment.