Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Adjust close buttons, jquery-ui overrides, and search box tabs

ZachTRice7a0946f75e73
diff --git a/web/css/jquery-ui-override.css b/web/css/jquery-ui-override.css
index 2a0925bce..4dc95919d 100644
--- a/web/css/jquery-ui-override.css
+++ b/web/css/jquery-ui-override.css
@@ -19,3 +19,214 @@ a.ui-button.ui-state-default.ui-state-hover {
background-image: none;
color: #404040;
}
+
+.ui-button {
+ color: #eee;
+}
+
+.wv-menu-item-selected {
+ background: #888;
+ color: #eee;
+}
+
+.ui-menu {
+ position: absolute;
+ width: 150px;
+ padding: 0;
+ z-index: 1000;
+}
+
+/* Allow Font Awesome Icons in lieu of jQuery UI and only apply when using a FA icon
+ * Remove the jQuery UI Icon
+ * Remove the jQuery UI Text Indent
+ */
+.ui-icon[class*=" fa-"] {
+ background: none repeat scroll 0 0 transparent;
+ text-indent: 0;
+}
+
+.ui-button-icon-only .ui-icon[class*=" fa-"] {
+ margin-left: -7px;
+}
+
+.ui-widget-content {
+ background: rgb(40, 40, 40);
+ border: 0;
+ border-radius: 0;
+}
+
+.ui-widget-content.wv-opaque {
+ background: #222;
+}
+
+.ui-dialog {
+ padding: 0;
+ z-index: 600;
+}
+
+.ui-dialog .ui-dialog-content {
+ background-image: none;
+ padding-top: 15px;
+ padding-bottom: 15px;
+}
+
+.ui-corner-all {
+ border-radius: 0;
+}
+
+button.ui-button .ui-icon-closethick {
+ background-position: 0 0;
+ background-image: url("../images/close.png");
+}
+
+button.ui-button:hover .ui-icon-closethick {
+ background-position: 0 0;
+ background-image: url("../images/close-highlight.png");
+}
+
+.ui-tooltip {
+ background: #eee;
+}
+
+.ui-tooltip-content {
+ color: #000;
+}
+
+.link,
+.ui-widget-content a,
+a {
+ color: #7bf;
+ text-decoration: none;
+ cursor: pointer;
+}
+
+.link:hover,
+a:hover {
+ color: #9df;
+}
+
+.ui-menu-item a {
+ color: #fff;
+}
+
+.ui-accordion .ui-accordion-content {
+ background: rgba(0, 0, 0, 0);
+}
+
+.error-icon {
+ margin-right: 10px;
+ vertical-align: middle;
+}
+
+.error-header {
+ margin-top: 5px;
+}
+
+.error-body {
+ margin-top: 10px;
+}
+
+.ui-menu-item {
+ font-size: 13px;
+}
+
+.ui-menu-item i {
+ font-size: 15px;
+}
+
+.iCheck-checkbox {
+ margin: 0 10px;
+ background-position: -24px 0;
+}
+
+.iCheck-radio {
+ background-position: -144px 0;
+}
+
+label {
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+.wv-panel {
+ border: 1px solid #333;
+ box-sizing: content-box;
+}
+
+.wv-panel .ui-dialog-titlebar {
+ background: rgb(40, 40, 40);
+ border: 0;
+ border-bottom-left-radius: 0;
+ border-bottom-right-radius: 0;
+}
+
+.ui-widget-overlay {
+ background: #000;
+ opacity: 0.4;
+}
+
+.ui-widget-header {
+ background: rgb(40, 40, 40);
+}
+
+.ui-widget-header .ui-button {
+ background: none transparent;
+ border: 0;
+}
+
+.ui-widget-header .ui-button:hover {
+ background: #fff;
+}
+
+.wv-panel .ui-dialog-content {
+ padding: 0 1em 1em;
+}
+
+.wv-panel .ui-dialog-title {
+ font-weight: 400;
+ color: #fff;
+}
+
+/* style for UI dialog buttons that are hovered over */
+.ui-widget-content .ui-state-hover {
+ border-color: #eee;
+ background-color: #eee;
+ background-image: none;
+ color: #404040;
+}
+
+/* style for UI info select menu that are hovered over */
+.ui-widget-content .ui-state-focus {
+ border-color: #eee;
+ background-color: #eee;
+ background-image: none;
+ color: #404040;
+}
+
+.ui-widget-content .ui-state-focus.ui-menu-item a {
+ color: #404040;
+}
+
+.ui-state-focus:focus {
+ outline: none !important;
+}
+
+.ui-state-focus a:focus {
+ outline: none !important;
+}
+
+.ui-widget-content .ui-dialog-titlebar-close.ui-state-focus {
+ background: none;
+}
+
+/* Counter intuitive override: All OpenLayers overlays get the
+ol-selectable class added automatically, but we don't want map markers
+or dateline overlays to be selectable. */
+.ol-selectable {
+ -webkit-user-select: none !important;
+ -moz-user-select: none !important;
+ -ms-user-select: none !important;
+ user-select: none !important;
+}
diff --git a/web/css/layers.css b/web/css/layers.css
index a36bdf61a..92c40b75d 100644
--- a/web/css/layers.css
+++ b/web/css/layers.css
@@ -143,6 +143,7 @@
}
.layer-modal .layer-modal-content nav span {
+ display: none;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
@@ -194,9 +195,6 @@
.layer-modal .layer-modal-content .categories-nav .nav-selected {
background: #00457b;
-}
-
-.layer-modal .layer-modal-content .categories-nav .nav-selected span {
color: #fff;
}
@@ -285,13 +283,24 @@
}
.layer-modal-content .categories-nav label {
+ text-transform: capitalize;
+ font-size: 16px;
border: 0;
background: 0;
+ height: 30px;
+ line-height: 30px;
+ padding: 1px 15px;
}
-.layer-modal-content .categories-nav label span {
- text-transform: capitalize;
- font-size: 16px;
+.button-input-scientific {
+ border: 0;
+ clip: rect(0 0 0 0);
+ height: 1px;
+ margin: -1px;
+ overflow: hidden;
+ padding: 0;
+ position: absolute;
+ width: 1px;
}
/* Measurement accordion view */
diff --git a/web/css/main.css b/web/css/main.css
index 937e892f9..d3e5b74ad 100644
--- a/web/css/main.css
+++ b/web/css/main.css
@@ -19,6 +19,7 @@
/* App CSS */
@import url("fonts.css");
@import url("reset.css");
+@import url("jquery-ui-override.css");
@import url("util.css");
@import url("toolbar.css");
@import url("alert.css");
@@ -47,4 +48,4 @@
@import url("tooltip.css");
@import url("mobile.css");
@import url("../pages/css/document.css");
-@import url("jquery-ui-override.css");
+
diff --git a/web/css/reset.css b/web/css/reset.css
index 610568021..fe9488f51 100644
--- a/web/css/reset.css
+++ b/web/css/reset.css
@@ -375,213 +375,3 @@ div.horizontalContainer {
box-sizing: border-box;
}
-.ui-button {
- color: #eee;
-}
-
-.wv-menu-item-selected {
- background: #888;
- color: #eee;
-}
-
-.ui-menu {
- position: absolute;
- width: 150px;
- padding: 0;
- z-index: 1000;
-}
-
-/* Allow Font Awesome Icons in lieu of jQuery UI and only apply when using a FA icon
- * Remove the jQuery UI Icon
- * Remove the jQuery UI Text Indent
- */
-.ui-icon[class*=" fa-"] {
- background: none repeat scroll 0 0 transparent;
- text-indent: 0;
-}
-
-.ui-button-icon-only .ui-icon[class*=" fa-"] {
- margin-left: -7px;
-}
-
-.ui-widget-content {
- background: rgb(40, 40, 40);
- border: 0;
- border-radius: 0;
-}
-
-.ui-widget-content.wv-opaque {
- background: #222;
-}
-
-.ui-dialog {
- padding: 0;
- z-index: 600;
-}
-
-.ui-dialog .ui-dialog-content {
- background-image: none;
- padding-top: 15px;
- padding-bottom: 15px;
-}
-
-.ui-corner-all {
- border-radius: 0;
-}
-
-.ui-state-default .ui-icon-closethick {
- background-position: 0 0;
- background-image: url("../images/close.png");
-}
-
-.ui-state-hover .ui-icon-closethick {
- background-position: 0 0;
- background-image: url("../images/close-highlight.png");
-}
-
-.ui-tooltip {
- background: #eee;
-}
-
-.ui-tooltip-content {
- color: #000;
-}
-
-.link,
-.ui-widget-content a,
-a {
- color: #7bf;
- text-decoration: none;
- cursor: pointer;
-}
-
-.link:hover,
-a:hover {
- color: #9df;
-}
-
-.ui-menu-item a {
- color: #fff;
-}
-
-.ui-accordion .ui-accordion-content {
- background: rgba(0, 0, 0, 0);
-}
-
-.error-icon {
- margin-right: 10px;
- vertical-align: middle;
-}
-
-.error-header {
- margin-top: 5px;
-}
-
-.error-body {
- margin-top: 10px;
-}
-
-.ui-menu-item {
- font-size: 13px;
-}
-
-.ui-menu-item i {
- font-size: 15px;
-}
-
-.iCheck-checkbox {
- margin: 0 10px;
- background-position: -24px 0;
-}
-
-.iCheck-radio {
- background-position: -144px 0;
-}
-
-label {
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
-}
-
-.wv-panel {
- border: 1px solid #333;
- box-sizing: content-box;
-}
-
-.wv-panel .ui-dialog-titlebar {
- background: rgb(40, 40, 40);
- border: 0;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
-}
-
-.ui-widget-overlay {
- background: #000;
- opacity: 0.4;
-}
-
-.ui-widget-header {
- background: rgb(40, 40, 40);
-}
-
-.ui-widget-header .ui-state-default {
- background: none transparent;
- border: 0;
-}
-
-.ui-widget-header .ui-state-hover {
- background: #fff;
-}
-
-.wv-panel .ui-dialog-content {
- padding: 0 1em 1em;
-}
-
-.wv-panel .ui-dialog-title {
- font-weight: 400;
- color: #fff;
-}
-
-/* style for UI dialog buttons that are hovered over */
-.ui-widget-content .ui-state-hover {
- border-color: #eee;
- background-color: #eee;
- background-image: none;
- color: #404040;
-}
-
-/* style for UI info select menu that are hovered over */
-.ui-widget-content .ui-state-focus {
- border-color: #eee;
- background-color: #eee;
- background-image: none;
- color: #404040;
-}
-
-.ui-widget-content .ui-state-focus.ui-menu-item a {
- color: #404040;
-}
-
-.ui-state-focus:focus {
- outline: none !important;
-}
-
-.ui-state-focus a:focus {
- outline: none !important;
-}
-
-.ui-widget-content .ui-dialog-titlebar-close.ui-state-focus {
- background: none;
-}
-
-/* Counter intuitive override: All OpenLayers overlays get the
-ol-selectable class added automatically, but we don't want map markers
-or dateline overlays to be selectable. */
-.ol-selectable {
- -webkit-user-select: none !important;
- -moz-user-select: none !important;
- -ms-user-select: none !important;
- user-select: none !important;
-}
diff --git a/web/css/toolbar.css b/web/css/toolbar.css
index ff017e87a..bedd8eb62 100644
--- a/web/css/toolbar.css
+++ b/web/css/toolbar.css
@@ -19,6 +19,8 @@
margin: 0;
border: 0;
padding: 5.72px 14.3px;
+ background-color: transparent;
+ background-image: none;
}
#wv-toolbar li label span {
@@ -33,7 +35,7 @@
background-image: none;
}
-#wv-toolbar li .ui-state-hover {
+#wv-toolbar li:hover label {
background-color: #fff;
color: #1a1a1a;
}
\ No newline at end of file
diff --git a/web/js/layers/modal.js b/web/js/layers/modal.js
index 754da7bc1..012eceebe 100644
--- a/web/js/layers/modal.js
+++ b/web/js/layers/modal.js
@@ -382,7 +382,7 @@ export function layersModal(models, ui, config) {
$categories.isotope({
filter: '.layer-category-' + interestCssName(metaCategoryName)
});
- $nav.find('.ui-button').removeClass('nav-selected');
+ $nav.find('.layer-category-button').removeClass('nav-selected');
$('label[for=' + $(this).attr('id') + ']').addClass('nav-selected');
});