Adjust style for cookbook partial footer on mobile

Properly style the code pre while hiding what needs to be hidden.