-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Better text as overlay * Make “Go to” button an icon button * Fix layout with scrolling and overflow shadow of right side * Show full stroke of fillable circle * Moved mapbox styles to a hack file, increased text shadow for better visibility
- Loading branch information
Showing
17 changed files
with
136 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// MapBox | ||
|
||
.mapContainer { | ||
flex-grow: 1; | ||
|
||
.mapboxgl-popup { | ||
z-index: 100; | ||
border-color: $euiColorEmptyShade; | ||
} | ||
|
||
.mapboxgl-popup-content { | ||
background-color: $euiColorEmptyShade; | ||
} | ||
|
||
.mapboxgl-popup-tip { | ||
border-top-color: $euiColorEmptyShade !important; | ||
} | ||
|
||
.mapboxgl-ctrl-top-left .mapboxgl-ctrl { | ||
margin-left: $euiSizeM; | ||
margin-top: $euiSizeM; | ||
} | ||
|
||
.mapboxgl-ctrl-group:not(:empty) { | ||
@include euiBottomShadowLarge; | ||
background-color: $euiColorEmptyShade; | ||
border-radius: $euiBorderRadius; | ||
|
||
> button { | ||
@include size($euiSizeXL); | ||
|
||
+ button { | ||
border: none; | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Custom SVG as background for zoom controls based off of EUI glyphs plusInCircleFilled and minusInCircleFilled | ||
// Also fixes dark mode | ||
.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-in { | ||
background-repeat: no-repeat; | ||
background-image: url("data:image/svg+xml,%0A%3Csvg width='15px' height='15px' viewBox='0 0 15 15' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='#{hexToRGB($euiTextColor)}' d='M8,7 L8,3.5 C8,3.22385763 7.77614237,3 7.5,3 C7.22385763,3 7,3.22385763 7,3.5 L7,7 L3.5,7 C3.22385763,7 3,7.22385763 3,7.5 C3,7.77614237 3.22385763,8 3.5,8 L7,8 L7,11.5 C7,11.7761424 7.22385763,12 7.5,12 C7.77614237,12 8,11.7761424 8,11.5 L8,8 L11.5,8 C11.7761424,8 12,7.77614237 12,7.5 C12,7.22385763 11.7761424,7 11.5,7 L8,7 Z M7.5,15 C3.35786438,15 0,11.6421356 0,7.5 C0,3.35786438 3.35786438,0 7.5,0 C11.6421356,0 15,3.35786438 15,7.5 C15,11.6421356 11.6421356,15 7.5,15 Z' /%3E%3C/svg%3E"); | ||
background-position: center; | ||
} | ||
|
||
.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-out { | ||
background-repeat: no-repeat; | ||
background-image: url("data:image/svg+xml,%0A%3Csvg width='15px' height='15px' viewBox='0 0 15 15' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='#{hexToRGB($euiTextColor)}' d='M7.5,0 C11.6355882,0 15,3.36441176 15,7.5 C15,11.6355882 11.6355882,15 7.5,15 C3.36441176,15 0,11.6355882 0,7.5 C0,3.36441176 3.36441176,0 7.5,0 Z M3.5,7 C3.22385763,7 3,7.22385763 3,7.5 C3,7.77614237 3.22385763,8 3.5,8 L11.5,8 C11.7761424,8 12,7.77614237 12,7.5 C12,7.22385763 11.7761424,7 11.5,7 L3.5,7 Z' /%3E%3C/svg%3E"); | ||
background-position: center; | ||
} |
2 changes: 2 additions & 0 deletions
2
x-pack/plugins/maps/public/components/widget_overlay/_index.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
x-pack/plugins/maps/public/components/widget_overlay/_mixins.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@mixin mapOverlayIsTextOnly() { | ||
text-shadow: | ||
0 0 2px $euiColorEmptyShade, | ||
// Multiple shadows helps turn it into an outline since | ||
// text shadows have no spread value | ||
0 0 1px $euiColorEmptyShade, | ||
0 0 1px $euiColorEmptyShade, | ||
0 0 1px $euiColorEmptyShade, | ||
0 0 1px $euiColorEmptyShade, | ||
0 0 1px $euiColorEmptyShade, | ||
0 0 1px $euiColorEmptyShade; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 15 additions & 17 deletions
32
...maps/public/components/widget_overlay/attribution_control/__snapshots__/view.test.js.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 3 additions & 1 deletion
4
...ugins/maps/public/components/widget_overlay/attribution_control/_attribution_control.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.mapAttributionControl { | ||
padding: 0 $euiSizeXS; | ||
@include mapOverlayIsTextOnly; | ||
pointer-events: all; | ||
padding-left: $euiSizeM; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...ugins/maps/public/components/widget_overlay/layer_control/__snapshots__/view.test.js.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.