G
G
godsplane2021-11-22 21:17:29
Layout
godsplane, 2021-11-22 21:17:29

How to write classes according to BEM (Or just according to logic)?

619bddf8cf56f065891514.png

For example, I use this block.
I have created such a structure.

<footer class="footer container row">
  <div class="footer__item col">
    <div class="footer__item-logo">
    
    </div>
    <div class="footer__item-info">
    
    </div>
  </div>
  <div class="footer__item col">
    <div class="footer__item-inner row">
      <div class="footer__inner-social">

      </div>
      <div class="footer__inner-callback">

      </div>
    </div>
      <div class="footer__item-inner">
        
      </div>
  </div>

</footer>

I understand that this is not right, but how right.
Here I have a wrapper , this is a block, there are wrapper items, but if they are separated inside the items, or the structure is a little different, then what is the right thing to do?
And which is better:
news
news-item
news-item_title
Or
news-wrapper
news-wrapper_item
news-wrapper_item--title
?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question