Skip to content

Commit c383010

Browse files
authored
css
1 parent 89e255f commit c383010

3 files changed

Lines changed: 24 additions & 9 deletions

File tree

_includes/researchmap.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
position: relative;
44
display: block;
55
width: 100%;
6-
clear: both; /* This prevents the map from 'floating' up into the header space */
7-
margin-top: 20px;
6+
clear: both; /* CRITICAL: This forces the map to stay below the nav */
7+
margin-top: 50px; /* Gives the header some breathing room */
88
}
99
/* old line 2: .map-wrap { position: relative; display: block; width: 100%; }
1010

_layouts/default.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
<!doctype html>
88
<html lang="{{ site.locale | slice: 0,2 }}" class="no-js"{% if site.site_theme == "dark" %} data-theme="dark"{% endif %}>
99
<head>
10+
<style>
11+
.masthead { /* new stuff */
12+
z-index: 20;
13+
position: relative;
14+
}
15+
</style>
1016
{% include head.html %}
1117
{% include head/custom.html %}
1218
</head>

assets/css/main.scss

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,23 @@
4141
"vendor/font-awesome/solid",
4242
"vendor/font-awesome/brands"
4343
;
44-
/* Fix for dark mode toggle shifting */
44+
/* --- edits being added --- */
45+
@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}";
46+
@import "minimal-mistakes";
47+
48+
/* --- PASTE THIS AT THE VERY BOTTOM --- */
49+
.greedy-nav {
50+
position: relative;
51+
display: flex;
52+
justify-content: space-between;
53+
align-items: center;
54+
overflow: visible !important; /* This stops the toggle from disappearing/shifting */
55+
}
56+
4557
.greedy-nav .search-toggle,
4658
.greedy-nav .nav-selector {
59+
margin-left: 0;
4760
display: flex !important;
48-
align-items: center !important;
49-
vertical-align: middle !important;
61+
align-items: center;
5062
}
51-
52-
.greedy-nav {
53-
overflow: visible !important; /* Prevents the icon from being 'pushed' out of view */
54-
}
63+
/* -------------------------------------- */

0 commit comments

Comments
 (0)