Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Allowed keyframes in stylelint. Resolved lint errors within smart-handoffs CSS.

Stephan Wlodarczyk123f4c320284
diff --git a/.stylelintrc b/.stylelintrc
index 5a0db9485..357707176 100644
--- a/.stylelintrc
+++ b/.stylelintrc
@@ -42,7 +42,7 @@
"selector-max-id": 2,
"selector-max-universal": 1,
"selector-no-vendor-prefix": true,
- "at-rule-allowed-list": ["media", "charset", "font-face", "import", "document"],
+ "at-rule-allowed-list": ["media", "charset", "font-face", "import", "document", "keyframes"],
"at-rule-no-vendor-prefix": true,
"color-hex-case": "lower",
"color-hex-length": "short",
diff --git a/web/css/smart-handoff.css b/web/css/smart-handoff.css
index 045a48a8c..96eb8cbd3 100644
--- a/web/css/smart-handoff.css
+++ b/web/css/smart-handoff.css
@@ -82,14 +82,17 @@ label[for='chk-crop-toggle'] {
font-size: 30px;
}
-.loading-granule-count:after {
+.loading-granule-count::after {
overflow: hidden;
display: inline-block;
vertical-align: bottom;
+ -moz-animation: ellipsis steps(4, end) 900ms infinite;
+ -o-animation: ellipsis steps(4, end) 900ms infinite;
+ -ms-animation: ellipsis steps(4, end) 900ms infinite;
-webkit-animation: ellipsis steps(4, end) 900ms infinite;
animation: ellipsis steps(4, end) 900ms infinite;
content: '\2026'; /* ascii code for the ellipsis character */
- width: 0px;
+ width: 0;
}
@keyframes ellipsis {
@@ -98,19 +101,6 @@ label[for='chk-crop-toggle'] {
}
}
-@-webkit-keyframes ellipsis {
- to {
- width: 1.25em;
- }
-}
-
-.fade-in {
- animation: fadein ease 1s;
- -webkit-animation: fadein ease 1s;
- -moz-animation: fadein ease 1s;
- -o-animation: fadein ease 1s;
- -ms-animation: fadein ease 1s;
-}
@keyframes fadein {
0% {
opacity: 0;
@@ -120,40 +110,12 @@ label[for='chk-crop-toggle'] {
}
}
-@-moz-keyframes fadein {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
-}
-
-@-webkit-keyframes fadein {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
-}
-
-@-o-keyframes fadein {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
-}
-
-@-ms-keyframes fadein {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
+.fade-in {
+ animation: fadein ease 1s;
+ -webkit-animation: fadein ease 1s;
+ -moz-animation: fadein ease 1s;
+ -o-animation: fadein ease 1s;
+ -ms-animation: fadein ease 1s;
}
/** Overrides react image crop component **/