Fixes styling in bootstrap environment

Fixes #1588 thanks to @smajl