Skip to content

Commit

Permalink
feat: add border-gradient css for hero btn
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiGhorbani98 committed Feb 11, 2025
1 parent 3605da3 commit a4f218e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,19 @@
@apply bg-background text-foreground dark:bg-background-dark dark:text-foreground-dark;
}
}
.border-gradient {
border-width: 1px;
border-style: solid;
border-image-source: linear-gradient(
180deg,
rgba(250, 250, 250, 0.2) 0%,
rgba(250, 250, 250, 0.05) 16%,
rgba(250, 250, 250, 0.05) 86%,
rgba(255, 255, 255, 0) 100%
);

border-image-slice: 8;
border-radius: 6px;
-webkit-mask: linear-gradient(white, white);
mask: linear-gradient(white, white);
}

0 comments on commit a4f218e

Please sign in to comment.