-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create and use mixins in draw and rendered shapes
- Loading branch information
Showing
13 changed files
with
153 additions
and
144 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{% extends '../../src/_includes/layout.njk' %} | ||
{% block html %} | ||
<div id="events"></div> | ||
<!--The div element for the map --> | ||
<div id="map"></div> | ||
<div id="container"> | ||
<div id="map"></div> | ||
<div class="events" id="sidebar"></div> | ||
</div> | ||
{% endblock %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
{% extends '../../src/_includes/layout.njk' %} | ||
{% block html %} | ||
<div id="buttons"> | ||
<button id="getAll" type="button">Export</button> | ||
</div> | ||
<div class="container"> | ||
<button class="btn" id="getDrawData" type="button"> | ||
<span class="btnText" tabindex="-1">Get GeoJSON</span> | ||
</button> | ||
</div> | ||
<!--The div element for the map --> | ||
<div id="map"></div> | ||
<div id="myModal" class="modal"> | ||
<div class="modal-overlay closed" id="modal-overlay"></div> | ||
<div class="modal closed" id="modal"> | ||
<!-- Modal content --> | ||
<div class="modal-content" id="modal-content" /> | ||
<div class="modal-content" id="modal-content"></div> | ||
</div> | ||
{% endblock %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{% extends '../../src/_includes/layout.njk' %} | ||
{% block html %} | ||
<div id="events"></div> | ||
<!--The div element for the map --> | ||
<div id="map"></div> | ||
<div id="container"> | ||
<div id="map"></div> | ||
<div class="events" id="sidebar"></div> | ||
</div> | ||
{% endblock %} |
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 |
---|---|---|
@@ -1,40 +1,26 @@ | ||
@use 'sass:meta'; // To enable @use via meta.load-css and keep comments in order | ||
|
||
/* [START woosmap_render_shapes_data_events] */ | ||
@include meta.load-css("../../shared/scss/_default.scss"); | ||
#map { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 25%; | ||
bottom: 0; | ||
} | ||
|
||
#events { | ||
position: absolute; | ||
top: 0; | ||
left: 75%; | ||
right: 0; | ||
bottom: 0; | ||
border-right: 2px solid #f5f5f5; | ||
border-bottom: 1px solid #f5f5f5; | ||
font-family: "Droid Sans Mono", monospace; | ||
} | ||
|
||
.event { | ||
transition: background-color 0.5s ease-out; | ||
padding: 0.5em; | ||
overflow: hidden; | ||
font-size: 14px; | ||
} | ||
|
||
.active { | ||
background-color: #ffdd00; | ||
color: #000; | ||
} | ||
|
||
.inactive { | ||
background-color: white; | ||
} | ||
@include meta.load-css("../../shared/scss/_sidebar.scss"); | ||
|
||
.events { | ||
font-family: "Droid Sans Mono", monospace; | ||
} | ||
|
||
.event { | ||
transition: background-color 0.5s ease-out; | ||
padding: 0.5em; | ||
overflow: hidden; | ||
font-size: 14px; | ||
} | ||
|
||
.active { | ||
background-color: #ffdd00; | ||
color: #000; | ||
} | ||
|
||
.inactive { | ||
background-color: white; | ||
} | ||
|
||
/* [END woosmap_render_shapes_data_events] */ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.modal { | ||
display: block; | ||
width: 80%; | ||
max-width: 100%; | ||
height: 80%; | ||
max-height: 100%; | ||
position: fixed; | ||
z-index: 100; | ||
left: 50%; | ||
top: 50%; | ||
transform: translate(-50%, -50%); | ||
background: white; | ||
box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.25); | ||
} | ||
|
||
.modal-content { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
overflow: auto; | ||
padding: 20px 50px 20px 20px; | ||
box-sizing: border-box; | ||
} | ||
|
||
.modal-overlay { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
z-index: 50; | ||
background: rgba(0, 0, 0, 0.6); | ||
} | ||
|
||
.closed { | ||
display: none; | ||
} |