Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Position active zoom into timeline bar and style

ZachTRice87e46f0ab60f
diff --git a/web/css/dateselector.css b/web/css/dateselector.css
index d8798fcba..f66ce7c87 100644
--- a/web/css/dateselector.css
+++ b/web/css/dateselector.css
@@ -64,7 +64,7 @@
}
.button-action-group {
- height: 60px;
+ height: 40px;
width: 40px;
vertical-align: middle;
position: relative;
diff --git a/web/css/timeline.css b/web/css/timeline.css
index 0ac1044e5..5ade288c5 100644
--- a/web/css/timeline.css
+++ b/web/css/timeline.css
@@ -318,7 +318,7 @@ g.plot rect.data-bar-invisible {
#timeline-header .animate-button .wv-animate {
color: #fff;
font-size: 2.5em;
- margin: 12px 0 0 2px;
+ margin: 4px 0 0 2px;
}
#timeline-header .animate-button:hover .wv-animate {
@@ -378,7 +378,7 @@ g.plot rect.data-bar-invisible {
-webkit-box-sizing: border-box;
display: inline-block;
position: absolute;
- bottom: 65px;
+ bottom: 60px;
vertical-align: middle;
overflow-y: hidden;
height: 54px;
@@ -387,7 +387,26 @@ g.plot rect.data-bar-invisible {
background-color: rgba(40, 40, 40, 0.9);
}
-#timeline-zoom a.zoom-btn {
+.zoom-btn-active {
+ width: 100%;
+ color: #ccc;
+ font-size: 12px;
+ line-height: 14px;
+ display: block;
+ clear: both;
+ cursor: pointer;
+ text-transform: uppercase;
+ text-align: center;
+ font-family: 'Roboto Mono', monospace;
+ margin-top: -2px;
+}
+
+.zoom-btn-active:hover {
+ background-color: #fff;
+ color: #1a1a1a;
+}
+
+#timeline-zoom .zoom-btn {
display: block;
clear: both;
cursor: pointer;
@@ -396,31 +415,31 @@ g.plot rect.data-bar-invisible {
font-family: 'Roboto Mono', monospace;
}
-#timeline-zoom a.zoom-btn.depth-1 {
+#timeline-zoom .zoom-btn.depth-1 {
color: #fff;
font-size: 18px;
line-height: 20px;
}
-#timeline-zoom a.zoom-btn.depth-2 {
+#timeline-zoom .zoom-btn.depth-2 {
color: #999;
font-size: 14px;
line-height: 16px;
}
-#timeline-zoom a.zoom-btn.depth-3 {
+#timeline-zoom .zoom-btn.depth-3 {
color: #666;
font-size: 12px;
line-height: 14px;
}
-#timeline-zoom a.zoom-btn.depth-4 {
+#timeline-zoom .zoom-btn.depth-4 {
color: #666;
font-size: 10px;
line-height: 14px;
}
-#timeline-zoom a.zoom-btn:hover {
+#timeline-zoom .zoom-btn:hover {
background-color: #fff;
color: #1a1a1a;
}
diff --git a/web/index.html b/web/index.html
index 894a737d8..0197c5302 100644
--- a/web/index.html
+++ b/web/index.html
@@ -143,12 +143,12 @@ Licensed under the NASA Open Source Agreement, Version 1.3 (http://opensource.gs
</div>
<div id="focus-guard-2" class="focus-guard" tabindex="7"></div>
<div id="time-buttons-group" class="">
- <div id="timeline-zoom">
- <a class="zoom-btn" id="zoom-minutes">Minutes</a>
- <a class="zoom-btn" id="zoom-days">Days</a>
- <a class="zoom-btn" id="zoom-months">Months</a>
- <a class="zoom-btn" id="zoom-years">Years</a>
- </div>
+ <span class="zoom-btn zoom-btn-active" id="zoom-minutes">Minutes</span>
+ <ul id="timeline-zoom">
+ <li class="zoom-btn" id="zoom-days">Days</li>
+ <li class="zoom-btn" id="zoom-months">Months</li>
+ <li class="zoom-btn" id="zoom-years">Years</li>
+ </ul>
<div class="button-action-group" id="left-arrow-group" title="Click and hold to animate backwards">
<svg width="24" height="30">
<path