Echo JS 0.11.0

<~>
loopmode 3539 days ago. link 0 point
I'd love to know why the author chose to use _ as modification delimiter, as classic bem uses --. Just aesthetics..?

Replies

appz 3539 days ago. link 2 points
One Concept, Multiple Implementations.

In [standard/classic BEM](https://en.bem.info/method/definitions/#element-modifiers), single underscores are used for modifiers. Also, they should look like key/value pairs.

.block_size_big
.block_size_small
.block__element_state_current
.block__element_state_disabled

The modified BEM syntax initially suggested by [Nicolas Gallagher](http://nicolasgallagher.com/about-html-semantics-front-end-architecture/) and popularized in [inuit.css](http://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/) is what you are referring to.

.block--big
.block--small
.block__element--current
.block__element--disabled