jquery / jquery-wp-content

WordPress themes and plugins for the jQuery sites
GNU General Public License v2.0
253 stars 169 forks source link

All: replace TinyNav.js with collapsibe button for `<nav>` #452

Closed Krinkle closed 10 months ago

Krinkle commented 11 months ago

Instead of lazily generating a <select> element and replacing the menu with it, instead add a <button> to the server-rendered menu, that is only visible on narrow viewports, and let it control display of the main <nav> element as-is.

Changes:

480px Before 480px After 480px After Open
Screenshot 1 Screenshot 2 Screenshot 3
700px Before 700px After
Screen Shot 4 Screen Shot 5