_s: Adding a class to the menu toggle for help in styling open-close states with just CSS

git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@8878 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
Ian Stewart 2012-02-07 03:20:46 +00:00
parent e4a5c76fd6
commit 349e3f973e
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ jQuery( document ).ready( function( $ ) {
$( '.menu-toggle' ).click( function () { $( '.menu-toggle' ).click( function () {
$( $masthead ).find( '.menu' ).toggle(); $( $masthead ).find( '.menu' ).toggle();
$( this ).toggleClass( 'toggled-on' );
}); });
} }

View File

@ -385,6 +385,9 @@ a:active {
} }
/* Small menu */ /* Small menu */
.main-small-navigation.expanded {
background: pink;
}
.menu-toggle { .menu-toggle {
cursor: pointer; cursor: pointer;
} }