Folding Menu CSS

There are lots of snippets on the web for creating folding menus using css and/or javascript, but I couldn’t find anything that works with the standard wp_list_pages markup and deals properly with current pages and parent signalling. The css below uses the ‘current’ classes to show child pages when appropriate. If you want to add an elegant folding effect I’d recommend the¬†ILC Folding¬†plugin.