Skip to content

Commit

Permalink
fix(theme): homepage mask based on logo vertical centering (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeintea authored Apr 7, 2024
1 parent 0aba13a commit 63107df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-carrots-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rspress/theme-default": patch
---

Homepage mask based on logo vertical centering
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
mixblendmode: normal;
filter: blur(80px);
opacity: 0.05;
top: -100px;
top: 50%;
margin-top: -250px;
transform: translateX(-50%);
z-index: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-default/src/components/HomeHero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function HomeHero({ frontmatter }: { frontmatter: FrontMatterMeta }) {
.filter(text => text !== '')
: [];
return (
<div className="m-auto pt-0 px-6 pb-12 sm:pt-10 sm:px-16 md:pt-16 md:px-16 md:pb-16">
<div className="m-auto pt-0 px-6 pb-12 sm:pt-10 sm:px-16 md:pt-16 md:px-16 md:pb-16 relative">
<div
className={styles.mask}
style={{
Expand Down

0 comments on commit 63107df

Please sign in to comment.