From 349e3f973e635dbffc81743c9d370d3d571f8f0f Mon Sep 17 00:00:00 2001 From: Ian Stewart Date: Tue, 7 Feb 2012 03:20:46 +0000 Subject: [PATCH] _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 --- js/small-menu.js | 1 + style.css | 3 +++ 2 files changed, 4 insertions(+) diff --git a/js/small-menu.js b/js/small-menu.js index ec0b2783..d0e5a3cb 100644 --- a/js/small-menu.js +++ b/js/small-menu.js @@ -8,6 +8,7 @@ jQuery( document ).ready( function( $ ) { $( '.menu-toggle' ).click( function () { $( $masthead ).find( '.menu' ).toggle(); + $( this ).toggleClass( 'toggled-on' ); }); } diff --git a/style.css b/style.css index ccffdb61..6b50623f 100644 --- a/style.css +++ b/style.css @@ -385,6 +385,9 @@ a:active { } /* Small menu */ +.main-small-navigation.expanded { + background: pink; +} .menu-toggle { cursor: pointer; }