Move some CSS code from layout into documents stylesheet