Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 5fb112d

Browse files
committed
feat: update header css to handle redesign
1 parent 15dd462 commit 5fb112d

File tree

8 files changed

+2386
-2035
lines changed

8 files changed

+2386
-2035
lines changed

src/components/Header.js

+7-10
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,14 @@ const Header = ({ hasHeaderBg }) => {
4242
<GlobalHeader
4343
className={mobileMenuActive ? styles.existsInActiveMobileMenu : ''}
4444
css={css`
45-
ul {
46-
line-height: 14px;
47-
font-size: 16px;
45+
.dark-mode & {
46+
/* The header does not change color with the rest of the theme
47+
* This locks those color values specifically for the header. */
48+
--color-neutrals-050: #fafbfb;
49+
--color-neutrals-100: #f4f5f5;
50+
--color-neutrals-500: #b9bdbd;
51+
--color-neutrals-600: #8e9494;
4852
}
49-
50-
a {
51-
border-bottom: none;
52-
}
53-
54-
z-index: 700;
5553
`}
5654
/>
5755
<header
@@ -80,7 +78,6 @@ const Header = ({ hasHeaderBg }) => {
8078
mobileMenuActive ? styles.mobileMenuActive : ''
8179
}`}
8280
>
83-
<DarkModeToggle className={styles.headerDarkModeToggle} />
8481
<button
8582
className={styles.mobileMenuButton}
8683
onClick={() => setMobileMenuActive(!mobileMenuActive)}

src/components/Header.module.scss

+2-8
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ div.exists-in-active-mobile-menu {
133133

134134
.mobile-menu-active {
135135
position: absolute;
136-
top: 0;
136+
top: var(--global-header-height);
137137
right: 0;
138138
bottom: -100vh;
139139
left: 0;
@@ -145,7 +145,7 @@ div.exists-in-active-mobile-menu {
145145
height: 20.5px;
146146
background-size: 20.51px 20.51px;
147147
position: absolute;
148-
top: 50px;
148+
top: 18px;
149149
right: 30px;
150150
background-image: url('../images/icon-menu-close.svg');
151151
}
@@ -190,12 +190,6 @@ div.exists-in-active-mobile-menu {
190190

191191
@media screen and (max-width: 480px) {
192192
.mobile-menu-active {
193-
top: 35px;
194-
195-
.mobile-menu-button {
196-
top: 21px;
197-
}
198-
199193
.header-dark-mode-toggle {
200194
display: block;
201195

0 commit comments

Comments
 (0)