Skip to content

Commit

Permalink
add background to raw template and fix so that page doesnt scroll pas…
Browse files Browse the repository at this point in the history
…t it (#1271)
  • Loading branch information
thisisjofrank authored Dec 17, 2024
1 parent f800be1 commit c39771e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ function SidebarCategory(props: {
? (
<SidebarCategory
item={item}
url={props.url}
search={props.search}
url={props.url}
/>
)
: (
Expand Down
8 changes: 7 additions & 1 deletion _includes/raw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Raw(props: Lume.Data, helpers: Lume.Helpers) {
{props.sidebar && (
<>
<aside
class="absolute top-0 bottom-0 -left-74 sidebar-open:left-0 w-74 border-r border-foreground-tertiary bg-background-primary z-50 xl:hidden transition-all"
class="fixed top-0 bottom-0 -left-74 sidebar-open:left-0 w-74 border-r border-foreground-tertiary bg-background-primary z-50 xl:hidden transition-all"
id="sidebar"
data-open="false"
>
Expand Down Expand Up @@ -47,6 +47,12 @@ export default function Raw(props: Lume.Data, helpers: Lume.Helpers) {
url={props.url}
/>
</aside>
<div
class="fixed inset-0 backdrop-brightness-50 z-40 hidden sidebar-open:block sidebar-open:xl:hidden"
id="sidebar-cover"
data-open="false"
>
</div>
</>
)}
<div style={{ scrollbarGutter: "stable" }}>
Expand Down

0 comments on commit c39771e

Please sign in to comment.