fix mode-specific properties in stylesheet