Fixed style of modal in preview.

fixes #1179
Merge pull request #1202 from halfdan/1179-modal-styles