This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.b-toy | |
//- структурно верно, но скорее всего гораздо гибче использовать универсальный блок title с модификатором | |
//- только b- не обязательно | |
.b-toy--title.b-toy-title | |
.b-toy-title--text.toy-title(data-js-toy-title) | |
//- не думаю что рекомендованный возраст должен быть частью тайтла, но это спорный вопрос | |
.b-toy-title--recommended_age | |
span(data-js-toy-recommended_age) | |
|+ | |
//- норм |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//- .b-video-upload | |
//- общее ощущение: с синтаксисом и структурированием разобрался, но ведь | |
//- есть еще и идеология повторного использования | |
//- Самая важная идея БЭМ - то что верстка это такое же программирование и здесь должны соблюдаться те же | |
//- принципы. Уж повторное использование наработок точно. | |
//- блок .video_page | |
.video_page | |
//- по идее это тоже може быть блоком так как это необязательная част страницы | |
.video_page--promo | |
.video_page--promo-img(data-js-promo-img) |