codeforkansascity / I-Got-Mine

Connecting KCMO residents with free sexual health resources offered by the City
http://igotmineinkc.org
MIT License
6 stars 8 forks source link

Collapse hospital cards on mobile #109

Closed johnkary closed 8 years ago

johnkary commented 8 years ago

Partial implementation for ticket #107.

This PR adds CSS to collapse treatment hospital cards when viewed on mobile or any device whose viewport is < 740px.

A link "More Details" displays the hospital telephone and text when clicked/tapped. The hospital icon next to the title is also hidden. A link "Less Details" then hides the same details and restores the hospital icon.

Collapsed mobile: Collapsed

Expanded mobile: Expanded

When viewport >= 740px the cards appear expanded and no More/Less Details link appear.

TODO after merge:

Thanks! 🚀