Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

create compare-specific css #985

Benjamin Kingfbfef870fe8a
diff --git a/web/css/compare.css b/web/css/compare.css
new file mode 100644
index 000000000..4f78f420a
--- /dev/null
+++ b/web/css/compare.css
@@ -0,0 +1,38 @@
+.ab-swipe-line {
+ height: 100%;
+ padding: 0 2px 0 2px;
+ position: absolute;
+ top: 0;
+ width: 1px;
+ background: white;
+}
+.ab-swipe-dragger {
+ position: absolute;
+ top: 50%;
+ width: 30px;
+ height: 30px;
+ left: -12px;
+ border-radius: 50%;
+ color: black;
+ background: white;
+ text-align: center;
+}
+.ab-swipe-dragger:hover {
+ transform: scale(1.2);
+ cursor: grabbing;
+}
+.ab-swipe-dragger i {
+ font-size: 18px;
+ margin-top: 7px;
+}
+.ab-slider-case {
+ position: absolute;
+ margin-left: auto;
+ margin-right: auto;
+ left: 0;
+ right: 0;
+ bottom: 25%;
+ width: 150px;
+ text-align: center;
+ background: rgba(40, 40, 40, 0.85);
+}
diff --git a/web/css/main.css b/web/css/main.css
index 5cf540648..00357a280 100644
--- a/web/css/main.css
+++ b/web/css/main.css
@@ -21,6 +21,7 @@
@import url("alert.css");
@import url("sidebar-panel.css");
@import url("button.css");
+@import url("compare.css");
@import url("checkbox.css");
@import url("map.css");
@import url("link.css");