Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Prevent use of rem units, converted current units to px

ZachTRiced3243f617e88
diff --git a/.stylelintrc b/.stylelintrc
index fa76df990..b65f0a5f5 100644
--- a/.stylelintrc
+++ b/.stylelintrc
@@ -31,6 +31,7 @@
"no-unknown-animations": true,
"color-named": never,
"number-max-precision": 6,
+ "unit-blacklist": ['rem'],
"max-empty-lines": 1,
}
}
diff --git a/web/css/wv.anim.widget.css b/web/css/wv.anim.widget.css
index 4d7a7c4c9..fbace9108 100644
--- a/web/css/wv.anim.widget.css
+++ b/web/css/wv.anim.widget.css
@@ -222,14 +222,14 @@
border-radius: 100%;
cursor: pointer;
display: block;
- height: 1rem;
- margin-left: -0.5rem;
- margin-top: -0.65rem;
+ height: 13px;
+ margin-left: -6.5px;
+ margin-top: -8.45px;
outline: none;
position: absolute;
top: 50%;
transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, -webkit-transform 0.3s ease-out, -webkit-box-shadow 0.3s ease-out;
- width: 1rem;
+ width: 13px;
}
.input-range__slider:active {
@@ -259,7 +259,7 @@
.input-range__label {
color: #ffffff;
font-family: 'Open Sans', san-serif;
- font-size: 0.9rem;
+ font-size: 12px;
white-space: nowrap;
}
@@ -270,7 +270,7 @@
.input-range__label--value {
position: absolute;
- top: -1.8rem;
+ top: -24px;
}
.input-range__label-container {
@@ -284,9 +284,9 @@
.input-range__track {
background: #eeeeee;
- border-radius: 0.3rem;
+ border-radius: 4px;
display: block;
- height: 0.2rem;
+ height: 2.6px;
position: relative;
-webkit-transition: left 0.3s ease-out, width 0.3s ease-out;
transition: left 0.3s ease-out, width 0.3s ease-out;
@@ -298,7 +298,7 @@
.input-range__track--container {
left: 0;
- margin-top: -0.15rem;
+ margin-top: -2px;
position: absolute;
right: 0;
top: 50%;
@@ -306,7 +306,7 @@
.input-range {
cursor: pointer;
- height: 1rem;
+ height: 13px;
position: relative;
width: 152px;
}