Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 9a101b1

Browse files
committed
Fix spacing issues in the header and nav
1 parent 234a0f4 commit 9a101b1

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

components/molecules/Navigation/Navigation.module.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
.navigation {
2-
@apply pt-8;
3-
42
& > ul {
53
@apply flex;
64

components/organisms/Header/Header.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,14 @@ export default function Header() {
1818
const {menus} = useContext(MenuContext)
1919
return (
2020
<header className={styles.header}>
21-
<div className="container flex items-center justify-end">
22-
<div className="relative pb-16">
23-
<AlgoliaSearch
24-
useHistory={true}
25-
usePlaceholder={true}
26-
className="ml-auto"
27-
/>
28-
</div>
21+
<div className={styles.search}>
22+
<AlgoliaSearch
23+
useHistory={true}
24+
usePlaceholder={true}
25+
className="ml-auto"
26+
/>
2927
</div>
30-
<div className="container px-4 lg:px-0 flex items-center justify-between">
28+
<div className={styles.navigation}>
3129
<Logo />
3230
<Navigation
3331
menu={menus?.primary_menu}
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
.header {
2-
@apply sticky top-0 py-20 transition-all z-50 border-b shadow;
2+
@apply sticky top-0 py-8 transition-all z-50 border-b shadow bg-gray-100;
33

4-
background-color: #f7f7f7;
4+
& .search {
5+
@apply container mb-8;
6+
}
7+
8+
& .navigation {
9+
@apply container px-4 lg:px-0 flex items-center justify-between;
10+
}
511
}

0 commit comments

Comments
 (0)