Skip to content

Commit

Permalink
Updating name of flexible mobile menu, making comments meaningful.
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-thinkshout committed Nov 24, 2021
1 parent 478388c commit 5fa58e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
2 changes: 1 addition & 1 deletion themes/custom/ts_wrin/js/components/ts_header_nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions themes/custom/ts_wrin/sass/global/_ts-hamburger-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
}
16 changes: 1 addition & 15 deletions themes/custom/ts_wrin/templates/navigation/menu.html.twig
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down

0 comments on commit 5fa58e8

Please sign in to comment.