Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Rework JS targeting '.ui-button-text' and adjust styles

ZachTRicef3beb73118a9
diff --git a/web/css/layers.css b/web/css/layers.css
index 92c40b75d..fdb52f3a3 100644
--- a/web/css/layers.css
+++ b/web/css/layers.css
@@ -144,13 +144,10 @@
.layer-modal .layer-modal-content nav span {
display: none;
- box-sizing: border-box;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- -o-box-sizing: border-box;
- height: 30px;
- line-height: 30px;
- padding: 1px 15px;
+}
+
+.layer-modal .layer-modal-content nav.category-breadcrumb span {
+ display: inline;
}
.layer-modal .layer-modal-content .category-breadcrumb span {
@@ -283,13 +280,21 @@
}
.layer-modal-content .categories-nav label {
- text-transform: capitalize;
+ color: #383838;
+ font-family: "Open Sans", sans-serif;
font-size: 16px;
+ font-weight: 300;
+ text-transform: capitalize;
border: 0;
background: 0;
- height: 30px;
+ height: 32px;
line-height: 30px;
padding: 1px 15px;
+ vertical-align: middle;
+}
+
+.layer-modal-content .categories-nav label:hover {
+ cursor: pointer;
}
.button-input-scientific {
@@ -439,8 +444,9 @@
.layer-modal-content .selected-category .ui-tabs .ui-tabs-nav li {
max-width: 200px;
- border-left: 10px solid transparent;
- margin: 0;
+ border: transparent;
+ background: none;
+ margin: 0 0 0 10px;
padding: 0;
clear: both;
box-sizing: border-box;
@@ -466,6 +472,7 @@
.layer-modal-content .selected-category .ui-tabs-nav li.ui-tabs-active {
background: rgba(255, 255, 255, 0.9);
+ margin-left: 0;
border-left: 10px solid #d54e21;
}
diff --git a/web/css/sidebar.css b/web/css/sidebar.css
index ca3c4049c..a611ae25b 100644
--- a/web/css/sidebar.css
+++ b/web/css/sidebar.css
@@ -57,6 +57,7 @@
}
#productsHolder footer .action:hover {
+ color: #333;
background: #ccc;
}
@@ -64,7 +65,7 @@
background-color: #000;
color: #bebebe;
opacity: 1;
- border-color: #666;
+ border: 1px solid #666;
}
#productsHolder footer .action.ui-state-hover {
diff --git a/web/css/toolbar.css b/web/css/toolbar.css
index bedd8eb62..9903d5807 100644
--- a/web/css/toolbar.css
+++ b/web/css/toolbar.css
@@ -38,4 +38,17 @@
#wv-toolbar li:hover label {
background-color: #fff;
color: #1a1a1a;
+}
+
+.wv-menu .ui-menu .ui-menu-item a {
+ border: 0;
+ margin: 0;
+}
+
+.wv-menu .ui-menu .ui-menu-item .ui-state-active,
+.wv-menu .ui-menu .ui-menu-item a:hover,
+.wv-menu .ui-menu .ui-menu-item a:focus {
+ color: #333;
+ background: #eee;
+ border: 0;
}
\ No newline at end of file
diff --git a/web/js/data/ui.js b/web/js/data/ui.js
index 76ae82b76..376a43f62 100644
--- a/web/js/data/ui.js
+++ b/web/js/data/ui.js
@@ -343,16 +343,13 @@ export function dataUi(models, ui, config) {
var totalSize = model.getSelectionSize();
if (totalSize) {
var formattedSize = Math.round(totalSize * 100) / 100;
- $button.find('.ui-button-text')
- .html('Download Data (' + formattedSize + ' MB)');
+ $button.html('Download Data (' + formattedSize + ' MB)');
} else {
- $button.find('.ui-button-text')
- .html('Download Selected Data');
+ $button.html('Download Selected Data');
}
} else {
$button.button('disable');
- $button.find('.ui-button-text')
- .html('No Data Selected');
+ $button.html('No Data Selected');
}
var counts = model.getSelectionCounts();