From 91511b6a18098a27fa7b6b2ff53a207e9dd1458d Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 28 Feb 2012 03:59:47 +0000 Subject: [PATCH] Twenty Twelve: add support for toggling the navigation menu in small screens. See #19978. Triggered when a viewport is under 600 pixels wide. This functionality depends on JS being enabled, and will naturally fall back to a normal, expanded menu for a client without JS. Props iandstewart for the original JS file and concept. git-svn-id: https://develop.svn.wordpress.org/trunk@20007 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentytwelve/functions.php | 11 +++++ wp-content/themes/twentytwelve/header.php | 7 ++-- .../themes/twentytwelve/js/navigation.js | 41 +++++++++++++++++++ wp-content/themes/twentytwelve/style.css | 20 +++++++++ 4 files changed, 75 insertions(+), 4 deletions(-) create mode 100644 wp-content/themes/twentytwelve/js/navigation.js diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index bd1bee2a40..06fbe81de9 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -187,6 +187,17 @@ function twentytwelve_admin_header_image() { ?> -