Skip to content

Commit 00d10b8

Browse files
committed
Add BEM syntax
1 parent 0a7b5f2 commit 00d10b8

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Airbnb CSS / Sass Styleguide
1+
# Stepanov Max HTML / CSS (Less) Styleguide
22

3-
*A mostly reasonable approach to CSS and Sass*
3+
*A mostly reasonable approach to HTML and CSS(Less)*
44

55
## Table of Contents
66

@@ -70,6 +70,20 @@ Finally, properties are what give the selected elements of a rule declaration th
7070
### Formatting
7171

7272
* Use soft tabs (2 spaces) for indentation
73+
* Blocks, elements and modificators name write through the dash:
74+
```css
75+
.block-name {
76+
// ...
77+
}
78+
.block-name__element-name {
79+
// ...
80+
}
81+
.block-name__element-name_modificator-name {
82+
// ...
83+
}
84+
```
85+
* Element write through the double underscore ('block-name__element-name')
86+
* Modificator write through the single underscore ('block-name__element-name_modificator-name')
7387
* Prefer dashes over camelCasing in class names.
7488
- Underscores and PascalCasing are okay if you are using BEM (see [OOCSS and BEM](#oocss-and-bem) below).
7589
* Do not use ID selectors

0 commit comments

Comments
 (0)