Add and apply style rule.