You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-31Lines changed: 31 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ bem-naming
17
17
About
18
18
-----
19
19
20
-
This tool allows getting information about BEM entity using [string](#string-representation) as well as forming string representation based on [BEM-naming](#bem-naming).
20
+
This tool allows getting information about BEM entity using [string](#string-representation) as well as forming string representation based on [naming object](#object-representation-of-bem-entity).
21
21
22
22
Install
23
23
-------
@@ -41,9 +41,9 @@ Table of Contents
41
41
-----------------
42
42
43
43
*[String representation](#string-representation)
44
-
*[Common misconceptions](#common-misconceptions)
45
-
*[BEM-naming](#bem-naming-1)
44
+
*[Object representation of BEM entity](#object-representation-of-bem-entity)
BEM methodology involves the use of flat structure inside a block. It means that BEM entity can not be represented as an element of the other element and the following string representation will be invalid:
73
-
74
-
```js
75
-
'block__some-elem__sub-elem'
76
-
```
77
-
78
-
Also there is no such BEM entity as a modifier and an element modifier simultaneously so the following string representation will be invalid:
Checks whether BEM-naming `obj` is modifier of an element.
287
+
Checks whether naming object is modifier of an element.
303
288
304
289
Example:
305
290
@@ -323,6 +308,21 @@ String to separate modifiers from blocks and elements.
323
308
324
309
String to separate value of modifier from name of modifier.
325
310
311
+
Common misconceptions
312
+
---------------------
313
+
314
+
BEM methodology involves the use of flat structure inside a block. It means that BEM entity can not be represented as an element of the other element and the following string representation will be invalid:
315
+
316
+
```js
317
+
'block__some-elem__sub-elem'
318
+
```
319
+
320
+
Also there is no such BEM entity as a modifier and an element modifier simultaneously so the following string representation will be invalid:
БЭМ-методология предполагает использование плоской структуры внутри блока, это означает, что БЭМ-сущность не может быть представлена как элемент элемента, и следующее строковое представление будет невалидным:
73
-
74
-
```js
75
-
'block__some-elem__sub-elem'
76
-
```
77
-
78
-
Также не бывает такой БЭМ-сущности, как модификатор блока и модификатор элемента одновременно, поэтому следующее строковое представление будет невалидным:
Строка для разделения значения модификатора от названия модификатора.
325
310
311
+
Частые заблуждения
312
+
------------------
313
+
314
+
БЭМ-методология предполагает использование плоской структуры внутри блока, это означает, что БЭМ-сущность не может быть представлена как элемент элемента, и следующее строковое представление будет невалидным:
315
+
316
+
```js
317
+
'block__some-elem__sub-elem'
318
+
```
319
+
320
+
Также не бывает такой БЭМ-сущности, как модификатор блока и модификатор элемента одновременно, поэтому следующее строковое представление будет невалидным:
0 commit comments