From 5f318225b78cb7d0182948dd210d7b6d7ae6e52a Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 3 May 2018 10:45:39 -0700 Subject: [PATCH] Restore use of button for menu-toggle in AMP --- functions.php | 5 +++-- header.php | 33 ++++++++++++++------------------ sass/_normalize.scss | 6 ------ sass/forms/_buttons.scss | 1 - sass/navigation/_menus.scss | 5 +---- sass/typography/_typography.scss | 1 - style.css | 15 +-------------- 7 files changed, 19 insertions(+), 47 deletions(-) diff --git a/functions.php b/functions.php index f64e0d45bd..f1c048fa4f 100644 --- a/functions.php +++ b/functions.php @@ -126,13 +126,14 @@ function _s_widgets_init() { * Note that this must only be called after the parse_query action. * * @link https://github.com/Automattic/amp-wp + * @return bool Is AMP endpoint (and AMP plugin is active). */ function _s_is_amp() { return function_exists( 'is_amp_endpoint' ) && is_amp_endpoint(); } /** - * Detemrine whether amp-live-list should be used for the comment list. + * Determine whether amp-live-list should be used for the comment list. * * @return bool Whether to use amp-live-list. */ @@ -155,7 +156,7 @@ function _s_styles() { /** * Enqueue scripts. * - * This short-circuits in AMP because custom scripts are not allowed. There is are AMP equivalents provided elsewhere. + * This short-circuits in AMP because custom scripts are not allowed. There are AMP equivalents provided elsewhere. * * navigation: * In AMP the :focus-within selector is used to keep submenus displayed while tabbing, diff --git a/header.php b/header.php index 4cbc80bb69..18bad15ba1 100644 --- a/header.php +++ b/header.php @@ -44,7 +44,9 @@ -