I
I
Islam Ibakaev2017-07-02 00:12:49
BEM
Islam Ibakaev, 2017-07-02 00:12:49

Am I right to "cover" bem classes in a two-level menu?

If you faced such a problem, how did you solve it?

ul.desktop-menu
  li.desktop-menu__item: a.desktop-menu__link(href='#') Главная
  li.desktop-menu__item: a.desktop-menu__link(href='#') Номера
  li.desktop-menu__item: a.desktop-menu__link(href='#') Бронирование
  li.desktop-menu__item: a.desktop-menu__link(href='#') Ресторан
  li.desktop-menu__item.desktop-menu__item--gallery
    a.desktop-menu__link(href='#') Галерея
    ul.desktop-menu__submenu.gallery-submenu
      li.gallery-submenu__item: a.gallery-submenu__link(href='#') Достопримечательности
      li.gallery-submenu__item: a.gallery-submenu__link(href='#') Гостиница
      li.gallery-submenu__item: a.gallery-submenu__link(href='#') Ресторан
  li: a.desktop-menu__link(href='#') Отзывы
  li: a.desktop-menu__link(href='#') Контакты

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question