C
C
Catcop2020-07-29 16:12:49
css
Catcop, 2020-07-29 16:12:49

How to properly organize this BEM sitebar?

5f217557e52c5014602679.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2020-07-29
@Catcop

<div class="filter">
            <div class="filter__item form-el">
                <h3 class="form-el__title"></h3>
                <div class="form-el__input-row">
                    <input type="radio" class="form-el__input">
                    <label for="" class="form-el__label"></label>
                </div>
            </div>
            <div class="filter__item range-slider">
                <h3 class="range-slider__title"></h3>
                <!--   необходимые элементы для слайдера             -->
            </div>
            <div class="filter__item form-el">
                <h3 class="form-el__title"></h3>
                <div class="form-el__input-row">
                    <input type="checkbox" class="form-el__input">
                    <label for="" class="form-el__label"></label>
                    <span class="form-el__count"></span>
                </div>
            </div>
        </div>

I think it is possible and so. You can still think about the names of the blocks. Headings are generally better to make a separate block. It is also possible not to mix filter elements with input blocks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question