Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Update sidebar styles #1118

Benjamin King762fe20d9993
diff --git a/web/css/palettes.css b/web/css/palettes.css
index a4dd1b8cf..cba266335 100644
--- a/web/css/palettes.css
+++ b/web/css/palettes.css
@@ -37,11 +37,11 @@
vertical-align: middle;
}
-.sidebar-panel div.wv-palette {
+.wv-palette {
padding-bottom: 2px;
}
-.sidebar-panel div.wv-palettes-legend {
+.wv-palettes-legend {
position: relative;
margin-top: 0;
}
@@ -84,7 +84,7 @@
font-size: 0.7em;
}
-.sidebar-panel div.wv-palettes-title {
+.wv-palettes-title {
margin: 0 auto;
width: 100%;
text-align: center;
@@ -99,7 +99,7 @@
width: auto;
}
-.sidebar-panel div .wv-palettes-panel {
+.wv-palettes-panel {
padding-left: 3px;
padding-right: 5px;
width: auto;
@@ -107,8 +107,8 @@
}
/* Running data specific styles */
-.sidebar-panel div .wv-palettes-panel .wv-running-bar,
-.sidebar-panel div .wv-palettes-panel .wv-running-label {
+.wv-palettes-panel .wv-running-bar,
+.wv-palettes-panel .wv-running-label {
visibility: hidden;
position: absolute;
-webkit-transition-property: left;
@@ -125,15 +125,15 @@
visibility: hidden;
}
-.sidebar-panel div .wv-palettes-panel .wv-running-bar {
+.wv-palettes-panel .wv-running-bar {
top: 0;
width: 1px;
height: 12px;
background: #000;
}
-.sidebar-panel div .wv-palettes-panel .wv-running-bar::after,
-.sidebar-panel div .wv-palettes-panel .wv-running-bar::before {
+.wv-palettes-panel .wv-running-bar::after,
+.wv-palettes-panel .wv-running-bar::before {
content: "";
position: absolute;
width: 0;
@@ -142,7 +142,7 @@
line-height: 0;
}
-.sidebar-panel div .wv-palettes-panel .wv-running-bar::before {
+.wv-palettes-panel .wv-running-bar::before {
top: 6px;
left: -5px;
border-left: 5px solid transparent;
@@ -150,7 +150,7 @@
border-bottom: 5.5px solid #000;
}
-.sidebar-panel div .wv-palettes-panel .wv-running-bar::after {
+.wv-palettes-panel .wv-running-bar::after {
top: 7px;
left: -4px;
border-left: 4px solid transparent;
@@ -158,54 +158,51 @@
border-bottom: 4px solid #dedede;
}
-.sidebar-panel div .wv-palettes-panel .wv-running .wv-palettes-max,
-.sidebar-panel div .wv-palettes-panel .wv-running .wv-palettes-min {
+.wv-palettes-legend.wv-running .wv-palettes-max,
+.wv-palettes-legend.wv-running .wv-palettes-min {
display: none;
}
-.sidebar-panel div .wv-palettes-panel.wv-running .wv-running-category-label {
+.wv-palettes-legend.wv-running .wv-running-category-label {
visibility: visible;
}
-.sidebar-panel .wv-palettes-panel .wv-running .wv-running-bar,
-.sidebar-panel .wv-palettes-panel .wv-running .wv-running-label {
+.wv-palettes-legend.wv-running .wv-running-bar,
+.wv-palettes-legend.wv-running .wv-running-label {
visibility: visible;
}
-.active-lengend .wv-palettes-panel .wv-running .wv-running-bar {
+.active-lengend.wv-palettes-panel .wv-running .wv-running-bar {
visibility: hidden;
}
-.sidebar-panel .wv-palettes-colorbar {
+.wv-palettes-colorbar {
width: 100%;
height: 12px;
border: 1px solid #404040;
margin-bottom: 13px;
}
-.sidebar-panel .wv-palettes-colorbar:hover {
+.wv-palettes-colorbar:hover {
cursor: crosshair;
}
-
-.sidebar-panel .wv-running div.wv-palettes-classes .wv-palettes-class.wv-active {
- opacity: 1;
+.wv-palettes-class {
+ width: 13px;
+ display: inline-block;
+ border: 1px solid #000;
+ margin: 0 2px 15px 2px;
}
-
-.sidebar-panel .wv-running div.wv-palettes-classes .wv-palettes-class {
+.wv-running .wv-palettes-class {
opacity: 0.25;
}
+.wv-running .wv-palettes-class.wv-active {
+ opacity: 1;
+}
.wv-palettes-class:hover {
cursor: crosshair;
}
-.wv-palettes-class {
- width: 13px;
- display: inline-block;
- border: 1px solid #000;
- margin: 0 0 15px 3px;
-}
-
.wv-palettes-class-detail {
margin: 2px 5px 4px 0;
}
diff --git a/web/css/products.css b/web/css/products.css
index 0cc0a663f..5838f6d08 100644
--- a/web/css/products.css
+++ b/web/css/products.css
@@ -88,7 +88,9 @@
background: url("../images/icon-sprite.svg") transparent 0 -10px;
margin: 0 4px 0 0;
}
-
+.ab-tab.active .productsIcon {
+ background-position: 0 20px;
+}
/***********************************Icons***********************************/
.icon-layers {
background-position: 0 -10px;
@@ -98,10 +100,6 @@
background-position: 0 20px;
}
-.ui-state-active .tab:hover .icon-layers {
- background-position: 0 -10px;
-}
-
.icon-download {
background-position: -30px -10px;
}
@@ -110,10 +108,6 @@
background-position: -30px 20px;
}
-.ui-state-active .tab:hover .icon-download {
- background-position: -30px -10px;
-}
-
.icon-download-alt {
background-position: -60px -10px;
}
@@ -126,10 +120,6 @@
background-position: -90px 20px;
}
-.ui-state-active .tab:hover .icon-add {
- background-position: -90px -10px;
-}
-
.icon-add-alt {
background-position: -120px -10px;
}
@@ -141,7 +131,3 @@
.tab:hover .icon-events {
background-position: -150px 20px;
}
-
-.ui-state-active .tab:hover .icon-events {
- background-position: -150px -10px;
-}
diff --git a/web/css/sidebar.css b/web/css/sidebar.css
index c05c7518a..dcc804d76 100644
--- a/web/css/sidebar.css
+++ b/web/css/sidebar.css
@@ -23,6 +23,9 @@
position: relative;
border: 1px solid transparent;
}
+#productsHolder .scrollbar-visible .sidebar-panel {
+ padding-right: 10px;
+}
#productsHolder .main-nav {
background: rgba(40, 40, 40, 0.85);
}
@@ -39,10 +42,13 @@
.nav-tabs {
border-bottom: 3px solid #00457b;
}
+.nav-tabs .nav-link {
+ padding: 0.3rem 0.55rem;
+}
#productsHolder .nav-tabs .disabled {
- cursor: not-allowed;
color: white;
opacity: 0.5;
+ cursor: default;
}
.tab-content .nav-tabs {
@@ -82,7 +88,9 @@ footer .compare-toggle-button {
position: absolute;
right: 5px;
}
-
+.layer-group-case {
+ overflow: hidden;
+}
.wv-ab-mode-selection-case {
margin: 5px;
}