dwyl / learn-tachyons

:heart_eyes: Learn how to use Tachyons to craft beautiful, responsive and fast UI with functional CSS!
https://tachyons-bootstrap.dwyl.com
673 stars 39 forks source link

Responsive Nav Menu Example issue #10 #52

Closed nelsonic closed 4 years ago

nelsonic commented 4 years ago

While building the start|stop timer feature https://github.com/dwyl/app/issues/265, I tried to implement a mobile-first (responsive) navigation menu in Tachyons and failed miserably. 🤦‍♂ After some googling I discovered issue #10 (which I had opened a while back ...) (It's always good to re-discover a @dwyl issue with some helpful content! the system works!!)

@Cleop left a comment https://github.com/dwyl/learn-tachyons/issues/10#issuecomment-308490540 linking to the dwyl-site implementation of the CSS-only responsive navigation menu: https://github.com/dwyl/dwyl-site/pull/264/files#diff-b0638442d6af953ff33fca3d49113579L18 The link and brief explanation is much better than nothing, so thanks for the comment! 🥇 And judging by how much ❤️ the comment has received from the community: lots-of-love-for-cleops-comment A lot of people using Tachyons have found this useful. 🎉

But ... rather than forcing people to read through a commit which isn't very beginner-friendly, I've split out the code and simplified it into an example with in-line comments and explanation.

This PR includes

@iteles / @SimonLab please take a look when you can. (not urgent, just nice-to-have) Thanks! 🌻