@@ -117,10 +117,6 @@ html[data-theme-override="light"] {
117117 --ifm-navbar-background-color : #fff ;
118118}
119119
120- .docs-wrapper .navbar__items {
121- // @apply bg-white dark:bg-neutral-950;
122- }
123-
124120.docs-wrapper .main-wrapper ,
125121.blog-wrapper .main-wrapper {
126122 max-width : var (--max-width );
@@ -143,6 +139,11 @@ html[data-theme-override="light"] {
143139 will-change : transform ;
144140 @apply justify-center px-0 text-neutral-600 shadow-none dark :fill- white dark :text- neutral- 400;
145141
142+ .navbar__items {
143+ position : relative ;
144+ --ifm-navbar-padding-horizontal : 1.5rem ;
145+ }
146+
146147 .navbar__inner {
147148 max-width : var (--max-width );
148149 padding : 0 2rem ;
@@ -200,11 +201,20 @@ html[data-theme-override="light"] {
200201 }
201202
202203 .DocSearch-Button {
203- @apply mr-6 h-8 w-40 scale-110 rounded-lg bg-transparent font-normal text-neutral-500 hover :bg- neutral- 200 hover:text- neutral- 500 hover:shadow- none md:scale - 100 md:bg- neutral- 100 md:text- neutral- 500 lg:mr- 0 xl:w- 80 dark :bg- transparent dark :text- neutral- 400 dark :hover :bg- neutral- 800/ 80 dark :md:bg- neutral- 800/ 50 ;
204+ @apply mr-3 flex h-8 w-8 items-center justify-center rounded-lg bg-transparent p-0 text-neutral-500 hover :bg- neutral- 100 hover:text- neutral- 900 hover:shadow- none md:mr - 6 md:w - 40 md:justify - start md: bg- neutral- 100 md:px - 3 md:font - normal md: text- neutral- 500 md:hover:bg - neutral - 200 lg:mr- 0 xl:w- 80 dark :text - neutral - 400 dark :hover: bg- neutral - 200 / 10 dark :hover: text- neutral- 300 dark :md :bg- neutral- 800/ 50 dark :md:hover: bg- neutral- 800/ 80 ;
204205 font-family : Jost;
205206
206- svg {
207- @apply w-4 text-current ;
207+ .DocSearch-Button-Container {
208+ @apply flex h-full w-full items-center justify-center md :justify- start;
209+ }
210+
211+ .DocSearch-Search-Icon {
212+ @apply m-0 h-4 w-4 shrink-0 text-current ;
213+ }
214+
215+ .DocSearch-Button-Placeholder ,
216+ .DocSearch-Button-Keys {
217+ @apply hidden md :flex ;
208218 }
209219
210220 .DocSearch-Button-Key {
@@ -239,6 +249,52 @@ html[data-theme-override="light"] {
239249 }
240250 }
241251
252+ .header-github-link svg ,
253+ .header-sourcecraft-link svg {
254+ display : none !important ;
255+ }
256+
257+ .header-github-link ,
258+ .header-sourcecraft-link ,
259+ .color-mode-toggle {
260+ @apply mx-0 .5 items-center gap- [5px ] rounded-lg lg :flex lg:h- 8 lg:w- 8 lg:justify- center lg:gap- 0 lg:p- 0 lg:text- [0px ];
261+ }
262+
263+ /* .header-github-link,
264+ .header-sourcecraft-link {
265+ font-size: 0;
266+ }*/
267+
268+ .color-mode-toggle .clean-btn {
269+ @apply flex h-full w-full items-center justify-center rounded-lg p- 0;
270+ }
271+
272+ .color-mode-toggle :hover ,
273+ .color-mode-toggle .clean-btn :hover {
274+ @apply bg-neutral-100 dark :bg- neutral- 200/ 10 ;
275+ }
276+
277+ .header-github-link ::before ,
278+ .header-sourcecraft-link ::before {
279+ content : " " ;
280+ display : block ;
281+ width : 1rem ;
282+ height : 1rem ;
283+ background-color : currentColor ;
284+ background-repeat : no-repeat ;
285+ background-position : center ;
286+ background-size : contain ;
287+ }
288+
289+ .header-github-link ::before {
290+ mask : url (" ../../static/icons/github.svg" ) no-repeat center / contain ;
291+ }
292+
293+ .header-sourcecraft-link ::before {
294+ mask : url (" ../../static/icons/sourcecraft-light-theme.svg" ) no-repeat center / contain ;
295+ transform : scale (1.5 );
296+ }
297+
242298 .navbar__brand {
243299 @apply px-2 font-mono ;
244300 }
0 commit comments