Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

remove unused perfect scrollbar dependency

Jason Kentf24794322234
diff --git a/package-lock.json b/package-lock.json
index b0b601f1e..a02a95927 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12482,11 +12482,6 @@
"integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=",
"dev": true
},
- "perfect-scrollbar": {
- "version": "0.8.1",
- "resolved": "https://registry.npmjs.org/perfect-scrollbar/-/perfect-scrollbar-0.8.1.tgz",
- "integrity": "sha512-RNC5tX/JMRYR+qVdJTEAWnRxw0Yf9lvbO8lTuAOvgDODkiA8lveTSkvrNMhmaGKEyimJpJl+myb/syVS9YyPuw=="
- },
"performance-now": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
diff --git a/web/css/palettes.css b/web/css/palettes.css
index 32664f54e..fde8f5e45 100644
--- a/web/css/palettes.css
+++ b/web/css/palettes.css
@@ -4,15 +4,6 @@
position: relative;
}
-/* perfect scrollbars */
-.wv-palette-selector .ps__scrollbar-y-rail {
- background-color: transparent;
-}
-
-.wv-palette-selector .ps__scrollbar-y {
- background: #ccc;
-}
-
.wv-palette-selector-row {
background: #eee;
padding: 0.5em;
diff --git a/web/css/scrollbar.css b/web/css/scrollbar.css
index eb1181754..ee051b88b 100644
--- a/web/css/scrollbar.css
+++ b/web/css/scrollbar.css
@@ -1,56 +1,14 @@
-/***************** perfect-scrollbar overrides ***********************/
-.ps > .ps__scrollbar-y-rail,
-.ps > .ps__scrollbar-y-rail .ps__scrollbar-y,
-.ps > .ps__scrollbar-y-rail:hover > .ps__scrollbar-y,
-.ps > .ps__scrollbar-y-rail:active > .ps__scrollbar-y {
- border-radius: 0;
- -webkit-border-radius: 0;
- -moz-border-radius: 0;
- -o-border-radius: 0;
- -webkit-transition: none;
- -moz-transition: none;
- -o-transition: none;
- transition: none;
- opacity: 1;
- width: 8px;
- right: 0;
-}
-
-.ps > .ps__scrollbar-y-rail .ps__scrollbar-y {
- background-color: #666;
-}
-
-/* Remove disappear and modify colors */
-.ps:hover > .ps__scrollbar-x-rail,
-.ps:hover > .ps__scrollbar-y-rail {
- opacity: 1;
-}
-
-.ps:hover > .ps__scrollbar-x-rail:hover,
-.ps:hover > .ps__scrollbar-y-rail:hover {
- background-color: #eee;
- opacity: 1;
-}
-
-.ps:hover > .ps__scrollbar-x-rail:hover > .ps__scrollbar-x,
-.ps:hover > .ps__scrollbar-y-rail:hover > .ps__scrollbar-y {
- background-color: #999;
-}
-
-/* Override Perfect Scrollbar styles in react-virtualized lists */
-.ps .ReactVirtualized__List {
- -ms-overflow-style: scrollbar; /* Turn scroll bars back on in IE */
-}
/***************** simple-scrollbar customizations ***********************/
-.vertical .simplebar-scrollbar::before {
+.simplebar-track .simplebar-scrollbar::before {
background-color: #999;
+ border-radius: 0;
width: 9px;
}
.scrollbar-hidden .simplebar-scrollbar {
display: none;
}
-.scrollbar-visible .vertical .simplebar-scrollbar::before {
+.scrollbar-visible .simplebar-track .simplebar-scrollbar::before {
opacity: 0.8;
border-radius: 0;
}
diff --git a/web/css/sidebar.css b/web/css/sidebar.css
index 64750ec84..c118f9bf8 100644
--- a/web/css/sidebar.css
+++ b/web/css/sidebar.css
@@ -175,14 +175,4 @@ footer .compare-toggle-button {
#productsHolder footer .action.ui-state-focus {
background: #d54e21;
background-image: none;
-}
-
-/* perfect scrollbars */
-#productsHolder .ps__scrollbar-y-rail {
- background-color: transparent;
- margin-top: 5px;
-}
-
-#productsHolder .ps__scrollbar-y {
- background: #ccc;
-}
+}
\ No newline at end of file
diff --git a/web/js/app.js b/web/js/app.js
index 684ad5104..7cfef442b 100644
--- a/web/js/app.js
+++ b/web/js/app.js
@@ -33,7 +33,6 @@ import '../../node_modules/icheck/skins/square/grey.css';
import '../../node_modules/icheck/skins/square/red.css';
import '../../node_modules/icheck/skins/line/red.css';
import '../../node_modules/jscrollpane/style/jquery.jscrollpane.css';
-import '../../node_modules/perfect-scrollbar/dist/css/perfect-scrollbar.css';
import '../../node_modules/jquery-jcrop/css/jquery.Jcrop.css';
import '../../node_modules/ol/ol.css';
import '../../node_modules/rc-slider/dist/rc-slider.css';