Renamed animation and removed ::before specifics rules

This commit is contained in:
scar 2021-12-24 15:04:38 +01:00
parent 428180de22
commit e45531486a
3 changed files with 12 additions and 24 deletions

View File

@ -6,19 +6,13 @@ domain("ltg-admin.alkemics.com") {
--color2: hsl(261, 80%, 59%);
--duration: 30s;
}
.Navbar::before {
z-index: -10;
content: "";
position: absolute;
top: 0;
left: 0;
width: calc(100% + var(--stripe-size));
height: 100%;
.AuthLayoutFooter,
.Navbar.navbar.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;
animation: alkegrad var(--duration) linear infinite;
}
@keyframes stripeTransform {
@keyframes alkegrad {
from {
background-position: 0 0;
}

View File

@ -1,23 +1,17 @@
@-moz-document domain("int.alkemics.com") {
:root {
--stripe-size: 100px;
--color1: hsl(195, 70%, 45%);
--color2: hsl(195, 70%, 50%);
--color1: hsl(205, 70%, 45%);
--color2: hsl(205, 70%, 50%);
--duration: 30s;
}
.Navbar::before {
z-index: -10;
content: "";
position: absolute;
top: 0;
left: 0;
width: calc(100% + var(--stripe-size));
height: 100%;
.AuthLayoutFooter,
.Navbar.navbar.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;
animation: alkegrad var(--duration) linear infinite;
}
@keyframes stripeTransform {
@keyframes alkegrad {
from {
background-position: 0 0;
}

View File

@ -10,9 +10,9 @@ domain("ppr-admin.alkemics.com") {
.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;
animation: alkegrad var(--duration) linear infinite;
}
@keyframes stripeTransform {
@keyframes alkegrad {
from {
background-position: 0 0;
}