Skip to content

Commit

Permalink
fix padding and zindex on schedule sticky header
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianleb authored and kuzdogan committed May 25, 2024
1 parent 0e8ccc6 commit d688db2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/schedule.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ const Program = () => {
{/* Hacker Essentials vs Extravaganza */}

<div
className={`flex items-center justify-center w-full sticky -top-1 py-4 text-center ${
className={`flex items-center justify-center w-full sticky -top-1 py-4 text-center schedule-sticky ${
isSticky ? "bg-white" : ""
}`}
ref={toggleRef}
Expand Down
8 changes: 7 additions & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@
@apply bg-[rgba(255,255,255,0.65)] p-6; /* Customize as needed */
}


.schedule-sticky {
width: calc(100% + 3rem);
margin-left: -1.5rem;
z-index: 2;
}
body {
margin: 0;
-webkit-font-smoothing: antialiased;
Expand Down Expand Up @@ -178,7 +184,7 @@ body::before {
}
}

/*
/*
#__gatsby, #gatsby-focus-wrapper {
height: 100vh; */
/* background: url(grain-opacity.png), linear-gradient(5deg, #3A2F18 -25%, #0E0C06 15% ); */
Expand Down

0 comments on commit d688db2

Please sign in to comment.