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
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.