What can cosmology tell us about gravity? Constraining Horndeski gravity with Sigma and mu