A covariant formalism for Chern-Simons gravity