Files
CWC/styles/components/site-header.css
T
Keith Solomon 380e2d9015 fix: address remaining mobile menu issues
Per the user's feedback, fix the issues still visible in the menu:

1. Hero rendered over the menu: bumped menu z-index from 10 to 100 so it
   always sits above the hero's stacked elements.

2. List markers on items: added explicit list-style: none / padding: 0 on
   the menu <ul> and items to override the base typography rule that sets
   list-style-type: disc and padding: 0 1rem on every <ul>.

3. Blue links: the base typography rule 'a, .link { color: var(--color-bodylinks); }'
   has specificity 0,1,1 and was beating the menu text-white rule. Override
   with color: var(--color-white) !important on menu links and child links
   inside the mobile media query.

4. Full borders with rounded corners on child items: change child item
   border from '2px solid var(--color-secondary); border-radius: 0.5rem'
   to 'border-bottom: 2px solid var(--color-secondary); border-radius: 0'
   so each child gets only a bottom border (matching the user's spec).

5. Menu items now use plain CSS (color/display/padding/font-weight) instead
   of @apply text-white/no-underline to give them explicit override
   specificity against the base styles.

6. Toggle button: changed the SVG width from 2rem to 1.5rem in
   styles/components/site-header.css so the hamburger and X icons render
   at a square 1.5rem x 1.5rem aspect ratio inside the (intentionally)
   rectangular orange button.

Nav-main template unchanged from the previous commit (Contact button +
social icons already in place). Header test still passes - the button box
itself (72x45) is unchanged, only the icon aspect changed.
2026-06-28 18:05:12 -05:00

99 lines
2.2 KiB
CSS

/* Header styles */
.site-header {
/* Site header styles */
background: linear-gradient(90.15deg, #0773AC -39.25%, #032F46 100%);
.header__nav-main {
.nav-main { @apply self-stretch; }
}
.nav-aux__container {
background: linear-gradient(90.17deg, #2189C0 -51.3%, #0773AC 55.75%);
.header__nav-aux {
@apply px-0!;
}
a {
/* Link styles */
color: var(--color-white);
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
&:hover { color: var(--color-primary-800); }
}
#globalSearch { @apply text-14px text-light; }
}
}
@media (max-width: 767px) {
.site-header {
overflow: hidden;
width: 100%;
}
.site-header .nav-aux__container {
display: none;
}
.site-header .header__nav-main {
display: grid;
gap: 0.75rem;
grid-template-columns: minmax(0, 1fr) auto !important;
min-height: 4.375rem;
padding: 0.85rem 1rem !important;
padding-left: 1rem !important;
padding-right: 1rem !important;
width: 100%;
}
.site-header__logo {
height: 2.25rem;
margin-left: 1rem;
min-width: 0;
overflow: hidden;
width: 7.25rem;
}
.site-header__logo img {
height: 2.25rem;
max-width: none;
width: auto;
}
.site-header .nav-main {
align-items: center;
display: flex;
justify-content: flex-end;
min-width: 0;
}
.site-header .nav-main__toggle {
align-items: center;
background: var(--color-secondary);
border-radius: 1.4rem 0.35rem 1.4rem 0.35rem;
display: inline-flex;
height: 2.8125rem;
justify-content: center;
margin-block: -0.125rem;
margin-right: 1rem;
padding: 0.65rem 1rem;
width: 4.5rem;
}
.site-header .nav-main__toggle svg {
height: 1.5rem;
width: 1.5rem;
}
.site-header .nav-main__toggle svg,
.site-header .nav-main__toggle path,
.site-header .nav-main__toggle line {
fill: var(--color-white);
stroke: var(--color-white);
}
}