Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Made style modifications to the product picker to adapt to new UI, make dragging more prominent, and to make individual layers contrast more

Tilak Joshif25f3cd7e2cc
diff --git a/src/css/bank.css b/src/css/bank.css
index e4a945786..ba9d87d56 100644
--- a/src/css/bank.css
+++ b/src/css/bank.css
@@ -13,8 +13,8 @@ background: no-repeat right url("../images/expandOut.png"), linear-gradient(to b
a.atcollapse {background-image: url("../images/expandIn.png"); }
a.atexpand {background-image: url("../images/expandOut.png");}
-div.bank { display:inline-block; float:left; width: 100%; height:100%; /*box-shadow: 0 0 4px 1px #bbb;*/ font: 1em; color: #fff; text-shadow:none;}
-.bank h1,h2,h3,h4 {margin:0px; padding:0px; color:#fff;}
+div.bank { display:inline-block; float:left; width: 100%; height:100%; /*box-shadow: 0 0 4px 1px #bbb;*/ font: 1em; color: #222; text-shadow:none;}
+.bank h1,h2,h3,h4 {margin:0px; padding:0px; color:#000; font-weight:400;}
.bank h2 {font-size:1.4em; display:inline-block; float: left; color:#ffffff; border:none; padding:9px 30px 9px 30px;
background: -moz-linear-gradient(top, rgba(255,255,255,0.7) 0%, rgba(11,95,160,0.7) 23%, rgba(0,88,156,0.7) 24%, rgba(0,81,144,0.7) 99%, rgba(0,81,144,0.7) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.7)), color-stop(23%,rgba(11,95,160,0.7)), color-stop(24%,rgba(0,88,156,0.7)), color-stop(99%,rgba(0,81,144,0.7)), color-stop(100%,rgba(0,81,144,0.7))); /* Chrome,Safari4+ */
@@ -31,16 +31,9 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3ffffff', e
#callSelectorLink {display: inline-block; width:32px; height:32px; background: transparent url("../images/addLayers.png"); margin-left: 50px;float:right;}
.bank div,.bank ul {display:block;width:100%; margin:0 auto;}
.bank .category {overflow:hidden;}
-.bank h3 {background: rgba(120,120,120,.8); padding: 1px 3px; font-size:0.9em;}
-.bank li.item {padding:0; display:block; width:100%; padding:8px 0px 8px 0px; overflow:hidden;
-background: -moz-linear-gradient(top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.68) 50%, rgba(0,0,0,0.75) 100%); /* FF3.6+ */
-background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.6)), color-stop(50%,rgba(0,0,0,0.68)), color-stop(100%,rgba(0,0,0,0.75))); /* Chrome,Safari4+ */
-background: -webkit-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.68) 50%,rgba(0,0,0,0.75) 100%); /* Chrome10+,Safari5.1+ */
-background: -o-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.68) 50%,rgba(0,0,0,0.75) 100%); /* Opera 11.10+ */
-background: -ms-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.68) 50%,rgba(0,0,0,0.75) 100%); /* IE10+ */
-background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.68) 50%,rgba(0,0,0,0.75) 100%); /* W3C */
-filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#99000000', endColorstr='#bf000000',GradientType=0 ); /* IE6-9 */
-
+.bank h3 {background: none; padding: 1px 3px; font-size:0.9em; margin-top:10px; margin-left:2%;}
+.bank li.item {display:block; width:96%; padding:6px 0; overflow:hidden; margin:5px 2% 0 2%;
+background: rgba(238,238,238,0.85); cursor:move;
}
@@ -49,10 +42,10 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#99000000', e
.mCustomScrollBox > .mCSB_scrollTools {right: -6px;}
-.bank li.item a {float:right; color:#fff; margin-right:0.3em;}
-.bank li.item a.hdanchor {display:inline-block; overflow:hidden;}
+.bank li.item a {float:right; color:#fff; margin-right:0.3em; cursor:default;}
+.bank li.item a.hdanchor {display:inline-block; overflow:hidden; }
.bank li.item h4 {font-size:0.85em; padding:0 3px;}
-.bank li.item p {padding:0 3px; color:#fff; font-size:0.78em;}
+.bank li.item p {padding:0 3px; color:#222; font-size:0.78em;}
.bank li.item span.palette {display:block; overflow:hidden; margin-top:5px; margin-left:5px;}
.bank li.item ul.palette li {float:left;}
.bank ul.category { overflow:auto; }
diff --git a/src/css/selector.css b/src/css/selector.css
index 81695687d..c2c49f99d 100644
--- a/src/css/selector.css
+++ b/src/css/selector.css
@@ -1,6 +1,6 @@
#selector {display:none;}
-div.selector { display:inline-block; float:left; width: 100%; height:100%; font-size: 1em; color: #141b4c; text-shadow:none; }
+div.selector { display:inline-block; float:left; width: 100%; height:100%; font-size: 1em; color: #222; text-shadow:none; }
.selector h1,h2,h3,h4 {margin:0px; padding:0px;
}
@@ -19,20 +19,13 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3ffffff', e
.selector h3 {display:inline-block; float: left; color:#333333; font-size: 0.9em; border:none; text-decoration:none; }
.selector div,.selector ul {display:block; overflow:hidden;margin:0 auto; width:100%;}
-.selector li.selectorItem {padding:8px 0px 8px 0px; width:100%; display:block; float:left; overflow:hidden;
-color:#fff;
-background: -moz-linear-gradient(top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.7) 100%); /* FF3.6+ */
-background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.5)), color-stop(50%,rgba(0,0,0,0.6)), color-stop(100%,rgba(0,0,0,0.7))); /* Chrome,Safari4+ */
-background: -webkit-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* Chrome10+,Safari5.1+ */
-background: -o-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* Opera 11.10+ */
-background: -ms-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* IE10+ */
-background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* W3C */
-filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80000000', endColorstr='#b3000000',GradientType=0 ); /* IE6-9 */}
+.selector li.selectorItem {padding:6px 0px; width:96%; margin: 5px 2% 0 2%; display:block; float:left; overflow:hidden;
+color:#000; background: rgba(238,238,238,0.85);}
.selector li.selectorItem input {float:right;}
-.selector li.selectorItem h4 {font-size:0.85em; color:#fff;padding: 0 3px;}
-.selector li.selectorItem p {padding: 0 3px; font-size:0.78em; }
+.selector li.selectorItem h4 {font-size:0.85em; color:#000;padding: 0 3px;}
+.selector li.selectorItem p {padding: 0 3px; font-size:0.78em; color: #222;}
.selector ul.category { outline:none !important; float:left; overflow:auto;}
-.selector h3.head {display:block; float: left; color:#ffffff; width:100%; border:none; text-decoration:none; background: rgba(120,120,120,.8); padding: 1px 3px;}
+.selector h3.head {display:block; float: left; color:#fff; width:100%; border:none; text-decoration:none; background: none; padding: 1px 3px; margin:10px 0 0 2%; }
.selector a.flowbutton {text-decoration:none; display:inline-block; float: left; color:#ffffff; font-size: 1.4em; border:none; padding:6px 0; margin-top:20px; margin-left:5px;}
.selector ul li div {padding:0 !important;}
.selector ul.toplevel {padding:0px;}
diff --git a/src/css/sote.css b/src/css/sote.css
index 309ccab82..8aed6e4fd 100644
--- a/src/css/sote.css
+++ b/src/css/sote.css
@@ -15,7 +15,7 @@ h1, h2, h3, h4, h5, h6 { font-weight:400; }
.yui-skin-sam .yui-panel-container .bd a {color: #48a8ff; }
#splash_c.yui-overlay-hidden, #conclusionPanel_c.yui-overlay-hidden {display:none;}
-.jspVerticalBar {width:8px !important; background:transparent;}
+.jspVerticalBar {width:5px !important; background:transparent;}
.jspTrack {
background: #555555;
} /* or just remove the background property*/
diff --git a/src/images/close-red-x.png b/src/images/close-red-x.png
index 537f0f18b..84b09e548 100644
Binary files a/src/images/close-red-x.png and b/src/images/close-red-x.png differ
diff --git a/src/js/bank.js b/src/js/bank.js
index 9ae947c4c..0c19bae7a 100644
--- a/src/js/bank.js
+++ b/src/js/bank.js
@@ -280,6 +280,7 @@ SOTE.widget.Bank.prototype.render = function(){
this.jsp = $( "." + this.id + "category" ).jScrollPane({autoReinitialise: false, verticalGutter:0});
}
$( "." + this.id + "category li" ).disableSelection();
+ $( "." + this.id + "category" ).bind('sortstart',{self:this},SOTE.widget.Bank.initiateSort);
$( "." + this.id + "category" ).bind('sortstop',{self:this},SOTE.widget.Bank.handleSort);
setTimeout(SOTE.widget.Bank.adjustCategoryHeights,1,{self:this});
@@ -301,7 +302,7 @@ SOTE.widget.Bank.prototype.render = function(){
SOTE.widget.Bank.adjustCategoryHeights = function(args){
var self = args.self;
var heights = new Array;
- var container_height = $("#"+self.id).outerHeight();
+ var container_height = $("#"+self.id).outerHeight(true);
var labelHeight = 0;
$('#'+self.id+' .head').each(function(){
labelHeight += $(this).outerHeight(true);
@@ -313,7 +314,7 @@ SOTE.widget.Bank.adjustCategoryHeights = function(args){
var actual_height = 0;
var count = 0;
$('#' + formattedCategoryName.toLowerCase() + ' li').each(function(){
- actual_height += $(this).outerHeight();
+ actual_height += $(this).outerHeight(true);
count++;
});
@@ -401,9 +402,21 @@ SOTE.widget.Bank.toggle = function(e,ui){
}
};
+SOTE.widget.Bank.initiateSort = function(e,ui){
+ $(ui.item).css({
+ 'background-color':'rgba(255,245,218,0.85)',
+ 'border':'1px #000 dashed'
+ });
+
+};
+
SOTE.widget.Bank.handleSort = function(e,ui){
var self = e.data.self;
self.values = new Object;
+ $(ui.item).css({
+ 'background-color':'',
+ 'border':'none'
+ });
for(var i=0; i<self.categories.length; i++){
var formatted = self.categories[i].replace(/\s/g, "");
formatted = formatted.toLowerCase();