Skip to content

Commit a851b57

Browse files
committed
fix navigation
1 parent fccab95 commit a851b57

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
style="height: 60px; margin: 10px 0; background-color: white; padding: 5px; border-radius: 4px;"/>
1010
</a>
1111
<!-- Move the navigation links here -->
12-
<div class="navbar-nav d-none d-sm-flex nav-horizontal">
12+
<div class="navbar-nav nav-horizontal">
1313
<a class="nav-item nav-link" href="/projects.html">Projects</a>
1414
<a class="nav-item nav-link" href="/papers/">Papers</a>
1515
<a class="nav-item nav-link" href="/grants/">Grants</a>

css/design.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,29 @@ body {
4040
.nav-horizontal {
4141
display: flex;
4242
justify-content: flex-end;
43-
width: 100%;
43+
width: auto; /* Changed from 100% to auto */
44+
align-items: center;
4445
}
4546

4647
.nav-horizontal .nav-item {
4748
margin-left: 15px;
49+
width: auto !important; /* Override any width settings */
4850
}
4951

52+
/* Override any conflicting styles */
53+
.navbar-nav.nav-horizontal .nav-link {
54+
width: auto !important;
55+
text-align: center;
56+
white-space: nowrap;
57+
}
58+
59+
/* Ensure flex-separate works correctly */
60+
.flex-separate {
61+
display: flex;
62+
justify-content: space-between;
63+
align-items: center;
64+
}
65+
5066
.brand-navbar {
5167
// border-bottom: 6px solid #DFBD00;
5268
padding-top: 0.5rem;

0 commit comments

Comments
 (0)