Updated PPR banner to not resort on ::before element

This commit is contained in:
scar 2021-12-24 14:54:34 +01:00
parent b9188336da
commit 4d2c0e56f2

View File

@ -4,26 +4,20 @@ domain("ppr-admin.alkemics.com") {
--stripe-size: 100px;
--color1: hsl(194, 71%, 30%);
--color2: hsl(194, 77%, 35%);
--duration: 30s;
--duration: 20s;
}
.Navbar::before {
z-index: -10;
content: "";
position: absolute;
top: 0;
left: 0;
width: calc(100% + var(--stripe-size));
height: 100%;
background: repeating-linear-gradient(-45deg, var(--color2) 25%, var(--color2) 50%, var(--color1) 50%, var(--color1) 75%);
.AuthLayoutFooter,
.Navbar.navbar.Navbar--PPR.bg-inverse {
background: repeating-linear-gradient(-45deg, var(--color2) 25%, var(--color1) 75%);
background-size: var(--stripe-size) var(--stripe-size);
animation: stripeTransform var(--duration) linear infinite;
}
@keyframes stripeTransform {
0% {
transform: translateX(0);
from {
background-position: 0 0;
}
100% {
transform: translateX(calc(var(--stripe-size) * -1));
to {
background-position: var(--stripe-size) 0;
}
}
}