refactor post css into partial