Skip to content

Commit

Permalink
Center mega menu (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiamatulis authored Mar 15, 2022
1 parent b2083ac commit a3c30ed
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions assets/component-mega-menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@
transition: text-decoration var(--duration-short) ease;
}

.header--top-center .mega-menu__list {
display: flex;
justify-content: center;
flex-wrap: wrap;
column-gap: 0;
}

.header--top-center .mega-menu__list > li {
width: 16%;
padding-right: 2.4rem;
}

.mega-menu__link:hover,
.mega-menu__link--active {
color: rgb(var(--color-foreground));
Expand Down
2 changes: 1 addition & 1 deletion sections/header.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@
<summary class="header__menu-item list-menu__item link focus-inset">
<span {%- if link.child_active %} class="header__active-menu-item"{% endif %}>{{ link.title | escape }}</span>
{% render 'icon-caret' %}
</summary>
</summary>
<div id="MegaMenu-Content-{{ forloop.index }}" class="mega-menu__content gradient motion-reduce global-settings-popup" tabindex="-1">
<ul class="mega-menu__list page-width{% if link.levels == 1 %} mega-menu__list--condensed{% endif %}" role="list">
{%- for childlink in link.links -%}
Expand Down

0 comments on commit a3c30ed

Please sign in to comment.