Interactive interface for browsing global, full-resolution satellite imagery
Added more css lint rules and fixed issues as needed. - Disallowed duplicate selectors and removed a few examples of this in current files - Disallowed empty sources - Disallowed extra semicolons - Prevented adding double slash comments - Disallowed unknown animations - Disallowed color names (*This make it easier to control consistent color schemes and variable replacement when we go to move to sass) - Set max unit precision to no more than 6
ZachTRicec5d7ce373b60
diff --git a/.stylelintrc b/.stylelintrcindex 04bfc262a..fa76df990 100644--- a/.stylelintrc+++ b/.stylelintrc@@ -24,6 +24,13 @@"max-nesting-depth": [1, {ignore: "blockless-at-rules"}],+ "no-duplicate-selectors": true,+ "no-empty-source": true,+ "no-extra-semicolons": true,+ "no-invalid-double-slash-comments": true,+ "no-unknown-animations": true,+ "color-named": never,+ "number-max-precision": 6,"max-empty-lines": 1,}}diff --git a/web/css/bank.css b/web/css/bank.cssindex 6683e17d4..cc3797bce 100644--- a/web/css/bank.css+++ b/web/css/bank.css@@ -89,9 +89,14 @@ h4 {.bank h3 {display: block;color: #ffffff;- font-size: 1em;border: none;text-decoration: none;+ background: none;+ padding: 1px 3px;+ font-size: 0.9em;+ margin-top: 0;+ margin-left: 0;+ text-transform: uppercase;}#callSelectorLink {@@ -114,15 +119,6 @@ h4 {overflow: hidden;}-.bank h3 {- background: none;- padding: 1px 3px;- font-size: 0.9em;- margin-top: 0;- margin-left: 0;- text-transform: uppercase;-}-.bank li.item {padding: 0;overflow: hidden;@@ -242,10 +238,6 @@ img.hideReg {border-color: #fff;}-.bank li.item.productsitem .layer-main:hover a.hdanchor i {- background-position: 5px -36px;-}-.productsitem a.hdanchor.hideReg {width: 30px;background-color: #ccc;diff --git a/web/css/menuPicker.css b/web/css/menuPicker.cssindex 8ab8a24d4..43dbccd65 100644--- a/web/css/menuPicker.css+++ b/web/css/menuPicker.css@@ -1,13 +1,13 @@ul.menuPicker {margin: 0;padding: 0;- color: white;+ color: #fff;list-style: none;display: block;}ul.menuPicker li {- border: 1px solid black;+ border: 1px solid #000;background: #666;padding: 0.2em 1em;}diff --git a/web/css/wv.date.css b/web/css/wv.date.cssindex 21ce09929..ede52918b 100644--- a/web/css/wv.date.css+++ b/web/css/wv.date.css@@ -191,7 +191,7 @@ div.ui-slider {border: none;text-shadow: none;font-family: 'Open Sans', sans-serif;- color: white;+ color: #fff;background-color: rgba(40, 40, 40, 0.85);text-align: center;width: 100px;diff --git a/web/css/wv.debug.css b/web/css/wv.debug.cssindex 4bc2c99c5..d405898da 100644--- a/web/css/wv.debug.css+++ b/web/css/wv.debug.css@@ -15,6 +15,6 @@left: 200px;height: 45px;width: 525px;- background-color: white;+ background-color: #fff;z-index: 10000;}diff --git a/web/css/wv.events.css b/web/css/wv.events.cssindex 7dd002b1c..7a9ca73ce 100644--- a/web/css/wv.events.css+++ b/web/css/wv.events.css@@ -115,7 +115,7 @@.map-item-list li.item h4.mark {font-weight: bold;- color: red;+ color: #ff0000;}#wv-events li i.map-marker {diff --git a/web/css/wv.layers.modal.css b/web/css/wv.layers.modal.cssindex c485018a7..cf48ed1db 100644--- a/web/css/wv.layers.modal.css+++ b/web/css/wv.layers.modal.css@@ -13,7 +13,6 @@z-index: 10200;}-.layer-modal div,.layer-modal div,.layer-modal h1,.layer-modal h2,@@ -272,7 +271,7 @@#categories-nav {height: 35px;line-height: 35px;- margin: 0;+ margin: 0 10px 0 0;border-bottom: 3px solid #00457b;}@@ -300,7 +299,7 @@#category-breadcrumb a,#category-breadcrumb a:link,#category-breadcrumb a:visited {- color: blue;+ color: #0000ff;}#selected-category {@@ -636,10 +635,6 @@padding-right: 10px;}-#categories-nav {- margin-right: 10px;-}-/* perfect-scrollbar */.ps-container > .ps-scrollbar-y-rail,.ps-container > .ps-scrollbar-y-rail .ps-scrollbar-y {diff --git a/web/css/wv.main.css b/web/css/wv.main.cssindex a21d701ea..05db9f4b7 100644--- a/web/css/wv.main.css+++ b/web/css/wv.main.css@@ -332,7 +332,7 @@ div.horizontalContainer {display: none;background: rgba(38, 43, 49, 0.45);text-shadow: none;- color: white;+ color: #fff;float: left;font-size: 11px;text-align: left;@@ -364,7 +364,7 @@ div.horizontalContainer {}#transition ul li:hover {- border-color: yellow;+ border-color: #ffff00;}#wv-logo {@@ -427,7 +427,7 @@ div.horizontalContainer {.ui-menu {position: absolute;- width: 100px;+ width: 150px;z-index: 1000;}@@ -520,10 +520,6 @@ a:hover {margin-top: 10px;}-.ui-menu {- width: 150px;-}-.ui-menu-item {font-size: 13px;}diff --git a/web/css/wv.palettes.css b/web/css/wv.palettes.cssindex ec58974a2..90d86f321 100644--- a/web/css/wv.palettes.css+++ b/web/css/wv.palettes.css@@ -242,7 +242,7 @@}.wv-palettes-color-box {- border: 1px solid black;+ border: 1px solid #000;margin-right: 10px;padding: 2px 8px;}diff --git a/web/css/wv.timeline.css b/web/css/wv.timeline.cssindex 752a2ca50..b9e2bd127 100644--- a/web/css/wv.timeline.css+++ b/web/css/wv.timeline.css@@ -349,7 +349,7 @@ g.plot rect.data-bar-invisible {.x.axis .selection {display: block;- stroke: steelblue;+ stroke: #4682b4;}#timeline-zoom {diff --git a/web/css/wv.tour.css b/web/css/wv.tour.cssindex 72a1ab04d..2b0ca6051 100644--- a/web/css/wv.tour.css+++ b/web/css/wv.tour.css@@ -245,7 +245,7 @@ button.done:hover {position: fixed;width: 100%;height: 100%;- background-color: black;+ background-color: #000;opacity: 0.5;-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";filter: alpha(opacity=50);@@ -263,9 +263,9 @@ button.done:hover {width: 405px;position: relative;margin: 0 auto;- background-color: white;+ background-color: #fff;padding: 10px;- border: 1px solid black;+ border: 1px solid #000;}.joyride-tip-guide {