modal: Styles of the block could be overridden with popup styles

fix #1176