Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

move measure tooltip styling for reuse, add crosshair utility style

Ed Plato5512c2a5b679
diff --git a/web/css/measure.css b/web/css/measure.css
index 3377e45e8..eeb11e396 100644
--- a/web/css/measure.css
+++ b/web/css/measure.css
@@ -62,53 +62,3 @@
}
}
}
-
-.tooltip-measure {
- position: relative;
- font-weight: 500;
- font-size: 16px;
- font-family: 'Roboto Mono', monospace;
- background: #000;
- border-radius: 4px;
- color: #fff;
- padding: 5px 8px;
- white-space: nowrap;
- box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.75);
- border: 1px solid rgba(255, 255, 255, 0.5);
- &.tooltip-active {
- opacity: 0.85;
- color: #ddd;
- background-color: #333;
- }
- &.tooltip-static {
- color: #fff;
- background-color: #000;
- }
- &.tooltip-active::before,
- &.tooltip-static::before {
- border-top: 6px solid rgba(0, 0, 0, 1);
- border-right: 6px solid transparent;
- border-left: 6px solid transparent;
- content: "";
- position: absolute;
- bottom: -6px;
- margin-left: -7px;
- left: 50%;
- }
- &.tooltip-static::before {
- border-top-color: #000;
- }
- .remove-measurement {
- margin-left: 8px;
- border-left: 1px solid #777;
- padding-left: 6px;
- }
- .svg-inline--fa {
- width: 12px;
- color: #ccc;
- &:hover {
- cursor: pointer;
- color: #fff;
- }
- }
-}
diff --git a/web/css/tooltip.css b/web/css/tooltip.css
index b487279f6..8d428ee56 100644
--- a/web/css/tooltip.css
+++ b/web/css/tooltip.css
@@ -83,3 +83,70 @@
font-family: "Lucida Console", monospace;
font-weight: 300;
}
+
+/* Tooltip Custom - Measurement Tool, Geosearch Coordinates */
+.tooltip-custom-black {
+ position: relative;
+ font-weight: 500;
+ font-size: 16px;
+ font-family: 'Roboto Mono', monospace;
+ background: #000;
+ border-radius: 4px;
+ color: #fff;
+ padding: 5px 8px;
+ white-space: nowrap;
+ box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.75);
+ border: 1px solid rgba(255, 255, 255, 0.5);
+ &.tooltip-active {
+ opacity: 0.85;
+ color: #ddd;
+ background-color: #333;
+ }
+ &.tooltip-static {
+ color: #fff;
+ background-color: #000;
+ }
+ &.tooltip-active::before,
+ &.tooltip-static::before {
+ border-top: 6px solid rgba(0, 0, 0, 1);
+ border-right: 6px solid transparent;
+ border-left: 6px solid transparent;
+ content: "";
+ position: absolute;
+ bottom: -6px;
+ margin-left: -7px;
+ left: 50%;
+ }
+ &.tooltip-static::before {
+ border-top-color: #000;
+ }
+ .tooltip-coordinates-title {
+ font-size: 16px;
+ padding-right: 23px;
+ }
+ .tooltip-coordinates-group {
+ display: flex;
+ margin-top: 6px;
+ & div:nth-child(2) {
+ padding-left: 15px;
+ }
+ }
+ .close-tooltip {
+ margin-left: 8px;
+ border-left: 1px solid #777;
+ padding-left: 6px;
+ &.coordinates-dialog-close {
+ position: absolute;
+ top: 4px;
+ right: 6px;
+ }
+ }
+ .svg-inline--fa {
+ width: 12px;
+ color: #ccc;
+ &:hover {
+ cursor: pointer;
+ color: #fff;
+ }
+ }
+}
diff --git a/web/css/util.css b/web/css/util.css
index 504537ffa..5c3e40d44 100644
--- a/web/css/util.css
+++ b/web/css/util.css
@@ -27,3 +27,6 @@
.cursor-pointer {
cursor: pointer;
}
+.cursor-crosshair {
+ cursor: crosshair;
+}