chipsenkbeil / grid-side

Personal portfolio and blog for use by the Hugo generator.
MIT License
32 stars 21 forks source link

Add mobile-friendly option for main page menu #12

Open chipsenkbeil opened 9 years ago

chipsenkbeil commented 9 years ago

As mobile devices cannot hover, there is no way to see the text of the menu items represented by the pictures. While the pictures themselves should indicate what section of the website you are visiting, it would be nice to have an option for mobile devices. There is Javascript in Modernizr to detect touch, so we could probably assume that mobile devices have Javascript enabled and provide custom CSS for touch-only devices.

Note that other Hugo themes like Artists and Creative do not appear to have any logic to show the text for mobile devices, but their pictures are for a portfolio (projects) and not the main menu.