-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Selemon Dev
committed
Mar 13, 2024
1 parent
8f9f57c
commit 39d845f
Showing
4 changed files
with
479 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,75 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
body { | ||
width: 100vw; | ||
position: relative; | ||
height: 100vh; | ||
width: 100vw; | ||
position: relative; | ||
background: black; | ||
height: 100vh; | ||
font-family: sans-serif; | ||
overflow-y: hidden; | ||
} | ||
|
||
.gradient-border { | ||
position: relative; | ||
border-radius: 0.5rem; | ||
-webkit-backdrop-filter: blur(10px); | ||
backdrop-filter: blur(10px); | ||
width: full; | ||
} | ||
@media (prefers-color-scheme: light) { | ||
.gradient-border { | ||
background-color: rgba(255, 255, 255, 0.3); | ||
} | ||
.gradient-border::before { | ||
background: linear-gradient( | ||
90deg, | ||
#e2e2e2 0%, | ||
#e2e2e2 25%, | ||
#00dc82 50%, | ||
#36e4da 75%, | ||
#0047e1 100% | ||
); | ||
} | ||
} | ||
@media (prefers-color-scheme: dark) { | ||
.gradient-border { | ||
background-color: rgba(20, 20, 20, 0.3); | ||
} | ||
.gradient-border::before { | ||
background: linear-gradient( | ||
90deg, | ||
#303030 0%, | ||
#303030 25%, | ||
#00dc82 50%, | ||
#36e4da 75%, | ||
#0047e1 100% | ||
); | ||
} | ||
} | ||
.gradient-border::before { | ||
content: ''; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
border-radius: 0.5rem; | ||
padding: 2px; | ||
width: 100%; | ||
background-size: 400% auto; | ||
background-position: 0 0; | ||
opacity: 0.5; | ||
transition: background-position 0.3s ease-in-out, opacity 0.2s ease-in-out; | ||
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); | ||
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); | ||
-webkit-mask-composite: xor; | ||
mask-composite: exclude; | ||
z-index: -1; | ||
} | ||
.gradient-border:hover::before { | ||
background-position: -50% 0; | ||
opacity: 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.