Questions tagged [BEM] (306)

2
answers

The difference in the mix of modifier in this example, the BEM?

There is a menu in the header and footer, depending on where it is proper indentation from the parent 20px or 40px. In both cases, it is done by using the extension of General(universal) selector class. BUT what is the difference? ////////////////////////////////////////////////////////////////////////////////////////////...
boyd_Hamm asked April 19th 20 at 11:58
2
answers

Is it possible sokrashat classes in BEM?

Suppose I have a block class: "advantages" Can I elements in the block to specify a class in an abbreviated form, but in the style of BÖHM "adv__title" ? .advantages { background: #000; } .adv__title { color: #fff; }
blanca.Witting asked April 18th 20 at 13:08
2
answers

Wordpress and BEM?

Hello, to use your admin with the BEM methodology - is this normal? I took a lecture of Dmitry Lavrik and he said that BEM with Wordpress is a pain? And I want to add that on ThemeForest, I haven't met a layout which used the BEM...
Lyd asked April 18th 20 at 12:22
1
answer

As far as the correct structure of the unit?

1. How it is correct to use <header> in the header of each block (partition)? For example: <section class="section> <header class="section__header> <h2 class="section__title>Title</h2> </header> <div class="section__content> The content of a block </div> </section> ...
kaitlyn asked April 16th 20 at 10:50
2
answers

BEM — How to succeed the item child block?

A block of "user" to "user__avatar". <div class="user"> <img class="user__avatar" src="/public/images/avatars/1.jpg"> </div> You want to copy this block in the<header> <header class="header"> <div class="user header__user"> <img class="user__avatar" src="/public/images/avatars/1....
Alysa_Reilly asked April 9th 20 at 10:14
0
answer

How to write classes in JS to work with BEM blocks?

On the project there are products that are externally very different, but the behavior is the same - add to cart, change prices when changing options, and expand the long description. And it seems logical to create one class, because to duplicate the logic is bad. But the problem is that the description button, add to cart,...
salvatore_Koelpin asked April 8th 20 at 09:56
1
answer

How to record on BEM?

<div class="rating"> <ul class="rating__list"> <li class="rating__item"> <div class="rating__*"></div> or <div class="rating__item__*"></div> How in BEM? </li> </ul> </div>
tamia_Frami asked April 8th 20 at 09:36
1
answer

BEM-block property display and sizing?

1) Quote from documentation The unit should not influence their environment, i.e. the block should not ask external geometry (in the form of indents, borders, affecting the dimensions) and positioning. This includes a property display? For example, I have button <button class="button"></button> with display: inl...
Casimir.Friesen asked April 8th 20 at 02:42
0
answer

How to connect the scripts in BEM?

Good afternoon. Suppose you have block a with his script A. js it is included in the block B. As you consider how to connect A. js? 1) is it Worth it to connect with import in B. js 2) Or should I create a file main.js and there in the import scripts to connect all the blocks? The first method is so bad that on the page w...
Earlene.Davis asked April 8th 20 at 01:53
1
answer

The unit element is this correct?

Hello! Is it possible in the layout adhering to a BEM to invest in the elements of one block the other blocks?
Brianne_Kie asked April 7th 20 at 16:43