Interactive interface for browsing global, full-resolution satellite imagery
Add A|B styles #1118
Benjamin King8e8959967129
diff --git a/web/css/button.css b/web/css/button.cssindex f985348bc..511f0bfed 100644--- a/web/css/button.css+++ b/web/css/button.css@@ -1,4 +1,3 @@-/** WV Button Widget*/@@ -33,7 +32,9 @@color: #404040;cursor: pointer;}-+.wv-button.no-pointer-events {+ pointer-events: none;+}.wv-button:disabled {opacity: 0.35;background-image: none;diff --git a/web/css/compare.css b/web/css/compare.cssindex f940143d9..1492d664f 100644--- a/web/css/compare.css+++ b/web/css/compare.css@@ -18,14 +18,23 @@background: white;text-align: center;}+.ab-swipe-line:hover {+ cursor: grabbing;+}.ab-swipe-dragger:hover {transform: scale(1.2);- cursor: grabbing;+ cursor: pointer;}.ab-swipe-dragger i {font-size: 18px;margin-top: 7px;}+.ab-swipe-line .left-label {+ left: -25px;+}+.ab-swipe-line .right-label {+ left: 13px;+}.ab-slider-case {position: absolute;margin-left: auto;@@ -33,19 +42,30 @@left: 0;right: 0;bottom: 25%;- width: 160px;+ width: 172px;text-align: center;background: rgba(40, 40, 40, 0.85);color: white;+ height: 25px;}-.ab-slider-case span {- position: absolute;- top: 5px;+.ab-slider-case .input-range {+ width: 140px;+ display: inline-block;+ margin-top: 10px;+ vertical-align: top;+}+.ab-slider-case .wv-slider-label {+ display: inline-block;+ vertical-align: top;+ margin-top: 5px;+ width: 15px;font-size: 14px;+ text-align: center;}+.ab-swipe-line .ab-swipe-span {position: absolute;- top: 50%;+ top: 55%;padding: 2px;background: white;color: black;@@ -54,17 +74,13 @@margin-top: -7px;border-radius: 3px;border: 1px solid black;+ cursor: default;}-.ab-swipe-line .left-label {- left: -35px;-}-.ab-swipe-line .right-label {- left: 24px;-}+.ab-spy-span {position: absolute;- background: white;- color: black;+ background: rgba(40, 40, 40, 0.8);+ color: rgba(255, 255, 255, 0.9);display: block;font-size: 14px;border-radius: 3px;@@ -72,9 +88,7 @@padding: 2px;margin-left: -4px;}-.ab-slider-case .left-label {- left: 3px;-}-.ab-slider-case .right-label {- right: 3px;-}++/* .ab-slider-input {+ width: 100%;+} */diff --git a/web/css/sidebar-panel.css b/web/css/sidebar-panel.cssindex b066c476a..53b92c9d2 100644--- a/web/css/sidebar-panel.css+++ b/web/css/sidebar-panel.css@@ -1,18 +1,37 @@.toggleButtonHolder {- position: absolute;- right: 0;- top: 0;+ position: relative;}-a.accordionToggler {- display: block;+.accordionToggler {overflow: hidden;z-index: 1;- height: 33px;- width: 30px;+ height: 28px;+ width: 28px;background: none no-repeat scroll left;}-+.toggleIconHolder {+ position: absolute;+ right: 6px;+ height: 30px;+ width: 30px;+ border: 1px solid transparent;+ border-top-left-radius: 0.25rem;+ border-top-right-radius: 0.25rem;+}+.atcollapse {+ position: absolute;+ background: url("../images/icon-sprite.svg") -206px -3px;+ border-radius: 0;+ -webkit-box-sizing: border-box;+ box-sizing: border-box;+ border-right: 0;+}+.toggleIconHolder:hover {+ background: rgba(220, 220, 220, 1);+}+.toggleIconHolder:hover .atcollapse {+ background-position: -206px -63px;+}a.staticLayers:not([href]):not([tabindex]) {float: left;left: 10px;@@ -54,20 +73,6 @@ a.staticLayers:hover::after {background-position: -180px -70px;}-a.atcollapse {- background: url("../images/icon-sprite.svg") -205px 0;- border-radius: 0;- -webkit-box-sizing: border-box;- box-sizing: border-box;- border-right: 0;-}--a.atcollapse:hover {- background-position: -205px -60px;- background-color: #ccc;- cursor: pointer;-}-a.atexpand {background: url("../images/icon-sprite.svg") -175px 0;}@@ -155,27 +160,29 @@ a.atexpand {color: #88f;}-.sidebar-panel li.item h4 {+.sidebar-panel li.item h4,+.inmotion h4 {font-size: 0.9em;line-height: 14px;padding: 3px 3px 0;}-.sidebar-panel li.item p {+.sidebar-panel li.item p,+.inmotion p {padding: 0 3px 6px;color: #222;font-size: 0.8em;font-style: italic;}-.sidebar-panel li.item span.palette {+li.item span.palette {display: block;overflow: hidden;margin-top: 5px;margin-left: 5px;}-.sidebar-panel li.item ul.palette li {+li.item ul.palette li {float: left;}@@ -183,13 +190,14 @@ a.atexpand {overflow: auto;}-.sidebar-panel ul.category li h3 {+.sidebar-panel ul.category li h3,+.inmotion h3 {display: block;clear: both;float: none;}-.sidebar-panel .layer-metadata.overflow {+.layer-metadata.overflow {height: 40px;overflow: hidden;}@@ -222,9 +230,11 @@ img.hideReg {}.sidebar-panel li.item.productsitem,+li.item.productsitem.inmotion,.sidebar-panel li.itemstatic {padding: 0;min-height: 40px;+ list-style: none;box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;@@ -250,7 +260,26 @@ img.hideReg {background: #fff;}-.productsitem a.hdanchor.hideReg i {+.layer-eye-icon {+ text-align: center;+ display: inline-block;+ width: 100%;+ position: absolute;+ top: 50%;+ margin-top: -10px;+ font-size: 20px;+ color: #000;+}+.layer-hidden .layer-eye-icon {+ color: #c5c5c8;+}+.productsitem .hdanchor:hover .layer-eye-icon {+ color: #000;+}+.productsitem.disabled .hdanchor {+ pointer-events: none;+}+/* .productsitem a.hdanchor.hideReg i {width: 21px;height: 12px;background: url("../images/wv.layers/show-hide.png?v=@BUILD_NONCE@") no-repeat@@ -273,7 +302,7 @@ img.hideReg {.productsitem.layer-hidden a.hdanchor.hideReg:hover i {background-position: -63px 0;-}+} */.productsitem a.wv-layers-info,.productsitem a.wv-layers-options {@@ -282,7 +311,10 @@ img.hideReg {height: 20px;float: right;}-+.productsitem.inmotion {+ width: 284px;+ list-style: none;+}.productsitem a.wv-layers-info:hover,.productsitem a.wv-layers-options:hover {background: #fff;@@ -398,6 +430,7 @@ i.wv-layers-options-icon {margin-left: 31px;cursor: default;min-height: 40px;+ overflow: hidden;}.productsitem.zotted .layer-main {@@ -419,6 +452,7 @@ i.wv-layers-options-icon {}.sidebar-panel .layer-main h4,+.inmotion .layer-main h4,.sidebar-panel .layer-main p {padding: 0;}@@ -436,23 +470,23 @@ i.wv-layers-options-icon {border-color: transparent;}-.sidebar-panel li.item.productsitem .layer-main:hover a.hdanchor i {+/* .sidebar-panel li.item.productsitem .layer-main:hover a.hdanchor i {background-position: 5px -36px;-}+} */-.disabled.layer-hidden a.hdanchor.hideReg i {+/* .disabled.layer-hidden a.hdanchor.hideReg i {width: 15px;height: 15px;margin-top: -7.5px;margin-left: -7.5px;background-position: 0 -54px;-}+} */-.disabled.layer-hidden a.hdanchor:hover {+/* .disabled.layer-hidden a.hdanchor:hover {background: rgba(255, 255, 255, 0.2);cursor: default;}.productsitem.disabled.layer-hidden a.hdanchor:hover i {background-position: 0 -54px;-}+} */diff --git a/web/css/timeline.css b/web/css/timeline.cssindex 82780b572..6d4199ac3 100644--- a/web/css/timeline.css+++ b/web/css/timeline.css@@ -175,15 +175,15 @@ g.plot rect.data-bar-invisible {-webkit-box-sizing: border-box;}-#timeline-header .input-wrapper:nth-child(2) {+#timeline-header .input-wrapper-year {max-width: 62px;}-#timeline-header .input-wrapper:nth-child(3) {+#timeline-header .input-wrapper-month {max-width: 46px;}-#timeline-header .input-wrapper:nth-child(4) {+#timeline-header .input-wrapper-day {max-width: 32px;}@@ -242,18 +242,15 @@ g.plot rect.data-bar-invisible {font-family: "Roboto Mono", monospace;color: #fff;font-size: 24px;- vertical-align: middle;- width: 8px;- margin-top: -5px;- margin-left: -9px;+ width: 13px;+ margin-top: 23px;}#timeline-header .input-time-zmark {font-family: "Roboto Mono", monospace;color: #fff;font-size: 24px;- vertical-align: middle;- margin-left: -4px;+ margin-top: 25px;}#zoom-buttons-group {@@ -576,6 +573,9 @@ g.plot rect.data-bar-invisible {#timeline-hide:hover .hamburger path {fill: #1a1a1a;}+#timeline-footer .ab-group-case text {+ font-size: 20px;+}.ab-group-case {display: none;}@@ -583,16 +583,30 @@ g.plot rect.data-bar-invisible {fill: white;}.ab-group-case polygon,+.ab-group-case path,.ab-group-case rect {fill: gray;opacity: 0.7;pointer-events: none;}+.ab-group-case-active path {+ stroke: #515151;+ stroke-width: 1;+ stroke-opacity: 1;+}.ab-group-case-active polygon,+.ab-group-case-active path,.ab-group-case-active rect {fill: white;opacity: 1;pointer-events: initial;+ cursor: pointer;+}+.ab-group-case text {+ fill: white;+}+.ab-group-case-active text {+ fill: black;}.ab-active .ab-group-case {display: block;