Skip to content

Commit 8a3fe61

Browse files
committed
Add BEM syntax 2
1 parent 00d10b8 commit 8a3fe61

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,18 @@ Finally, properties are what give the selected elements of a rule declaration th
8282
// ...
8383
}
8484
```
85-
* Element write through the double underscore ('block-name__element-name')
86-
* Modificator write through the single underscore ('block-name__element-name_modificator-name')
85+
* Element write through the double underscore
86+
```css
87+
.block-name__element-name {
88+
// ...
89+
}
90+
```
91+
* Modificator write through the single underscore
92+
```css
93+
.block-name__element-name_modificator-name {
94+
// ...
95+
}
96+
```
8797
* Prefer dashes over camelCasing in class names.
8898
- Underscores and PascalCasing are okay if you are using BEM (see [OOCSS and BEM](#oocss-and-bem) below).
8999
* Do not use ID selectors

0 commit comments

Comments
 (0)