Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

style fixes, remove dead css styling

Ed Plato2a69034a1e8f
diff --git a/e2e/features/notifications/notify-test.js b/e2e/features/notifications/notify-test.js
index 3ac339b0f..d1788fa7e 100644
--- a/e2e/features/notifications/notify-test.js
+++ b/e2e/features/notifications/notify-test.js
@@ -2,7 +2,7 @@ const TIME_LIMIT = 30000;
const mockParam = '?mockAlerts=';
// Selectors
const infoButton = '#wv-info-button';
-const infoButtonIcon = '#wv-info-button i';
+const infoButtonIcon = '#wv-info-button svg.svg-inline--fa';
const infoMenu = '#toolbar_info';
const giftListItem = '#toolbar_info li.gift';
const boltListItem = '#toolbar_info li.bolt';
diff --git a/web/css/alert.css b/web/css/alert.css
index 23a1e9429..ef24f2543 100644
--- a/web/css/alert.css
+++ b/web/css/alert.css
@@ -22,12 +22,12 @@
background-color: #ddd;
color: #333;
}
-.wv-alert i {
+.wv-alert svg.svg-inline--fa {
color: #d54e21;
margin-right: 10px;
font-size: 1.4em;
}
-.wv-alert i.exit {
+.wv-alert svg.svg-inline--fa.exit {
color: #fff;
margin-left: 10px;
font-size: 1.4em;
diff --git a/web/css/anim.widget.css b/web/css/anim.widget.css
index 954e05622..e3c87f5cb 100644
--- a/web/css/anim.widget.css
+++ b/web/css/anim.widget.css
@@ -336,31 +336,3 @@ a .wv-animation-widget-icon {
display: inline;
position: relative;
}
-
-.jcrop-tracker .wv-dl-gif-bt-case {
- width: inherit;
- position: relative;
- height: inherit;
-}
-
-.jcrop-tracker .wv-dl-gif-bt-case i {
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- -webkit-transform: translate(-50%, -50%);
- color: #d54e21;
- position: absolute;
- transition: color 0.5s ease;
-}
-
-.jcrop-tracker .wv-dl-gif-bt-case i:hover {
- color: #f4f5f5;
- cursor: pointer;
-}
-
-.jcrop-tracker .wv-dl-gif-bt-case.disabled i,
-.jcrop-tracker .wv-dl-gif-bt-case.disabled i:hover {
- cursor: default;
- color: transparent;
- pointer-events: none;
-}
diff --git a/web/css/events.css b/web/css/events.css
index 9d077e8be..0cf76d33a 100644
--- a/web/css/events.css
+++ b/web/css/events.css
@@ -73,7 +73,7 @@
font-weight: 700;
}
-.wv-eventslist .map-item-list li.item .fa-external-link {
+.wv-eventslist .map-item-list li.item .fa-external-link-alt {
margin: 0;
position: absolute;
top: 50%;
@@ -314,8 +314,7 @@
padding: 10px;
}
-.wv-alert,
-.notify-alert {
+.wv-alert {
position: relative;
color: #fff;
background: #282828;
@@ -323,81 +322,12 @@
border-radius: 0;
}
-.notify-alert .ui-dialog-content div::after {
- pointer-events: none;
- transform: translateY(50%);
- bottom: 50%;
- height: 10px;
- content: "Read more \002026 ";
- float: right;
- position: absolute;
- display: block;
- z-index: 999;
- right: 45px;
- font-size: 13px;
-}
-
-.notify-alert .ui-dialog-content div:hover::after {
- color: #000;
-}
-
-@media screen and (max-device-height: 720px) {
- .notify-alert {
- display: none;
- }
-}
-
@media only screen and (max-width: 420px) {
- .wv-alert,
- .notify-alert {
+ .wv-alert {
left: 10px !important;
}
}
-.notify-alert i {
- font-size: 1.4em;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- line-height: 40px;
-}
-
-.notify-alert .ui-dialog-content div > i {
- color: #d54e21;
- margin-right: 10px;
- margin-left: 10px;
-}
-
-.notify-alert .ui-dialog-content div {
- margin-right: 40px;
-}
-
-.notify-alert .ui-dialog-content div:hover {
- background: #ccc;
- cursor: pointer;
-}
-
-.notify-alert .ui-dialog-content div:hover span {
- color: #000;
-}
-
-.notify-alert .ui-dialog-content > i {
- float: right;
- padding: 0 10px;
-}
-
-.notify-alert .ui-dialog-content > i:hover {
- cursor: pointer;
- background: #ccc;
- color: #333;
-}
-
-.notify-alert .ui-dialog-content {
- padding: 0;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- line-height: 40px;
-}
-
.event-alert-modal-body ul {
padding-left: 20px;
margin: 10px 0;
diff --git a/web/css/layers.css b/web/css/layers.css
index 99c79ab16..f89848bb7 100644
--- a/web/css/layers.css
+++ b/web/css/layers.css
@@ -777,6 +777,10 @@
border-color: #666;
}
+.sidebar-panel li.item a {
+ color: #22a;
+}
+
.custom-layer-dialog {
margin: 5px auto;
diff --git a/web/css/list.css b/web/css/list.css
index 972878eca..ac3eacfee 100644
--- a/web/css/list.css
+++ b/web/css/list.css
@@ -14,6 +14,7 @@
.list-group-item svg.svg-inline--fa {
margin-right: 6px;
line-height: 1.5;
+ height: 1em;
}
button.list-group-item {
cursor: pointer;
diff --git a/web/css/measure.css b/web/css/measure.css
index dadcc1960..c191b0595 100644
--- a/web/css/measure.css
+++ b/web/css/measure.css
@@ -17,7 +17,7 @@
& .form-check-label {
margin-left: 24px;
}
- & i {
+ & svg.svg-inline--fa {
margin-left: 5px;
}
& .form-check-input {
diff --git a/web/css/mobile.css b/web/css/mobile.css
index df783c2f7..e3707a72a 100644
--- a/web/css/mobile.css
+++ b/web/css/mobile.css
@@ -141,8 +141,4 @@
#selected-category .ui-tabs-panel li.measurement-settings-item {
margin-left: 0;
}
-
- .notify-alert {
- visibility: hidden;
- }
}
diff --git a/web/css/orbitTracks.css b/web/css/orbitTracks.css
index b21c92dbb..90bccbc92 100644
--- a/web/css/orbitTracks.css
+++ b/web/css/orbitTracks.css
@@ -5,14 +5,14 @@
.wv-orbit-track {
padding-top: 4px;
background-color: #ccc;
- & i {
+ & svg.svg-inline--fa {
color: #333;
}
&.not-visible {
background: rgba(255, 255, 255, 0.2);
color: #999;
- & i {
+ & svg.svg-inline--fa {
color: #999;
}
}
diff --git a/web/css/timeline.css b/web/css/timeline.css
index fe33af899..0904b6738 100644
--- a/web/css/timeline.css
+++ b/web/css/timeline.css
@@ -21,7 +21,6 @@ button:focus {
}
#timeline-header {
- position: relative;
margin-top: 2px;
min-width: 310px;
display: inline-block;
@@ -226,6 +225,10 @@ button:focus {
}
}
+.timeline-header-desktop {
+ position: relative;
+}
+
#zoom-buttons-group {
position: relative;
}
@@ -624,6 +627,10 @@ button:focus {
}
/* Mobile date picker */
+.timeline-header-mobile {
+ position: static;
+}
+
.mobile-date-picker-select-btn {
position: absolute;
left: 10px;
diff --git a/web/js/components/layer/product-picker/search-layer-row.js b/web/js/components/layer/product-picker/search-layer-row.js
index c10a54e69..f98031494 100644
--- a/web/js/components/layer/product-picker/search-layer-row.js
+++ b/web/js/components/layer/product-picker/search-layer-row.js
@@ -88,6 +88,8 @@ class LayerRow extends React.Component {
: 'search-row layers-all-layer';
const checkboxClass = checked ? 'wv-checkbox checked' : 'wv-checkbox';
+ console.log(description, isMetadataShowing);
+
return (
<div id={layer.id + '-search-row'} className={rowClass}>
<div className={checkboxClass}>
diff --git a/web/js/components/util/alert.js b/web/js/components/util/alert.js
index c3c154c6e..6f087920b 100644
--- a/web/js/components/util/alert.js
+++ b/web/js/components/util/alert.js
@@ -48,6 +48,9 @@ export default class AlertComponent extends React.Component {
onDismiss,
onClick
} = this.props;
+ const icon = iconClassName
+ ? alertIcons[iconClassName] || faExclamationTriangle
+ : faExclamationTriangle;
return (
<Alert
id={this.props.id}
@@ -59,9 +62,7 @@ export default class AlertComponent extends React.Component {
title={title}
onClick={onClick}
>
- {iconClassName && (
- <FontAwesomeIcon icon={alertIcons[iconClassName] || faExclamationTriangle} className="wv-alert-icon" size="1x" />
- )}
+ <FontAwesomeIcon icon={icon} className="wv-alert-icon" size="1x" />
<div className="wv-alert-message">
{message}
</div>
diff --git a/web/js/containers/animation-widget.js b/web/js/containers/animation-widget.js
index 65097cc75..bed333e97 100644
--- a/web/js/containers/animation-widget.js
+++ b/web/js/containers/animation-widget.js
@@ -504,7 +504,7 @@ class AnimationWidget extends React.Component {
onMouseEnter={this.toggleHoverGif}
onMouseLeave={this.toggleHoverGif}
>
- <FontAwesomeIcon icon={faFileVideo} className='wv-animation-widget-icon' />
+ <FontAwesomeIcon icon={faFileVideo} id="wv-animation-widget-file-video-icon" className='wv-animation-widget-icon' />
</a>
{this.renderToolTip()}
diff --git a/web/js/containers/timeline/timeline.js b/web/js/containers/timeline/timeline.js
index 50280ba15..a53eb35ab 100644
--- a/web/js/containers/timeline/timeline.js
+++ b/web/js/containers/timeline/timeline.js
@@ -984,7 +984,7 @@ class Timeline extends React.Component {
<ErrorBoundary>
{isSmallScreen
/* Mobile Timeline Size */
- ? <div id="timeline-header">
+ ? <div id="timeline-header" className="timeline-header-mobile">
<div id="date-selector-main">
<MobileDatePicker
date={selectedDate}
@@ -1015,7 +1015,7 @@ class Timeline extends React.Component {
/* Normal Timeline Size */
: <section id="timeline" className="timeline-inner clearfix">
<div id="timeline-header"
- className={hasSubdailyLayers ? 'subdaily' : ''}
+ className={`timeline-header-desktop ${hasSubdailyLayers ? 'subdaily' : ''}`}
>
{/* Date Selector, Interval, Arrow Controls */}
<div id="date-selector-main">
diff --git a/web/js/map/rotation.js b/web/js/map/rotation.js
index 34592127e..2c2f30308 100644
--- a/web/js/map/rotation.js
+++ b/web/js/map/rotation.js
@@ -55,7 +55,7 @@ export function MapRotate(ui, models, store) {
var $resetButton = $('<button></button>')
.addClass('wv-map-reset-rotation wv-map-zoom')
.attr('title', 'Click to reset')
- .attr('style', 'width: 43px');
+ .attr('style', 'width: 42px');
$rotateLeftButton.append($lefticon);
$rotateRightButton.append($righticon);