Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37673

Click on menus instead of on hover

$
0
0
by Adam Morris.  

Hi guys,

My school uses our moodle installation for a combination of cross-school stuff (surveys) as well as for traditional courses. This has prompted me to revamp the custom menu. I started out by forking decaf theme and have been iterating. My next iteration is getting the menus to open with a click rather than a hover.

This is what it looks like so far:

So, basically, how do I convert these things opening using the :hover pseudoclass into a click? Are there any tutorials out there that help me get started? I'm using Moodle 2.5, so any pointers on getting started with JQuery?

Icons courtesy of fontawesome

Why on click rather than on hover? I'm persuaded by this:

http://uxmovement.com/navigation/why-hover-menus-do-users-more-harm-than-good/

Also, I'd rather not make another theme for iOS devices.


Viewing all articles
Browse latest Browse all 37673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>