Hello all!
I'm currently in the process of making my second full theme for Moodle 2 and I am going into far more detail with this one in order to polish the user experience.
Yesterday, whilst searching for some variables for the "turn editing on" button I found an interesting presentation from 2010 comparing Moodle to Google Apps.
Based on this I decided it would be an interesting experiment to try hiding the editing UI until the user was hovering their cursor over an area. I thought I would post my CSS here and let people take a look and give their opinions:
/** blocks **/
.block .header .commands {
display: none;
}
.block:hover .header .commands {
display: inherit;
}
/** course items **/
.topics .section .content li .commands{
display: none;
}
.topics .section .content li:hover .commands{
display: inline;
}
.topics .section .content .summary a .icon.edit{
display: none;
}
.topics .section .content:hover .summary a .icon.edit{
display: inline;
}
/** the add menus, these don't really work on Internet Explorer because you have to mouse-off the area to use them...
.topics .section .content .section_add_menus{
display: none;
}
.topics .section .content:hover .section_add_menus{
display: block;
} **/
I simply saved this into a stylesheet called autohide.css and attached it to my theme through the moodle/theme/themexyz/config.php file.