Apply style rules