Review adjustments (#11)
This commit is contained in:
@@ -77,3 +77,80 @@
|
||||
.styledH4 {
|
||||
@apply text-base font-medium;
|
||||
}
|
||||
|
||||
/* Card border gradient */
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
background: #222;
|
||||
}
|
||||
|
||||
.gradient-border {
|
||||
--radius: 5px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: white;
|
||||
background: #222;
|
||||
border-radius: var(--radius);
|
||||
|
||||
&::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
top: calc(-1 * var(--radius));
|
||||
left: calc(-1 * var(--radius));
|
||||
z-index: -1;
|
||||
width: calc(100% + var(--radius) * 2);
|
||||
height: calc(100% + var(--radius) * 2);
|
||||
background: linear-gradient(
|
||||
60deg,
|
||||
hsl(224, 85%, 66%),
|
||||
hsl(269, 85%, 66%),
|
||||
hsl(314, 85%, 66%),
|
||||
hsl(359, 85%, 66%),
|
||||
hsl(44, 85%, 66%),
|
||||
hsl(89, 85%, 66%),
|
||||
hsl(134, 85%, 66%),
|
||||
hsl(179, 85%, 66%)
|
||||
);
|
||||
background-size: 300% 300%;
|
||||
background-position: 0 50%;
|
||||
border-radius: calc(2 * var(--radius));
|
||||
animation: moveGradient 4s alternate infinite;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes moveGradient {
|
||||
50% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Button gradient */
|
||||
.btn-grad {
|
||||
background-image: linear-gradient(
|
||||
to right,
|
||||
#da22ff 0%,
|
||||
#9733ee 51%,
|
||||
#da22ff 100%
|
||||
);
|
||||
padding: 10px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
transition: 0.5s;
|
||||
background-size: 200% auto;
|
||||
color: white;
|
||||
box-shadow: 0 0 20px #eee;
|
||||
border-radius: 10px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.btn-grad:hover {
|
||||
background-position: right center;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user