Spatio-Temporal Motion Retargeting for Quadruped Robots