11---
22import SkipToContent from " ./SkipToContent.astro" ;
3- import SidebarToggle from " ./SidebarToggle.jsx" ;
43import Search from " ./Search.jsx" ;
54
65type Props = {
@@ -13,9 +12,6 @@ const { currentPage } = Astro.props;
1312<header >
1413 <SkipToContent />
1514 <nav class =" nav-wrapper" >
16- <div class =" menu-toggle" >
17- <SidebarToggle client:idle />
18- </div >
1915 <div class =" logo flex" >
2016 <a href =" /" >
2117 <img src =" /assets/openapi-ts.svg" />
@@ -38,17 +34,16 @@ const { currentPage } = Astro.props;
3834</header >
3935
4036<style lang =" scss" >
37+ @use '../../tokens' as *;
38+
4139 header {
4240 align-items: center;
43- background-color: var(--theme-navbar-bg);
4441 display: flex;
45- height: var(--theme-navbar-height) ;
42+ height: 3rem ;
4643 justify-content: center;
47- width: 100%;
4844 }
4945
5046 .logo {
51- color: hsla(var(--color-base-white), 100%, 1);
5247 display: flex;
5348 flex: 1;
5449 }
@@ -65,17 +60,10 @@ const { currentPage } = Astro.props;
6560 min-width: 6rem;
6661
6762 a {
68- color: var(--theme-text) ;
63+ color: inherit ;
6964 display: flex;
70- padding: 0.5em 0.25em;
71- margin: -0.5em -0.25em;
72- text-decoration: none;
7365 font-weight: bold;
74-
75- &:hover,
76- &:focus {
77- color: var(--theme-text-accent);
78- }
66+ text-decoration: none;
7967 }
8068
8169 img {
@@ -91,12 +79,17 @@ const { currentPage } = Astro.props;
9179 }
9280
9381 .nav-wrapper {
82+ --padding: 1.5rem;
83+
9484 display: flex;
9585 gap: 0.5rem;
9686 justify-content: flex-end;
97- width: 100%;
98- max-width: 81rem;
99- padding-right: 0.5rem;
87+ margin-left: auto;
88+ margin-right: auto;
89+ max-width: 100%;
90+ padding-left: var(--padding);
91+ padding-right: var(--padding);
92+ width: 81rem;
10093
10194 @media (min-width: 600px) {
10295 gap: 1em;
@@ -111,8 +104,8 @@ const { currentPage } = Astro.props;
111104
112105 /** Style Algolia */
113106 :root {
114- --docsearch-primary-color: var(--theme-accent) ;
115- --docsearch-logo-color: var(--theme-text) ;
107+ --docsearch-primary-color: #{token('color.ui.bg')} ;
108+ --docsearch-logo-color: #{token('color.blue.60')} ;
116109 }
117110
118111 .search-item {
@@ -134,7 +127,7 @@ const { currentPage } = Astro.props;
134127 a {
135128 align-items: center;
136129 align-self: stretch;
137- color: var(--theme-text) ;
130+ color: inherit ;
138131 display: flex;
139132
140133 &:hover {
0 commit comments