Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix colorbar alignment when scrollbar present

Jason Kent780a12869c78
diff --git a/web/css/palettes.css b/web/css/palettes.css
index e9f3970fa..a54fd709c 100644
--- a/web/css/palettes.css
+++ b/web/css/palettes.css
@@ -32,7 +32,6 @@
.wv-palettes-legend {
position: relative;
margin-top: 0;
- margin-left: 5px;
}
.sidebar-panel div .colorbar-case {
position: relative;
@@ -88,8 +87,7 @@
}
.wv-palettes-panel {
- padding-left: 3px;
- padding-right: 5px;
+ margin: 0 6px;
width: auto;
position: relative;
}
@@ -171,7 +169,8 @@
.wv-palettes-colorbar {
height: 24px;
margin-bottom: 13px;
- max-width: 231px;
+ width: 100%;
+ max-width: 240px;
margin-left: 0;
}
@media (max-width: 768px) {
diff --git a/web/css/sidebar-panel.css b/web/css/sidebar-panel.css
index 54d5b1cea..cdfaad9ba 100644
--- a/web/css/sidebar-panel.css
+++ b/web/css/sidebar-panel.css
@@ -527,6 +527,7 @@ li.item.productsitem.inmotion,
h4 {
font-size: 16px;
padding: 6px 4px 4px;
+ width: calc(100vw - 85px);
}
p {
font-size: 12px;
@@ -551,9 +552,10 @@ li.item.productsitem.inmotion,
min-height: 44px;
.layer-buttons {
height: 26px;
- width: 40px;
+ width: 26px;
+ background: #ccc;
.wv-layers-close {
- height: 20px;
+ height: 25px;
width: 25px;
svg.svg-inline--fa {
font-size: 20px;
@@ -561,6 +563,9 @@ li.item.productsitem.inmotion,
}
}
}
+ &.layer-hidden .layer-info .layer-buttons {
+ background: #666;
+ }
.layer-eye-icon {
top: 50%;
font-size: 26px;