File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments