Skip to content

Commit 89e255f

Browse files
authored
map fixess
1 parent 81d5a0c commit 89e255f

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

_includes/researchmap.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<style>
2-
.map-wrap { position: relative; display: block; width: 100%; }
2+
.map-wrap {
3+
position: relative;
4+
display: block;
5+
width: 100%;
6+
clear: both; /* This prevents the map from 'floating' up into the header space */
7+
margin-top: 20px;
8+
}
9+
/* old line 2: .map-wrap { position: relative; display: block; width: 100%; }
310
411
/* Your background map image */
512
.map-wrap img.basemap { width: 100%; display: block; }

assets/css/main.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,14 @@
4141
"vendor/font-awesome/solid",
4242
"vendor/font-awesome/brands"
4343
;
44-
/* Fix for dark mode toggle shifting on the map page */
44+
/* Fix for dark mode toggle shifting */
45+
.greedy-nav .search-toggle,
4546
.greedy-nav .nav-selector {
46-
z-index: 2000 !important; /* Keep it above Leaflet (default 1000) */
47-
display: flex;
48-
align-items: center;
47+
display: flex !important;
48+
align-items: center !important;
49+
vertical-align: middle !important;
4950
}
5051

51-
#map {
52-
/* Prevent the map from expanding and pushing the header */
53-
margin-top: 20px;
54-
clear: both;
52+
.greedy-nav {
53+
overflow: visible !important; /* Prevents the icon from being 'pushed' out of view */
5554
}

0 commit comments

Comments
 (0)