Skip to content

Commit a4f218e

Browse files
feat: add border-gradient css for hero btn
1 parent 3605da3 commit a4f218e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/app/globals.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,19 @@
1010
@apply bg-background text-foreground dark:bg-background-dark dark:text-foreground-dark;
1111
}
1212
}
13+
.border-gradient {
14+
border-width: 1px;
15+
border-style: solid;
16+
border-image-source: linear-gradient(
17+
180deg,
18+
rgba(250, 250, 250, 0.2) 0%,
19+
rgba(250, 250, 250, 0.05) 16%,
20+
rgba(250, 250, 250, 0.05) 86%,
21+
rgba(255, 255, 255, 0) 100%
22+
);
23+
24+
border-image-slice: 8;
25+
border-radius: 6px;
26+
-webkit-mask: linear-gradient(white, white);
27+
mask: linear-gradient(white, white);
28+
}

0 commit comments

Comments
 (0)