Fixes styling in bootstrap environment

Fixes #1588 thanks to @smajl

May need additional work.