Set envs to animate on loading only (except PROD) (#18)
Simply update the code with what i've been using lately so it only animate when the `.Loader` is created by react. Except for PROD where animation runs anytime. Use both the new `:has()` pseudo-class and fallback to regular `:not(:only-child())` for unsupported browser (Firefox)
This commit is contained in:
@@ -1,18 +1,22 @@
|
||||
@-moz-document domain("app.supplierxm.salsify.com"),
|
||||
domain("admin.supplierxm.salsify.com") {
|
||||
|
||||
.AuthLayoutFooter,
|
||||
.Navbar.navbar.bg-inverse {
|
||||
background: linear-gradient(-45deg, rgb(60, 180, 255),rgb(46, 112, 255), rgb(118, 55, 252));
|
||||
background: linear-gradient(-45deg, rgb(60, 180, 255), rgb(46, 112, 255), rgb(118, 55, 252));
|
||||
background-size: 200% 100% !important;
|
||||
animation: salsigrad 60s linear infinite !important;
|
||||
}
|
||||
|
||||
@keyframes salsigrad {
|
||||
0% {
|
||||
background-position: 0% 0%;
|
||||
}
|
||||
|
||||
50% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 0% 0%;
|
||||
}
|
||||
|
Reference in New Issue
Block a user