M
M
Moe Green2015-03-16 22:47:12
BEM
Moe Green, 2015-03-16 22:47:12

BEM syntax?

Greetings!
The question is so small, related to BEM and its syntax. I'm trying to master BEM - something works, something doesn't. There is a piece of code in which I have doubts that everything here is correct according to BEM:
codepen.io/gearmobile/pen/yyQoGZ
Request to BEM experts to look and correct those places where I wrote it wrong.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2015-03-16
@mQm

Type constructs

ul.hero__slider
    			li.slider__item

not according to BEM. is a block slider__itemelement . Where is the block ? If anything, it will not pass for a block , because this is an element of a block , and not an independent block. Similar problem initemslidersliderhero__sliderslidersliderhero
.slider__pagination
    			a.pagination__item

The rest is good.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question