Skip to content

Commit

Permalink
fix: preventing the background gradient from stretching with the cont…
Browse files Browse the repository at this point in the history
…ent.
  • Loading branch information
brnovasco committed May 21, 2024
1 parent 7f001f2 commit 131861e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion apps/docs/app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@
hsl(225deg 75% 15%) 32%,
hsl(236deg 42% 7%) 67%
);

--primary: 259deg 81% 66%;
}

/* preventing the background gradient from stretching with the content */
body::before, .dark::before {
content: "";
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-image: var(--background-image);
background-size: cover;
background-attachment: fixed;
z-index: -1;
}

0 comments on commit 131861e

Please sign in to comment.