Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Merge branch 'development' of https://github.com/nasa-gibs/worldview into alerts-rework

Benjaminf84d206fccf6
diff --cc web/css/wv.alert.css
index 2070ef3b9,7c93b5b12..a2d9e3e80
--- a/web/css/wv.alert.css
+++ b/web/css/wv.alert.css
@@@ -1,68 -1,26 +1,68 @@@
#wv-info-button {
- -webkit-transition: background 1s;
+ -webkit-transition: background 500;
transition: background 500;
+ position: relative;
}
- #wv-info-button.exclamation-circle {
- background: #b3292b
+
+ #wv-info-button label::before {
+ content: attr(data-content) '';
+ display: block;
+ width: 20px;
+ height: 20px;
+ -moz-border-radius: 50%;
+ -webkit-border-radius: 50%;
+ border-radius: 50%;
+ background-color: #69b6d5;
+ position: absolute;
+ right: -5px;
+ top: -5px;
+ font-size: 14px;
+ text-align: center;
+ line-height: 1.45;
}
- #wv-info-button.bolt {
- background: #e5c937
+ #wv-info-button.wv-status-outage label::before{
+ background: #ff1a1e;
}
- #wv-info-button.gift {
- background: #40a9db
+ #wv-info-button.wv-status-alert label::before{
+ background: #e5c937;
}
-.ui-menu-item {}
- .ui-menu-item.exclamation-circle {
- background: #b3292b
+ #wv-info-button.wv-status-message label::before{
+ background: #40a9db;
}
- .ui-menu-item.bolt {
- background: #e5c937
+ #wv-info-button.wv-status-hide label::before{
+ display: none;
}
- .ui-menu-item.gift {
- background: #40a9db
+.ui-menu-item {
+ position: relative;
+}
+ .ui-menu-item a::before {
+ content: attr(data-content) '';
+ text-align: center;
+ font-weight: bold;
+ display: block;
+ width: 15px;
+ height: 15px;
+ line-height: 1.25;
+ -moz-border-radius: 50%;
+ -webkit-border-radius: 50%;
+ border-radius: 50%;
+ position: absolute;
+ font-size: 12px;
+ right: 10px;
}
+ .ui-menu-item.exclamation-circle {}
+ .ui-menu-item.exclamation-circle a::before {
+ background: #ff1a1e;
+ }
+ .ui-menu-item.bolt a::before {
+ background: #e5c937;
+ }
+ .ui-menu-item.gift a::before {
+ background: #40a9db;
+ }
+ .ui-menu-item a.wv-status-hide::before{
+ display: none;
+ }
.wv-notify-modal {
padding:0 20px;
}
diff --cc web/index.html
index cdd658f8f,ad3f894f1..a47ca4405
--- a/web/index.html
+++ b/web/index.html
@@@ -267,17 -273,16 +273,14 @@@
</head>
<body>
- </div>
<div data-role="page" id="app">
<div data-role="content">
-
- <ul id="wv-toolbar">
- <li id="wv-link-button" class="wv-toolbar-button"></li>
- <li id="wv-proj-button" class="wv-toolbar-button"></li>
- <li id="wv-image-button" class="wv-toolbar-button"></li>
- <li id="wv-info-button" class="wv-toolbar-button wv-status-hide"></li>
- </ul>
--
+ <ul id="wv-toolbar">
+ <li id="wv-link-button" class="wv-toolbar-button"></li>
+ <li id="wv-proj-button" class="wv-toolbar-button"></li>
+ <li id="wv-image-button" class="wv-toolbar-button"></li>
- <li id="wv-info-button" class="wv-toolbar-button"></li>
++ <li id="wv-info-button" class="wv-toolbar-button wv-status-hide"></li>
+ </ul>
-
<div id="wv-logo"></div>
<section id="productsHolder">
<ul id="productsHolder-tabs"></ul>