Add css with conditions