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
@@ -201,18 +204,16 @@ Nesting can be really easily avoided by smart class naming (with the help of BEM
201
204
## BEM
202
205
203
206
Block: Unique, meaningful names for a logical unit of style. Avoid excessive shorthand.
204
-
Good: ".alert-box" or ".expanding-section" or ".button"
205
-
Bad: ".feature" or ".content" or ".btn"
207
+
-Good: `.alert-box` or `.recents-intro` or `.button`
208
+
-Bad: `.feature` or `.content` or `.btn`
206
209
207
-
Element: styles that only apply to children of a block. Elements can also be blocks themselves. Class name is a concatenation of the block name, two underscores and the element name.
208
-
Examples:
209
-
".alert-box__close"
210
-
".expanding-section__section"
210
+
Element: styles that only apply to children of a block. Elements can also be blocks themselves. Class name is a concatenation of the block name, two underscores and the element name. Examples:
211
+
-`.alert-box__close`
212
+
-`.expanding-section__section`
211
213
212
-
Modifier: override or extend the base styles of a block or element with modifier styles. Class name is a concatenation of the block (or element) name, two hyphens and the modifier name.
213
-
Examples:
214
-
".alert-box--success"
215
-
".expanding-section--expanded"
214
+
Modifier: override or extend the base styles of a block or element with modifier styles. Class name is a concatenation of the block (or element) name, two hyphens and the modifier name. Examples:
0 commit comments