Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

more obvious hover styles

Jason Kenta5dc98fcd439
diff --git a/web/css/layers.css b/web/css/layers.css
index b7519b90a..d9557d2f1 100644
--- a/web/css/layers.css
+++ b/web/css/layers.css
@@ -176,26 +176,16 @@
background-color: #333;
line-height: 0;
transition: background-color 500ms linear;
+}
- &:hover {
- background-color: #3a3a3a;
- transition: background-color 100ms linear;
- box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
- }
-
+.layer-list-container .layers-all-layer {
&.measurement-row {
padding: 0 0 0 8px;
- &:hover {
- background-color: #333;
- }
}
- &.selected {
+ &.search-row.selected {
transition: background-color 300ms linear;
background: #222;
border-left: 8px solid #d54f21;
- &:hover {
- box-shadow: none;
- }
& .layers-all-header > h3 {
color: #fff;
font-weight: 500;
@@ -204,6 +194,18 @@
color: #aaa;
}
}
+ &:hover:not(.selected) {
+ background-color: #3a3a3a;
+ }
+ &.search-row:hover:not(.selected) {
+ transition: background-color 100ms linear;
+ box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
+ top: -1px;
+ left: -1px;
+ & .layers-all-header h3 {
+ color: #fff;
+ }
+ }
}
.layers-all .layers-all-layer:first-of-type {
@@ -971,7 +973,7 @@
padding: 0 2px 0 5px;
&.search {
- width: 50%;
+ width: 40%;
&.mobile {
width: 100%;
}
@@ -1004,7 +1006,7 @@
padding-right: 2px;
&.search {
- width: 50%;
+ width: 60%;
&.mobile {
width: 100%;
margin-top: 10px;
diff --git a/web/js/components/layer/product-picker/search-layer-row.js b/web/js/components/layer/product-picker/search-layer-row.js
index da900efd6..a719033c1 100644
--- a/web/js/components/layer/product-picker/search-layer-row.js
+++ b/web/js/components/layer/product-picker/search-layer-row.js
@@ -73,7 +73,9 @@ class LayerRow extends React.Component {
if (checked) headerClass += ' checked';
const layerTitle = !track ? title : `${title} (${getOrbitTrackTitle(layer)})`;
- const rowClass = isMetadataShowing ? 'layers-all-layer selected' : 'layers-all-layer';
+ const rowClass = isMetadataShowing
+ ? 'search-row layers-all-layer selected'
+ : 'search-row layers-all-layer';
return (
<div className={rowClass}>