_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:
parent
e4a5c76fd6
commit
349e3f973e
2 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@ jQuery( document ).ready( function( $ ) {
|
|||
|
||||
$( '.menu-toggle' ).click( function () {
|
||||
$( $masthead ).find( '.menu' ).toggle();
|
||||
$( this ).toggleClass( 'toggled-on' );
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -385,6 +385,9 @@ a:active {
|
|||
}
|
||||
|
||||
/* Small menu */
|
||||
.main-small-navigation.expanded {
|
||||
background: pink;
|
||||
}
|
||||
.menu-toggle {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue