How to properly mix Bootstrap and BEM?

前端 未结 3 964
被撕碎了的回忆
被撕碎了的回忆 2021-01-01 02:57

I\'m looking at slowly refactoring a pretty big project that is built on Angular / Bootstrap that has just over 16,000 lines of CSS. Yay!

I\'ve been looking more and

3条回答
  •  隐瞒了意图╮
    2021-01-01 03:14

    I would put the nav__item after col-sm-2 as I would want the BEM to override the nav_item in most cases. col-sm-2 would be the base class and nav_item would add to it or amend it.

提交回复
热议问题