Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
loginesta committed Feb 14, 2025
1 parent 293e7c6 commit c8fd65d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,12 @@ header nav .nav-sections .active-submenu {
margin-right: .5em;
}

header nav .nav-sections .active-submenu button::after {
content: '✕';
position: absolute;
right: 3em;
}

header nav .nav-sections .active-submenu button {
background: none;
border: 0;
Expand All @@ -602,12 +608,7 @@ header nav .nav-sections .active-submenu {
padding: 0 2em 1em;
position: relative;
text-align: left;
width: 120%;
}

header nav .nav-sections .active-submenu span.back {
position: fixed;
right: 2em;
width: 117%;
}

header nav .nav-sections .active-submenu ul > li.nav-drop::after {
Expand Down
2 changes: 1 addition & 1 deletion blocks/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function toggleMenu(nav, navSections, forceExpanded = null) {
const activeSubmenu = document.createElement('div');
activeSubmenu.classList.add('active-submenu');
activeSubmenu.innerHTML = `
<button>All Categories<span class="back">✕</span></button>
<button>All Categories</button>
<h6>Title</h6><ul><li class="nav-drop"></li></ul>
`;

Expand Down

0 comments on commit c8fd65d

Please sign in to comment.