Skip to content

Commit c7dcf19

Browse files
committed
style(docs): add subtle dot grid background to hero section
1 parent f231cef commit c7dcf19

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/.vitepress/theme/styles/main.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
/* Hero Image Shadow */
2+
.VPHero {
3+
position: relative;
4+
}
5+
6+
.VPHero::before {
7+
content: "";
8+
position: absolute;
9+
inset: 0;
10+
z-index: -1;
11+
background-image: radial-gradient(var(--vp-c-brand-soft) 1px, transparent 1px);
12+
background-size: 20px 20px;
13+
mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
14+
-webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
15+
}
16+
217
.VPHero .image-src {
318
filter: drop-shadow(0 0 80px color-mix(in srgb, var(--vp-c-brand-1) 60%, transparent));
419
max-height: 250px;

0 commit comments

Comments
 (0)