Bootstrap is an amazing tool, but it tends to enforce too many opinions. The selectors used in its rules are quite broad, such as input
or label
.
Is there a method to isolate Bootstrap's CSS so that it only impacts elements within a container with a specific class?
Currently, we have had to utilize the replace-regexp
function in order to add .bootstrap
to each selector in the CSS. However, this approach could potentially disrupt Bootstrap's modal windows and other components.