Styling for modal windows

Issue #920 in TP.