Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix elements affected by bootstrap implementation & rename classes #424

ZachTRice1dbe964e5aea
diff --git a/web/css/anim.widget.css b/web/css/anim.widget.css
index 16a1f940e..b4a27762c 100644
--- a/web/css/anim.widget.css
+++ b/web/css/anim.widget.css
@@ -209,7 +209,7 @@
transition: border 0.5s ease;
}
.gif-download-grid .grid-child.label {
- width: 110px;
+ width: 120px;
}
.gif-download-grid .grid-child.gif-size-invalid {
border: 1px solid #faa;
@@ -286,14 +286,14 @@
border-radius: 100%;
cursor: pointer;
display: block;
- height: 13px;
+ height: 15px;
margin-left: -6.5px;
margin-top: -8.45px;
outline: none;
position: absolute;
top: 50%;
transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, -webkit-transform 0.3s ease-out, -webkit-box-shadow 0.3s ease-out;
- width: 13px;
+ width: 15px;
}
.input-range__slider:active {
diff --git a/web/css/button.css b/web/css/button.css
index e4cc0495d..f985348bc 100644
--- a/web/css/button.css
+++ b/web/css/button.css
@@ -16,7 +16,7 @@
transition: background 0.5s ease;
}
.wv-button span {
- padding: 0.4em 1em;
+ padding: 6px 13px 7px;
display: block;
}
.wv-button.red {
@@ -43,4 +43,3 @@
color: #eee;
cursor: not-allowed;
}
-
diff --git a/web/css/checkbox.css b/web/css/checkbox.css
index f0e4cce26..2be4ed708 100644
--- a/web/css/checkbox.css
+++ b/web/css/checkbox.css
@@ -12,8 +12,8 @@
.wv-checkbox::before {
content: '\00a0';
display: inline-block;
- height: 20px;
- width: 20px;
+ height: 24px;
+ width: 24px;
border: 2px solid #d54f21;
text-align: center;
font-size: 15px;
diff --git a/web/css/dataDownload.css b/web/css/dataDownload.css
index 9b90af02a..c81a86dfe 100644
--- a/web/css/dataDownload.css
+++ b/web/css/dataDownload.css
@@ -258,3 +258,7 @@
#wv-datacontent div[data-product='__NO_PRODUCT'] a {
color: #000;
}
+
+.wv-datacategory {
+ list-style: none;
+}
diff --git a/web/css/layers.css b/web/css/layers.css
index 96459769b..d4d509409 100644
--- a/web/css/layers.css
+++ b/web/css/layers.css
@@ -240,7 +240,7 @@
line-height: 20px;
}
-.layer-category h3 a {
+.layer-category h3 .layer-category-name {
display: block;
width: 100%;
line-height: 20px;
@@ -249,15 +249,15 @@
background: rgba(51, 51, 51, 0.6);
}
-.layer-category h3 a:hover {
+.layer-category h3 .layer-category-name:hover {
background: rgba(255, 255, 255, 0.6);
}
-.layer-category li {
+.layer-category .layer-category-item {
list-style: none;
}
-.layer-category li a {
+.layer-category .layer-category-item .layer-category-name {
display: block;
padding: 7px 10px;
width: 100%;
@@ -271,7 +271,7 @@
-o-box-sizing: border-box;
}
-.layer-category li a:hover {
+.layer-category .layer-category-item .layer-category-name:hover {
background: rgba(255, 255, 255, 0.6);
}
@@ -519,14 +519,13 @@
.layers-all-header.has-checkbox::before {
content: '';
display: block;
- height: 20px;
- width: 20px;
+ height: 24px;
+ width: 24px;
border: 2px solid #d54f21;
position: absolute;
top: 7px;
right: 10px;
text-align: center;
- vertical-align: middle;
font-size: 15px;
line-height: 20px;
}
@@ -676,6 +675,10 @@
padding-right: 10px;
}
+.layer-modal-content .selected-category .source-settings label {
+ display: inline;
+}
+
/* Layer Options */
.wv-layers-options-dialog {
color: #fff;
@@ -716,40 +719,40 @@
}
/* Layers Info */
-.bank li.item a.wv-layers-info {
+.sidebar-panel li.item a.wv-layers-info {
color: #333;
text-align: center;
}
-.bank li.item a.wv-layers-info .wv-layers-info-icon {
+.sidebar-panel li.item a.wv-layers-info .wv-layers-info-icon {
border-color: #333;
}
-.bank li.item a.wv-layers-info.disabled {
+.sidebar-panel li.item a.wv-layers-info.disabled {
color: #aaa;
}
-.bank li.item a.wv-layers-info.disabled .wv-layers-info-icon {
+.sidebar-panel li.item a.wv-layers-info.disabled .wv-layers-info-icon {
border-color: #aaa;
}
-.bank li.item a.wv-layers-info.disabled:hover {
+.sidebar-panel li.item a.wv-layers-info.disabled:hover {
cursor: no-drop;
background-color: transparent;
}
-.bank li.layer-hidden a.wv-layers-info {
+.sidebar-panel li.layer-hidden a.wv-layers-info {
color: #999;
}
-.bank li.layer-hidden a.wv-layers-info .wv-layers-info-icon {
+.sidebar-panel li.layer-hidden a.wv-layers-info .wv-layers-info-icon {
border-color: #999;
}
-.bank li.layer-hidden a.wv-layers-info.disabled {
+.sidebar-panel li.layer-hidden a.wv-layers-info.disabled {
color: #666;
}
-.bank li.layer-hidden a.wv-layers-info.disabled .wv-layers-info-icon {
+.sidebar-panel li.layer-hidden a.wv-layers-info.disabled .wv-layers-info-icon {
border-color: #666;
}
diff --git a/web/css/main.css b/web/css/main.css
index 84b8ea778..5cf540648 100644
--- a/web/css/main.css
+++ b/web/css/main.css
@@ -19,7 +19,7 @@
@import url("reset.css");
@import url("util.css");
@import url("alert.css");
-@import url("bank.css");
+@import url("sidebar-panel.css");
@import url("button.css");
@import url("checkbox.css");
@import url("map.css");
diff --git a/web/css/mobile.css b/web/css/mobile.css
index e74d2ab67..930fcb4a9 100644
--- a/web/css/mobile.css
+++ b/web/css/mobile.css
@@ -14,7 +14,7 @@
z-index: 10100;
}
- .bank {
+ .sidebar-panel {
height: 96%;
}
@@ -22,7 +22,7 @@
max-height: 97%;
}
- img.bank-item-img {
+ img.sidebar-panel-item-img {
display: block;
height: 1.6em;
width: auto;
@@ -42,19 +42,19 @@
border: 1px solid #333;
}
- a.staticLayers {
+ a.staticLayers:not([href]):not([tabindex]) {
width: 100px;
background-image: none;
border-radius: 5px;
top: 55px;
}
- a.staticLayers::after {
- display: none;
+ a.staticLayers:not([href]):not([tabindex]):hover {
+ background-image: none;
}
- a.staticLayers:hover {
- background-image: none;
+ a.staticLayers::after {
+ display: none;
}
#wv-toolbar li {
diff --git a/web/css/palettes.css b/web/css/palettes.css
index dd6ea8939..eafbc2715 100644
--- a/web/css/palettes.css
+++ b/web/css/palettes.css
@@ -37,14 +37,14 @@
vertical-align: middle;
}
-.bank div.wv-palette {
+.sidebar-panel div.wv-palette {
padding-bottom: 2px;
}
-.bank div.wv-palettes-legend {
+.sidebar-panel div.wv-palettes-legend {
margin-top: 0;
}
-.bank div .colorbar-case {
+.sidebar-panel div .colorbar-case {
position: relative;
}
@@ -82,22 +82,22 @@
font-size: 0.7em;
}
-.bank div.wv-palettes-title {
+.sidebar-panel div.wv-palettes-title {
margin: 0 auto;
width: 100%;
text-align: center;
}
-.bank div.wv-palettes-min {
+.sidebar-panel div.wv-palettes-min {
left: 0;
}
-.bank div.wv-palettes-max {
+.sidebar-panel div.wv-palettes-max {
right: 0;
width: auto;
}
-.bank div .wv-palettes-panel {
+.sidebar-panel div .wv-palettes-panel {
padding-left: 3px;
padding-right: 5px;
width: auto;
@@ -105,8 +105,8 @@
}
/* Running data specific styles */
-.bank div .wv-palettes-panel .wv-running-bar,
-.bank div .wv-palettes-panel .wv-running-label {
+.sidebar-panel div .wv-palettes-panel .wv-running-bar,
+.sidebar-panel div .wv-palettes-panel .wv-running-label {
visibility: hidden;
position: absolute;
-webkit-transition-property: left;
@@ -117,21 +117,21 @@
transition-delay: 0s, 0s;
}
-.bank div .wv-palettes-panel .wv-running-category-label {
+.sidebar-panel div .wv-palettes-panel .wv-running-category-label {
bottom: 1px;
position: absolute;
visibility: hidden;
}
-.bank div .wv-palettes-panel .wv-running-bar {
+.sidebar-panel div .wv-palettes-panel .wv-running-bar {
top: 0;
width: 1px;
height: 12px;
background: #000;
}
-.bank div .wv-palettes-panel .wv-running-bar::after,
-.bank div .wv-palettes-panel .wv-running-bar::before {
+.sidebar-panel div .wv-palettes-panel .wv-running-bar::after,
+.sidebar-panel div .wv-palettes-panel .wv-running-bar::before {
content: "";
position: absolute;
width: 0;
@@ -140,7 +140,7 @@
line-height: 0;
}
-.bank div .wv-palettes-panel .wv-running-bar::before {
+.sidebar-panel div .wv-palettes-panel .wv-running-bar::before {
top: 6px;
left: -5px;
border-left: 5px solid transparent;
@@ -148,7 +148,7 @@
border-bottom: 5.5px solid #000;
}
-.bank div .wv-palettes-panel .wv-running-bar::after {
+.sidebar-panel div .wv-palettes-panel .wv-running-bar::after {
top: 7px;
left: -4px;
border-left: 4px solid transparent;
@@ -156,17 +156,17 @@
border-bottom: 4px solid #dedede;
}
-.bank div .wv-palettes-panel .wv-running .wv-palettes-max,
-.bank div .wv-palettes-panel .wv-running .wv-palettes-min {
+.sidebar-panel div .wv-palettes-panel .wv-running .wv-palettes-max,
+.sidebar-panel div .wv-palettes-panel .wv-running .wv-palettes-min {
display: none;
}
-.bank div .wv-palettes-panel.wv-running .wv-running-category-label {
+.sidebar-panel div .wv-palettes-panel.wv-running .wv-running-category-label {
visibility: visible;
}
-.bank .wv-palettes-panel .wv-running .wv-running-bar,
-.bank .wv-palettes-panel .wv-running .wv-running-label {
+.sidebar-panel .wv-palettes-panel .wv-running .wv-running-bar,
+.sidebar-panel .wv-palettes-panel .wv-running .wv-running-label {
visibility: visible;
}
@@ -174,22 +174,22 @@
visibility: hidden;
}
-.bank .wv-palettes-colorbar {
+.sidebar-panel .wv-palettes-colorbar {
width: 100%;
height: 10px;
border: 1px solid #404040;
margin-bottom: 13px;
}
-.bank .wv-palettes-colorbar:hover {
+.sidebar-panel .wv-palettes-colorbar:hover {
cursor: crosshair;
}
-.bank .wv-running div.wv-palettes-classes .wv-palettes-class.wv-active {
+.sidebar-panel .wv-running div.wv-palettes-classes .wv-palettes-class.wv-active {
opacity: 1;
}
-.bank .wv-running div.wv-palettes-classes .wv-palettes-class {
+.sidebar-panel .wv-running div.wv-palettes-classes .wv-palettes-class {
opacity: 0.25;
}
diff --git a/web/css/products.css b/web/css/products.css
index 167de1325..0b37fcc20 100644
--- a/web/css/products.css
+++ b/web/css/products.css
@@ -1,7 +1,6 @@
#productsHolder .ui-tabs-panel {
padding: 0;
position: relative;
- padding-bottom: 37px;
}
#productsHolder-tabs {
diff --git a/web/css/reset.css b/web/css/reset.css
index 345d154fb..748d1699c 100644
--- a/web/css/reset.css
+++ b/web/css/reset.css
@@ -181,6 +181,11 @@ sup {
top: -0.5em;
}
+*:focus,
+button:focus {
+ outline: 0;
+}
+
#info_drop {
border: none;
margin: 0;
diff --git a/web/css/bank.css b/web/css/sidebar-panel.css
similarity index 85%
rename from web/css/bank.css
rename to web/css/sidebar-panel.css
index 3795d910d..dc10d1f2b 100644
--- a/web/css/bank.css
+++ b/web/css/sidebar-panel.css
@@ -13,7 +13,7 @@ a.accordionToggler {
background: none no-repeat scroll left;
}
-a.staticLayers {
+a.staticLayers:not([href]):not([tabindex]) {
float: left;
left: 10px;
position: absolute;
@@ -34,7 +34,7 @@ a.staticLayers {
color: #fff;
}
-a.staticLayers:hover {
+a.staticLayers:not([href]):not([tabindex]):hover {
background-color: #ccc;
color: rgb(40, 40, 40);
}
@@ -72,11 +72,11 @@ a.atexpand {
background: url("../images/icon-sprite.svg") -175px 0;
}
-.bank {
+.sidebar-panel {
color: #222;
}
-.bank h1,
+.sidebar-panel h1,
h2,
h3,
h4 {
@@ -86,7 +86,7 @@ h4 {
font-weight: 400;
}
-.bank h2 {
+.sidebar-panel h2 {
font-size: 1.4em;
display: inline-block;
float: left;
@@ -95,11 +95,11 @@ h4 {
padding: 9px 30px;
}
-.bank .tabContainer {
+.sidebar-panel .tabContainer {
border-bottom: 2px #005190 solid;
}
-.bank h3 {
+.sidebar-panel h3 {
display: block;
color: #fff;
border: none;
@@ -112,28 +112,28 @@ h4 {
text-transform: uppercase;
}
-.bank div,
-.bank ul {
+.sidebar-panel div,
+.sidebar-panel ul {
display: block;
width: 100%;
margin: 0 auto;
}
-.bank .category {
+.sidebar-panel .category {
overflow: hidden;
}
-.bank li.item {
+.sidebar-panel li.item {
padding: 0;
cursor: move;
margin: 0 auto;
}
-.bank li.item-static {
+.sidebar-panel li.item-static {
cursor: default;
}
-.bank li.item-static:hover {
+.sidebar-panel li.item-static:hover {
background: rgba(220, 220, 220, 1);
}
@@ -147,11 +147,11 @@ h4 {
right: -6px;
}
-.bank li.item a {
+.sidebar-panel li.item a {
color: #22a;
}
-.bank li.item a:hover {
+.sidebar-panel li.item a:hover {
color: #88f;
}
@@ -163,46 +163,46 @@ h4 {
color: #88f;
}
-.bank li.item h4 {
+.sidebar-panel li.item h4 {
font-size: 0.9em;
line-height: 14px;
padding: 3px 3px 0;
}
-.bank li.item p {
+.sidebar-panel li.item p {
padding: 0 3px 6px;
color: #222;
font-size: 0.8em;
font-style: italic;
}
-.bank li.item span.palette {
+.sidebar-panel li.item span.palette {
display: block;
overflow: hidden;
margin-top: 5px;
margin-left: 5px;
}
-.bank li.item ul.palette li {
+.sidebar-panel li.item ul.palette li {
float: left;
}
-.bank ul.category {
+.sidebar-panel ul.category {
overflow: auto;
}
-.bank ul.category li h3 {
+.sidebar-panel ul.category li h3 {
display: block;
clear: both;
float: none;
}
-.bank .layer-metadata.overflow {
+.sidebar-panel .layer-metadata.overflow {
height: 40px;
overflow: hidden;
}
-img.bank-item-img {
+img.sidebar-panel-item-img {
display: block;
}
@@ -211,7 +211,7 @@ img.hideReg {
width: 20px;
}
-.bank img.close {
+.sidebar-panel img.close {
height: 14px;
width: 14px;
}
@@ -225,8 +225,8 @@ img.hideReg {
margin-left: 0 !important;
}
-.bank li.item.productsitem,
-.bank li.itemstatic {
+.sidebar-panel li.item.productsitem,
+.sidebar-panel li.itemstatic {
padding: 0;
min-height: 40px;
box-sizing: border-box;
@@ -237,7 +237,7 @@ img.hideReg {
border: 1px solid transparent;
}
-.bank li.item.productsitem:hover {
+.sidebar-panel li.item.productsitem:hover {
border-color: #fff;
}
@@ -294,8 +294,8 @@ img.hideReg {
.wv-layers-info-icon {
font-size: 11px;
border: 1px solid #333;
- width: 12px;
- height: 11px;
+ width: 14px;
+ height: 14px;
text-align: center;
border-radius: 50%;
padding-top: 1px;
@@ -361,7 +361,7 @@ i.wv-layers-options-icon {
cursor: pointer;
}
-.bank li.item.productsitem:hover a.button.close {
+.sidebar-panel li.item.productsitem:hover a.button.close {
display: block;
}
@@ -419,12 +419,12 @@ i.wv-layers-options-icon {
color: #999;
}
-.bank .layer-main h4,
-.bank .layer-main p {
+.sidebar-panel .layer-main h4,
+.sidebar-panel .layer-main p {
padding: 0;
}
-.bank li.layer-hidden a {
+.sidebar-panel li.layer-hidden a {
color: #999;
}
@@ -433,11 +433,11 @@ i.wv-layers-options-icon {
height: 42px;
}
-.bank li.item.productsitem.disabled.layer-hidden:hover {
+.sidebar-panel li.item.productsitem.disabled.layer-hidden:hover {
border-color: transparent;
}
-.bank li.item.productsitem .layer-main:hover a.hdanchor i {
+.sidebar-panel li.item.productsitem .layer-main:hover a.hdanchor i {
background-position: 5px -36px;
}
diff --git a/web/css/sidebar.css b/web/css/sidebar.css
index 4e67b79a6..70adc3f8b 100644
--- a/web/css/sidebar.css
+++ b/web/css/sidebar.css
@@ -31,8 +31,7 @@
#productsHolder footer {
bottom: 0;
- position: absolute;
- padding: 5px;
+ padding: 2px 5px 5px;
}
#productsHolder footer p {
diff --git a/web/css/timeline.css b/web/css/timeline.css
index 729e22bf4..5243a7437 100644
--- a/web/css/timeline.css
+++ b/web/css/timeline.css
@@ -1,4 +1,5 @@
-*:focus {
+*:focus,
+button:focus {
outline: 0;
}
diff --git a/web/js/data/ui.js b/web/js/data/ui.js
index 6a19bc2f1..c3e0e9ec4 100644
--- a/web/js/data/ui.js
+++ b/web/js/data/ui.js
@@ -67,7 +67,7 @@ export function dataUi(models, ui, config) {
text: 'No Data Selected'
});
var $wrapper = $('<div />', {
- class: 'wv-datalist bank content'
+ class: 'wv-datalist sidebar-panel content'
});
var $list = $('<div />', {
id: 'wv-datacontent'
diff --git a/web/js/layers/active.js b/web/js/layers/active.js
index 3ffdc8be9..476ca9850 100644
--- a/web/js/layers/active.js
+++ b/web/js/layers/active.js
@@ -56,7 +56,7 @@ export function layersActive(models, ui, config) {
var render = function () {
legends = {};
- var $container = $('<div />', { class: 'layer-container bank' });
+ var $container = $('<div />', { class: 'layer-container sidebar-panel' });
$(self.selector).empty().append($container);
lodashEachRight(groups, function (group) {
@@ -141,7 +141,7 @@ export function layersActive(models, ui, config) {
.attr('data-layer', layer.id);
var $visibleButton = $('<a></a>')
- .addClass('hdanchor hide hideReg bank-item-img')
+ .addClass('hdanchor hide hideReg sidebar-panel-item-img')
.attr('id', 'hide' + encodeURIComponent(layer.id))
.attr('data-layer', layer.id)
.on('click', toggleVisibility);
@@ -165,7 +165,7 @@ export function layersActive(models, ui, config) {
var $removeButton = $('<a></a>')
.attr('id', 'close' + group.id + encodeURIComponent(layer.id))
- .addClass('button close bank-item-img')
+ .addClass('button close sidebar-panel-item-img')
.attr('data-layer', layer.id)
.attr('title', 'Remove Layer')
.on('click', removeLayer);
diff --git a/web/js/layers/modal.js b/web/js/layers/modal.js
index 32ac764cb..ef2baefaf 100644
--- a/web/js/layers/modal.js
+++ b/web/js/layers/modal.js
@@ -781,6 +781,7 @@ export function layersModal(models, ui, config) {
var $dotContinueLink = $('<a />', {
text: '...',
+ 'class': 'layer-category-name',
'data-category': category.id
});
diff --git a/web/js/natural-events/ui.js b/web/js/natural-events/ui.js
index 526d44d93..75aa5ab6e 100644
--- a/web/js/natural-events/ui.js
+++ b/web/js/natural-events/ui.js
@@ -210,7 +210,7 @@ export default function naturalEventsUI (models, ui, config, request) {
};
var createEventList = function () {
- var $panels = $('<div />', { class: 'wv-eventslist bank' });
+ var $panels = $('<div />', { class: 'wv-eventslist sidebar-panel' });
$('#wv-events').empty().append($panels);
var $list = $('<ul></ul>').attr('id', 'wv-eventscontent').addClass('content').addClass('map-item-list');
var $detailContainer = $('<div></div>').attr('id', 'wv-events-detail').hide();