Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix firefox positioning issues, shared styles

Jason Kentc184b03574a5
diff --git a/web/css/anim.widget.css b/web/css/anim.widget.css
index 5a6c6c9f5..a6bf6423b 100644
--- a/web/css/anim.widget.css
+++ b/web/css/anim.widget.css
@@ -84,16 +84,6 @@
padding-right: 3px;
padding-left: 3px;
}
- & .thru-label {
- position: absolute;
- transform: translate(-50%, 0);
- -webkit-transform: translate(-50%, 0);
- color: #fff;
- left: 50%;
- text-align: center;
- bottom: 16px;
- z-index: 0;
- }
& .input-range {
cursor: pointer;
height: 13px;
@@ -119,6 +109,9 @@
cursor: pointer;
}
}
+ .wv-date-range-selector {
+ margin: 0;
+ }
}
a .wv-animation-widget-icon {
@@ -159,12 +152,6 @@ a .wv-animation-widget-icon {
font-size: 11px;
cursor: default;
}
-.wv-animation-widget .wv-anim-dates-case {
- height: 48px;
- width: 100%;
- position: relative;
- margin: 0;
-}
.wv-animation-widget .wv-date-selector-widget {
display: inline-block;
@@ -172,64 +159,6 @@ a .wv-animation-widget-icon {
top: 6px;
}
-.wv-animation-widget .wv-anim-dates-case .wv-date-selector-widget:nth-child(1) {
- left: 5px;
-}
-
-.wv-animation-widget .wv-anim-dates-case .wv-date-selector-widget:nth-child(3) {
- right: 10px;
-}
-
-.wv-animation-widget .wv-date-selector-widget svg {
- margin: 0 auto;
-}
-
-.wv-animation-widget .wv-date-selector-widget input {
- height: inherit;
- text-align: center;
- width: 100%;
-}
-
-.wv-animation-widget .wv-date-selector-widget .input-wrapper {
- z-index: 99;
- text-align: center;
- margin: 0 1px;
-}
-
-.wv-animation-widget .wv-date-selector-widget .input-wrapper-year {
- max-width: 38px;
-}
-
-.wv-animation-widget .wv-date-selector-widget .input-wrapper-month {
- max-width: 30px;
-}
-
-.wv-animation-widget .wv-date-selector-widget .input-wrapper-day,
-.wv-animation-widget .wv-date-selector-widget .input-wrapper-hour,
-.wv-animation-widget .wv-date-selector-widget .input-wrapper-minute {
- max-width: 25px;
-}
-
-.wv-animation-widget .wv-date-selector-widget .input-wrapper-hour {
- margin-left: 8px;
-}
-
-.wv-animation-widget .wv-date-selector-widget .input-time-divider {
- font-family: 'Roboto Mono', monospace;
- font-size: 15px;
- vertical-align: middle;
- width: 5px;
- margin-left: -5px;
-}
-
-.wv-animation-widget .wv-date-selector-widget .input-time-zmark {
- font-family: 'Roboto Mono', monospace;
- font-size: 15px;
- vertical-align: middle;
- margin-top: 2px;
- margin-left: -2px;
-}
-
#wv-rangeselector-case {
display: none;
}
diff --git a/web/css/dateselector.css b/web/css/dateselector.css
index 30b8a8103..2eb796de0 100644
--- a/web/css/dateselector.css
+++ b/web/css/dateselector.css
@@ -1,3 +1,5 @@
+
+
.wv-date-selector-widget .input-wrapper, .date-arrow-wrapper {
background: transparent;
border: 1px solid transparent;
@@ -164,3 +166,70 @@
.wv-date-selector-widget .wv-animate:hover {
color: #1a1a1a;
}
+
+.wv-date-range-selector {
+ height: 48px;
+ width: 100%;
+ position: relative;
+ margin: 0;
+ .wv-date-selector-widget {
+ position: absolute;
+ .input-wrapper {
+ z-index: 99;
+ text-align: center;
+ margin: 0 1px;
+ }
+ .input-wrapper-month {
+ width: 34px;
+ }
+ .input-wrapper-year {
+ width: 44px;
+ }
+ .input-wrapper-day,
+ .input-wrapper-hour,
+ .input-wrapper-minute {
+ width: 32px;
+ }
+ .input-wrapper-hour {
+ margin-left: 8px;
+ }
+ .input-time-divider {
+ font-family: 'Roboto Mono', monospace;
+ font-size: 15px;
+ vertical-align: middle;
+ width: 5px;
+ margin-left: -5px;
+ }
+ .input-time-zmark {
+ font-family: 'Roboto Mono', monospace;
+ font-size: 15px;
+ vertical-align: middle;
+ margin-top: 2px;
+ margin-left: -2px;
+ }
+ svg {
+ margin: 0 auto;
+ }
+ input {
+ height: inherit;
+ text-align: center;
+ width: 100%;
+ }
+ }
+ .wv-date-selector-widget:nth-child(1) {
+ left: 5px;
+ }
+ .wv-date-selector-widget:nth-child(3) {
+ right: 5px;
+ }
+ .thru-label {
+ position: absolute;
+ transform: translate(-50%, 0);
+ -webkit-transform: translate(-50%, 0);
+ color: #fff;
+ left: 50%;
+ text-align: center;
+ bottom: 16px;
+ z-index: 0;
+ }
+}
diff --git a/web/js/components/sidebar/events-filter.js b/web/js/components/sidebar/events-filter.js
index ee0857bcd..8d3047d0b 100644
--- a/web/js/components/sidebar/events-filter.js
+++ b/web/js/components/sidebar/events-filter.js
@@ -114,7 +114,7 @@ function EventsFilter (props) {
closeCalendar={false}
/> */}
- <div className="event-filter-date-range">
+ <div className="wv-date-range-selector">
<DateSelector
id="event-filter-start"
idSuffix="event-filter-start"
diff --git a/web/js/containers/animation-widget.js b/web/js/containers/animation-widget.js
index 497174dc9..73e444728 100644
--- a/web/js/containers/animation-widget.js
+++ b/web/js/containers/animation-widget.js
@@ -537,7 +537,7 @@ class AnimationWidget extends React.Component {
{this.renderCreateGifButton()}
{/* From/To Date/Time Selection */}
- <div className="wv-anim-dates-case">
+ <div className="wv-date-range-selector">
<TimeSelector
id="start"
idSuffix="animation-widget-start"