From a044beab6aca3c9f1ab993e674e566c1e64c1469 Mon Sep 17 00:00:00 2001 From: lancewillett 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: http://svn.automattic.com/wordpress/trunk@20007 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 bd1bee2a4..06fbe81de 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -187,6 +187,17 @@ function twentytwelve_admin_header_image() { ?> -