V
V
vovkka2017-08-17 14:50:53
css
vovkka, 2017-08-17 14:50:53

What is the correct way to name classes by bam?

Good afternoon. Please tell me how to correctly name the classes for bam.
There is a structure like this:

<section class="about">
  <div class="about-holder">
    <div class="slider"></div>
    <div class="text"></div>
  </div>
</section>

about width 100% and background.
and about-holder to limit the width and center the block... then the blocks are nested.
How to call about-holder ? and nested. Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
kulaeff, 2017-08-17
@vovkka

I would name about, about__container, about__slider, about__text.

C
cssfish, 2017-08-17
@cssfish

Names don't apply to BAM, call it what you want. bam assumes only the naming convention of elements and modifiers (delimiters)

F
FreZ, 2017-09-22
@FreZ

<section class="about">
  <div class="about__slider-wrap">
    <div class="about__slider"></div>
    <div class="about__text"></div>
  </div>
</section>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question