Skip to content

Commit 9c819bb

Browse files
committed
Fix academicpages#1920 by allowing text to wrap
1 parent ab0b91f commit 9c819bb

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

_sass/_masthead.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
white-space: nowrap;
5353

5454
&--lg {
55-
padding-right: 2em;
55+
padding-right: 3em;
5656
font-weight: 700;
5757
}
5858
}

_sass/_navigation.scss

+3-1
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,15 @@
191191

192192
button {
193193
position: absolute;
194-
height: 100%;
194+
height: 2.5rem;
195195
right: 0;
196196
padding: 0 0.5rem;
197197
border: 0;
198198
outline: none;
199199
background-color: $primary-color;
200200
color: #fff;
201201
cursor: pointer;
202+
z-index: 100;
202203
}
203204

204205
.visible-links {
@@ -210,6 +211,7 @@
210211

211212
&:first-child {
212213
font-weight: bold;
214+
text-wrap: wrap;
213215

214216
a {
215217
margin-left: 0;

assets/js/main.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/plugins/jquery.greedy-navigation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function updateNav() {
2323
breaks.push($vlinks.width());
2424

2525
// Move item to the hidden list
26-
$vlinks.children().last().prependTo($hlinks);
26+
$vlinks.children('*:not(.masthead__menu-item--lg)').last().prependTo($hlinks);
2727

2828
// Show the dropdown btn
2929
if($btn.hasClass('hidden')) {

0 commit comments

Comments
 (0)