F
F
freeman02042018-05-28 23:55:13
Layout
freeman0204, 2018-05-28 23:55:13

If you use bam then use it on the whole site?

If you make the same site on WP. I found how to change the menu through hooks, but what about, for example, the slick slider that generates its own structure? And in general, is it permissible to make part of the site according to bam, and part in a cascade and with a dependency on styles? My goal is to type up as quickly as possible, to create pre-made blocks that can be quickly transferred from project to project. At least the most common ones. So that they do not break during import and are independent.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SagePtr, 2018-05-29
@SagePtr

So that they do not break during import and are independent.

BEM rather cares not that nothing else breaks your block, but that it itself does not break anything else on the page, due to the fact that all the rules in it contain at least the name of this block (as a result, they do not apply to anything from the outside) . If you have all selectors named according to BEM, then nothing will break, but if there are other rules in the style sheet, then no one guarantees that these rules will not conflict with anything, especially if they contain !important and override specificity, or if are applied too broadly, for example, to all elements of a certain type.

F
Froggyweb, 2018-05-29
@Froggyweb

Can. You can even do it in stages. But judging by the question, you don't need bam. It does nothing but further support and extension of layout based on ready-made blocks.
By the way, slick styles are quite bam

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question