Fixes styling in bootstrap environment

Fixes #1588 thanks to @smajl
Merge pull request #1717 from ProLoser/patch-1

Fixes styling in bootstrap environment