diff --git a/themes/custom/ts_wrin/js/components/ts_header_nav.js b/themes/custom/ts_wrin/js/components/ts_header_nav.js index 36144fcb0..4b4c1f54d 100644 --- a/themes/custom/ts_wrin/js/components/ts_header_nav.js +++ b/themes/custom/ts_wrin/js/components/ts_header_nav.js @@ -50,7 +50,7 @@ export default function(context) { // Mega-Menu sliders. var hamburgerContent = $(".hamburger-content"), hamburgerSlider = $(".hamburger-slider"), - flexibleRowsClass = "our-work-submenu"; + flexibleRowsClass = "flexible-row-submenu"; function slideOut(menuParent) { var clone = $(menuParent.target) diff --git a/themes/custom/ts_wrin/sass/global/_ts-hamburger-menu.scss b/themes/custom/ts_wrin/sass/global/_ts-hamburger-menu.scss index 05fb11054..3505cf7ae 100644 --- a/themes/custom/ts_wrin/sass/global/_ts-hamburger-menu.scss +++ b/themes/custom/ts_wrin/sass/global/_ts-hamburger-menu.scss @@ -682,16 +682,16 @@ body.fixed { } } -.our-work-submenu > ul > li > ul { +.flexible-row-submenu > ul > li > ul { align-items: flex-start; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; } -.our-work-submenu > ul > li > ul > li { +.flexible-row-submenu > ul > li > ul > li { flex: 0 1 48%; } -.our-work-submenu > ul > li > ul > li:first-child { +.flexible-row-submenu > ul > li > ul > li:first-child { flex: 0 1 100%; } diff --git a/themes/custom/ts_wrin/templates/navigation/menu.html.twig b/themes/custom/ts_wrin/templates/navigation/menu.html.twig index 4e56dcab3..bc2ac684d 100644 --- a/themes/custom/ts_wrin/templates/navigation/menu.html.twig +++ b/themes/custom/ts_wrin/templates/navigation/menu.html.twig @@ -1,21 +1,7 @@ {# /** * @file - * Theme override to display a menu. - * - * Available variables: - * - menu_name: The machine name of the menu. - * - items: A nested list of menu items. Each menu item contains: - * - attributes: HTML attributes for the menu item. - * - below: The menu item child items. - * - title: The menu link title. - * - url: The menu link url, instance of \Drupal\Core\Url - * - localized_options: Menu link localized options. - * - is_expanded: TRUE if the link has visible children within the current - * menu tree. - * - is_collapsed: TRUE if the link has children within the current menu tree - * that are not currently visible. - * - in_active_trail: TRUE if the link is in the active trail. + * Adds a span wrapper around menu items: menu-item-title. */ #} {% import _self as menus %}