File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ const [product, module] = Astro.url.pathname.split("/").filter(Boolean);
2626 <input
2727 type =" search"
2828 id =" sidebar-search"
29- placeholder =" Search..."
29+ placeholder =" Search sidebar ..."
3030 aria-label =" Search sidebar navigation"
3131 autocomplete =" off"
3232 spellcheck =" false"
33- class =" box-border min-h-[2.125rem] w-full rounded-lg border border-neutral-200 bg-transparent px-3 pr-10 text-sm text-neutral-950 placeholder-neutral-400 outline-2 outline-offset-2 outline-transparent transition-colors duration-150 focus- visible:outline-blue-500 dark:border-neutral-700 dark:text-neutral-100 dark:placeholder-neutral-500 dark:focus-visible:outline-blue-400"
33+ class =" box-border min-h-[2.125rem] w-full cursor-pointer rounded-lg border border-neutral-200 bg-transparent px-3 pr-10 text-sm text-neutral-950 placeholder-neutral-400 outline-2 outline-offset-2 outline-transparent transition-colors duration-150 hover:border-neutral-950 focus:cursor-text focus- visible:outline-blue-500 dark:border-neutral-700 dark:text-neutral-100 dark:placeholder-neutral-500 dark:hover:border-neutral-100 dark:focus-visible:outline-blue-400"
3434 />
3535 <div class =" sidebar-search-icon" ></div >
3636 </div >
Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ const restoreIndices = sublist.map((entry) =>
5252 href = { entry .href }
5353 aria-current = { entry .isCurrent ? " page" : undefined }
5454 class :list = { [
55- " flex min-h-[2.125rem] items-start rounded-lg px-3 py-1.5 text-sm font-medium no-underline transition-colors duration-150 " ,
55+ " flex min-h-[2.125rem] items-start rounded-lg px-3 py-1.5 text-sm font-medium no-underline" ,
5656 " outline-2 outline-offset-[-2px] outline-transparent focus-visible:outline-blue-500 dark:focus-visible:outline-blue-400" ,
57- " text-[var(--sidebar-text)] hover:bg-[var(--sidebar-hover-bg)] hover:text-[var(--sidebar-hover-text)] " ,
58- entry . isCurrent &&
59- " ! bg-[var(--sidebar-active -bg)] !font-semibold ! text-[var(--sidebar-active -text)]" ,
57+ entry . isCurrent
58+ ? " !bg-[var(--sidebar-active-bg)] !font-semibold !text-[var(--sidebar-active-text)] "
59+ : " transition-colors duration-150 text-[var(--sidebar-text)] hover: bg-[var(--sidebar-hover -bg)] hover: text-[var(--sidebar-hover -text)]" ,
6060 ! nested && " large" ,
6161 entry .attrs .class ,
6262 ]}
Original file line number Diff line number Diff line change 5757 --sl-color-hairline-shade : var (--color-cl1-gray-2 );
5858 --sidebar-text : var (--color-cl1-gray-7 );
5959 --sidebar-text-strong : var (--color-cl1-white );
60- --sidebar-hover-bg : var (--sidebar-orange-accent-600 );
61- --sidebar-hover-text : var (--orange-accent-200 );
62- --sidebar-active-bg : var (--sidebar-orange-accent-600 );
63- --sidebar-active-text : var (--orange-accent-200 );
60+ --sidebar-hover-bg : var (--color-cl1-gray-2 );
61+ --sidebar-hover-text : var (--sidebar-text-strong );
62+ --sidebar-active-bg : var (--color-cl1-gray-2 );
63+ --sidebar-active-text : var (--sidebar-text-strong );
6464 --sidebar-border : var (--color-cl1-gray-2 );
65- --sl-color-sidebar-active : var (--orange-accent-200 );
66- --sl-color-sidebar-hover : var (--sidebar-orange-accent-600 );
65+ --sl-color-sidebar-active : var (--sidebar-text-strong );
66+ --sl-color-sidebar-hover : var (--color-cl1-gray-2 );
6767}
You can’t perform that action at this time.
0 commit comments