Limit the scope of bootstrap styles

后端 未结 9 2245
情歌与酒
情歌与酒 2020-11-27 02:56

How do I limit Bootstrap to just the scope of a div? I need to nest the Bootstrap stylesheet inside an ExtJS app for especific divs and both are clashing since they need the

9条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 03:48

    There is way much easier way to achieve this legitimate requirement: replace }NEWLINE and ,NEWLINE with previous value and your class scope. It's very easy to to in e.g. Sublime:

    • Select }\r\n

    • Alt + F3 (to select all occurrences)

    • Replace with }\r\n.bootstrap-scope

    • Select ,\r\n

    • Alt + F3 (to select all occurrences)

    • Replace with ,\r\n.bootstrap-scope

    That's it! It will be pretty easy to update it going forward since replacement takes about a minute. Hope my answer helped.

提交回复
热议问题