Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Added padding around "i" icon in search descriptions

ZachTRiced6315d0b1753
diff --git a/web/css/wv.layers.modal.css b/web/css/wv.layers.modal.css
index 6964915bc..80c82ddac 100644
--- a/web/css/wv.layers.modal.css
+++ b/web/css/wv.layers.modal.css
@@ -278,7 +278,13 @@
padding-bottom: .5em;
}
#layers-all .layers-all-header {
- padding: .5em .5em 0 0;
+ padding: 0 .5em 0 0;
+ overflow: hidden;
+}
+#layers-all .layers-all-title-wrap {
+ position: relative;
+ display: block;
+ margin-right: 50px;
}
#selected-category .ui-accordion-header,
#layers-all .layers-all-layer {
@@ -328,7 +334,15 @@
color:#ddd;
font-size:20px;
line-height:100%;
- margin-right:50px;
+ position: relative;
+ padding-top: .5em;
+ display: inline-block;
+}
+@media (min-width:753px) {
+ #selected-category .ui-accordion-header h3,
+ #layers-all .layers-all-layer h3 {
+ padding-right: 40px;
+ }
}
#selected-category .ui-accordion-header h5,
#layers-all .layers-all-layer h5{
@@ -338,7 +352,6 @@
font-weight:300;
margin-top:3px;
font-style: italic;
- margin-right: 50px;
}
#selected-category .ui-accordion-content{
padding: .5em 1.2em;
@@ -420,12 +433,26 @@
margin-bottom: 5px;
}
-.layers-all-layer .fa {
- color: #ddd;
- font-family: FontAwesome !important;
- margin-left: 8px;
- font-size: 14px;
+.layers-all-layer .layers-all-header .fa {
+ color: #ddd;
+ font-family: FontAwesome;
+ margin-left: 0;
+ font-size: 14px;
+ padding: 12px 16px 12px;
+ position: absolute;
+ margin-left: -8px;
+ margin-top: -8px;
+}
+@media (min-width: 753px) {
+ .layers-all-layer .layers-all-header .fa {
+ padding: 14px 18px 16px;
+ top: 0;
+ right: 0;
+ margin-top: 0;
+ margin-left: 0;
+ }
}
+
.layers-all-layer .fa:hover {
cursor: pointer;
}
@@ -519,6 +546,7 @@
#layers-all .iCheck-checkbox {
float: right;
+ margin-top: .5em;
}
/*lazy code to put scrollbar in the right place*/
diff --git a/web/js/layers/wv.layers.modal.js b/web/js/layers/wv.layers.modal.js
index b4db76fac..d79b408cc 100644
--- a/web/js/layers/wv.layers.modal.js
+++ b/web/js/layers/wv.layers.modal.js
@@ -401,6 +401,9 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {
.iCheck('toggle');
});
+ var $layerTitleWrap = $( '<div></div>' )
+ .addClass('layers-all-title-wrap');
+
var $layerTitle = $( '<h3></h3>' )
.text( current.title );
@@ -427,7 +430,7 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {
.addClass('fa fa-info-circle');
var $moreTab = $('<div></div>')
- .addClass('metadata-more');
+ .addClass('metadata-more');
var $moreElps = $('<span></span>')
.addClass('ellipsis up')
@@ -445,11 +448,12 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {
$layerItem.append( $layerHeader );
$layerHeader.append( $checkbox );
- $layerHeader.append( $layerTitle );
+ $layerHeader.append( $layerTitleWrap );
+ $layerTitleWrap.append( $layerTitle );
if( current.description ) {
- $layerTitle.append( $showMore );
+ $layerTitle.append( $showMore );
}
- $layerHeader.append( $layerSubtitle );
+ $layerTitleWrap.append( $layerSubtitle );
if( current.description ) {
$.get('config/metadata/' + current.description + '.html')