Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix zoom buttons

ZachTRice42ba5a162e88
diff --git a/package-lock.json b/package-lock.json
index f22b83f38..6e49347bf 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7329,6 +7329,11 @@
"resolved": "https://registry.npmjs.org/jquery-jcrop/-/jquery-jcrop-0.9.13.tgz",
"integrity": "sha1-zajJVX//xWVAAIzHtikaDsQHG/U="
},
+ "jquery-ui": {
+ "version": "1.10.4",
+ "resolved": "https://registry.npmjs.org/jquery-ui/-/jquery-ui-1.10.4.tgz",
+ "integrity": "sha1-oJb+X04PKraaBYXPEEVYd/V1Br0="
+ },
"jquery-ui-bundle": {
"version": "1.12.1-migrate",
"resolved": "https://registry.npmjs.org/jquery-ui-bundle/-/jquery-ui-bundle-1.12.1-migrate.tgz",
diff --git a/package.json b/package.json
index 1ee9763ae..29073820a 100644
--- a/package.json
+++ b/package.json
@@ -134,6 +134,7 @@
"isotope-packery": "2.x.x",
"jquery": "^2.1.4",
"jquery-jcrop": "^0.9.13",
+ "jquery-ui": "1.10.4",
"jquery-ui-bundle": "1.12.1-migrate",
"jquery-ui-touch-punch": "0.2.3",
"jquery.joyride": "git+https://[email protected]/nasa-gibs/joyride.git",
diff --git a/web/css/main.css b/web/css/main.css
index 5cf540648..9846b13f6 100644
--- a/web/css/main.css
+++ b/web/css/main.css
@@ -1,6 +1,8 @@
/* Dependency CSS */
@import url("../../node_modules/bootstrap/dist/css/bootstrap.css");
@import url("../../node_modules/font-awesome/css/font-awesome.css");
+/* @import url("../../node_modules/jquery-ui-bundle/jquery-ui.structure.css"); */
+/* @import url("../../node_modules/jquery-ui-bundle/jquery-ui.theme.css"); */
@import url("../../node_modules/jquery-ui/themes/base/jquery-ui.css");
@import url("../../node_modules/jquery-ui/themes/ui-darkness/jquery-ui.css");
@import url("../../node_modules/icheck/skins/square/grey.css");
diff --git a/web/css/map.css b/web/css/map.css
index 7cf3c1b19..f14c21c0f 100644
--- a/web/css/map.css
+++ b/web/css/map.css
@@ -23,16 +23,18 @@
opacity: 0.4;
}
-.wv-map-zoom .ui-button-text {
+.wv-map-zoom .fa {
padding: 1em;
+ display: block;
+ line-height: normal;
}
-.wv-map-zoom.ui-state-default {
+.wv-map-zoom {
background: none rgba(40, 40, 40, 0.85);
border: 1px solid #333;
}
-.wv-map-zoom.ui-state-hover {
+.wv-map-zoom:hover {
background-color: #fff;
color: #1a1a1a;
border: 1px solid #333;