use new css style rules (closes #3904)