Writing CSS rules to file