Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Adjust responsive and add close icon

ZachTRicefae6e3d38807
diff --git a/web/css/tour.css b/web/css/tour.css
index b69c0c5bc..e1037c3b2 100644
--- a/web/css/tour.css
+++ b/web/css/tour.css
@@ -4,10 +4,38 @@
}
.tour .close {
- color: #fff;
+ position: absolute;
+ top: auto;
+ right: 6px;
+ height: 26px;
+ width: 26px;
+ padding: 0;
+ margin: 0;
opacity: 1;
}
+.tour .icon-close {
+ display: block;
+ position: relative;
+ height: 26px;
+ width: 26px;
+ margin: 0;
+ background: url(../images/wv-icons.png) 52px 0;
+ background-repeat: no-repeat;
+}
+
+.tour .close-sm {
+ height: 13px;
+ width: 13px;
+}
+
+.tour .close-sm .icon-close {
+ height: 13px;
+ width: 13px;
+ background: url(../images/wv-icons.png) -13px 0;
+ background-size: 39px 26px;
+}
+
.tour a {
color: #00457b;
font-weight: 600;
@@ -250,11 +278,6 @@
}
.tour-in-progress .modal-header .close {
- position: absolute;
- top: 4px;
- right: 4px;
- padding: 0;
- margin: 0;
}
.tour-in-progress .modal-title {
@@ -484,6 +507,7 @@
}
.tour-complete .modal-header {
+ position: relative;
border-radius: 0;
background-color: rgb(0, 69, 123);
}
@@ -551,7 +575,9 @@
}
.tour-complete .modal-footer {
-
+ display: block;
+ border-top: none;
+ padding: 8px 15px 15px;
}
.tour-complete .modal-footer .btn {
@@ -560,18 +586,52 @@
font-weight: 300;
padding: 2px 25px 4px;
border-radius: 0;
+ margin: 0 0 4px 0;
+ width: 100%;
}
.tour-complete .modal-footer .btn-primary {
+ background-color: #133f90;
+ border-color: #133f90;
+}
+.tour-complete .modal-footer .btn-primary:hover,
+.tour-complete .modal-footer .btn-primary:focus {
+ background-color:#133f77;
+ border-color: #133f77;
}
.tour-complete .modal-footer .btn-secondary {
+ background-color: #f15521;
+ border-color: #f15521;
+}
+.tour-complete .modal-footer .btn-secondary:hover,
+.tour-complete .modal-footer .btn-secondary:focus {
+ background-color: #d54e21;
+ border-color: #d54e21;
}
/* Breakpoint: Small (576px to 767px) */
-/* @media (min-width: 576px) {} */
+@media (min-width: 576px) {
+ .tour-complete .modal-footer {
+ display: flex;
+ justify-content: center;
+ }
+
+ .tour-complete .modal-footer .btn {
+ width: auto;
+ margin-bottom: 0;
+ }
+
+ .tour-complete .modal-footer > :not(:last-child) {
+ margin-right: 10px;
+ }
+
+ .tour-complete .modal-footer > :not(:first-child) {
+ margin-left: 10px;
+ }
+}
/* Breakpoint: Medium (768px to 991px) */
@media (min-width: 768px) {
@@ -717,17 +777,6 @@
}
.tour-complete .modal-footer {
- justify-content: center;
- border-top: none;
- padding: 8px 15px 15px;
- }
-
- .tour-complete .modal-footer > :not(:last-child) {
- margin-right: 10px;
- }
-
- .tour-complete .modal-footer > :not(:first-child) {
- margin-left: 10px;
}
.tour-complete .modal-footer .btn {
@@ -735,25 +784,17 @@
}
.tour-complete .modal-footer .btn-primary {
- background-color: #133f90;
- border-color: #133f90;
}
.tour-complete .modal-footer .btn-primary:hover,
.tour-complete .modal-footer .btn-primary:focus {
- background-color:#133f77;
- border-color: #133f77;
}
.tour-complete .modal-footer .btn-secondary {
- background-color: #f15521;
- border-color: #f15521;
}
.tour-complete .modal-footer .btn-secondary:hover,
.tour-complete .modal-footer .btn-secondary:focus {
- background-color: #d54e21;
- border-color: #d54e21;
}
}
diff --git a/web/modal01-start.html b/web/modal01-start.html
index 2a16bbe6d..95e8fb64c 100644
--- a/web/modal01-start.html
+++ b/web/modal01-start.html
@@ -2334,7 +2334,7 @@
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Welcome to Worldview!</h5>
- <button type="button" class="close" aria-label="Close"><span aria-hidden="true">X</span></button>
+ <button type="button" class="close" aria-label="Close"><i class="icon-close" aria-hidden="true"></i></button>
</div>
<div class="modal-body">
<div class="tour-intro">
diff --git a/web/modal02-in-progress.html b/web/modal02-in-progress.html
index ef0ec9584..11960c930 100644
--- a/web/modal02-in-progress.html
+++ b/web/modal02-in-progress.html
@@ -2335,7 +2335,7 @@
<div class="modal-header">
<h5 class="modal-title">Story title</h5>
<i class="modal-icon" aria-hidden="true"></i>
- <button type="button" class="close" aria-label="Close"><span aria-hidden="true">X</span></button>
+ <button type="button" class="close close-sm" aria-label="Close"><i class="icon-close" aria-hidden="true"></i></button>
</div>
<div class="modal-body">
<p>An iceberg about the size of the
diff --git a/web/modal03-complete.html b/web/modal03-complete.html
index 103e41b7c..2d19f9a9c 100644
--- a/web/modal03-complete.html
+++ b/web/modal03-complete.html
@@ -2334,7 +2334,7 @@
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Story title</h5>
- <button type="button" class="close" aria-label="Close"><span aria-hidden="true">X</span></button>
+ <button type="button" class="close" aria-label="Close"><i class="icon-close" aria-hidden="true"></i></button>
</div>
<div class="modal-body">
<p>You have now completed a story in Worldview. To view more stories, click the "More Stories" button below or, <a href="#">explore more events</a> within the app. Click the "Exit Tutorial" button or close this window to start using Worldview on your own.</p>