minor refactoring in pdf css