Answer the question
In order to leave comments, you need to log in
How to use adaptive mesh + BEM methodology?
There is a collector for gulp + sass + pug (like TARS). There is a components folder in which the so-called components are stored in separate folders (for example, button.pug, button.scss, button.js). That is, all markup, styles and js for a particular component are stored in one folder.
I'm also trying to use the grid from foundation 6.
But there are a few things I don't understand.
1) For example, the header of the site in which the logo, text and phones are displayed. In this case, there are components Logo, Link-phone. I do something like this:
Is the header considered a BEM block?
What will be the "Text lorem ipsum" here? Where to describe his styles? In general, where to describe general styles that do not apply to a component / block?
<header class="grid-x">
<div class="cell">
+logo()
</div>
<div class="cell">
Текст lorem ipsum
</div>
<div class="cell">
+tel-link()
</div>
</header>
<header class="header">
<div class="header__logo-block">
+logo()
</div>
<div class="header__text-block">
Текст lorem ipsum
</div>
<div class="header__phones-block">
+tel-link()
</div>
</header>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question