CSS fixes around transitions