From 1363e427f0850cf9fd26a3c986514964f0637785 Mon Sep 17 00:00:00 2001 From: Tyler Alsbury Date: Tue, 22 Mar 2022 13:42:47 -0400 Subject: [PATCH 1/9] Using font size and spacing for mega menu hierarchy --- assets/component-mega-menu.css | 6 ++++++ sections/header.liquid | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/component-mega-menu.css b/assets/component-mega-menu.css index d5a6a479dd8..68eecb2792a 100644 --- a/assets/component-mega-menu.css +++ b/assets/component-mega-menu.css @@ -49,6 +49,7 @@ .mega-menu__link { color: rgba(var(--color-foreground), 0.75); display: block; + font-size: 1.2rem; line-height: calc(1 + 0.3 / var(--font-body-scale)); padding-bottom: 0.8rem; padding-top: 0.8rem; @@ -56,6 +57,11 @@ transition: text-decoration var(--duration-short) ease; } +.mega-menu__link--level-2:not(:only-child) { + font-size: 1.4rem; + margin-bottom: 1rem; +} + .header--top-center .mega-menu__list { display: flex; justify-content: center; diff --git a/sections/header.liquid b/sections/header.liquid index fffa9483b9f..fda2588805d 100644 --- a/sections/header.liquid +++ b/sections/header.liquid @@ -431,7 +431,7 @@