Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

wv-2710: CSS adjustments to fix compare mode hover palette (#4294)

Tom Carielloe9398e5798ad
diff --git a/web/scss/features/compare.scss b/web/scss/features/compare.scss
index 26296665a..02f55ed78 100644
--- a/web/scss/features/compare.scss
+++ b/web/scss/features/compare.scss
@@ -165,6 +165,25 @@
span {
padding-bottom: 2px;
}
+
+ &.nav-link {
+ &.first-tab, &.second-tab {
+ background-color: #28292a;
+ }
+
+ &.active {
+ background-color: #fff;
+ }
+
+ // Toggle layer icon color on hover by repositioning the SVG
+ &:not(.active):hover > i {
+ background-position: 0 -10px;
+ }
+
+ &:not(.active):hover {
+ background-color: #404542;
+ }
+ }
}
/* Mobile */
@@ -198,7 +217,7 @@
border-bottom-right-radius: 5px;
}
- &:hover:not(.compare-btn-selected) {
+ .active.nav-link:not(.compare-btn-selected) {
border-color: #fff;
}
}
diff --git a/web/scss/features/sidebar.scss b/web/scss/features/sidebar.scss
index 572051cae..86bacf4aa 100644
--- a/web/scss/features/sidebar.scss
+++ b/web/scss/features/sidebar.scss
@@ -78,7 +78,7 @@
height: 32px;
}
- .nav-item a:hover {
+ .nav-item a:not(.active):hover {
color: #fff !important;
}
@@ -88,6 +88,7 @@
.tab-content .nav-tabs {
border-bottom: 3px solid #dee2e6;
+ padding-bottom: 4px;
}
.nav-item {