Skip to content

Commit

Permalink
- small tweaks to the left sidebar on docs pages to have it a bit mor…
Browse files Browse the repository at this point in the history
…e consistent on light and dark mode with the slightly different bg color than the body
  • Loading branch information
jasonbahl committed Jan 9, 2024
1 parent 342135e commit 55dd48a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function Layout({ data, children, toc, title }) {
<main className='content'>
<div className="relative mx-auto flex max-w-8xl justify-center sm:px-2 lg:px-8 xl:px-12">
<div className="hidden lg:relative lg:block lg:flex-none">
<div className="absolute inset-y-0 right-0 w-[50vw] bg-slate-50 dark:hidden" />
<div className="absolute inset-y-0 right-0 w-[50vw] bg-slate-50 dark:bg-gray-800/25" />
<div className="absolute bottom-0 right-0 top-16 hidden h-12 w-px bg-gradient-to-t from-slate-800 dark:block" />
<div className="absolute bottom-0 right-0 top-28 hidden w-px bg-slate-800 dark:block" />
<div className="sticky top-[4.5rem] -ml-0.5 h-[calc(100vh-4.5rem)] w-64 overflow-y-auto overflow-x-hidden py-16 pl-0.5 pr-8 xl:w-72 xl:pr-16">
Expand Down
2 changes: 1 addition & 1 deletion components/SiteHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function SiteHeader({ navigation, isNoticeVisible = false }) {
'z-40 flex flex-wrap items-center justify-between bg-white px-4 py-5 shadow-md shadow-slate-900/5 transition duration-500 dark:shadow-none sm:px-6 lg:px-8',
isScrolled
? 'dark:bg-slate-900/95 dark:backdrop-blur dark:[@supports(backdrop-filter:blur(0))]:bg-slate-900/75'
: 'dark:bg-transparent',
: 'dark:bg-slate-900',
)}
>
<div className="mr-6 flex lg:hidden">
Expand Down

0 comments on commit 55dd48a

Please sign in to comment.