Skip to content

Commit e00cb7e

Browse files
fix nav bar highlighted section bug
1 parent f173ddb commit e00cb7e

2 files changed

Lines changed: 3 additions & 16 deletions

File tree

css/style.css

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,6 @@
1717
scroll-margin-top: var(--navbar-offset);
1818
}
1919

20-
/* Collaboration anchors to a dark section boundary; avoid showing the white section above. */
21-
#collaboration {
22-
scroll-margin-top: 0;
23-
}
24-
25-
@media (max-width: 991.98px) {
26-
:root {
27-
--navbar-offset: 72px;
28-
}
29-
}
30-
31-
32-
3320
.bg-primary {
3421
background-color: var(--charcoal) !important;
3522
}

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
{% include head.html %}
66

7-
<body class="bg-light" data-bs-spy="scroll" data-bs-target="#navbar-global">
7+
<body class="bg-light" data-bs-spy="scroll" data-bs-target="#navbar-global" tabindex="0">
88
{% include nav.html %}
99
<div class="bg-dark container-fluid">
1010
<div class="container col-xxl-8 px-4 my-5" id="about">
@@ -142,8 +142,8 @@ <h4 class="card-title text-center">{{ resource.title }}</h4>
142142
</div>
143143
</div>
144144
</div>
145-
<div class="bg-primary container-fluid" id="collaboration">
146-
<div class="px-4 my-5 pt-5 pb-5 text-center text-light">
145+
<div class="bg-primary container-fluid pt-4">
146+
<div class="px-4 py-5 text-center text-light" id="collaboration">
147147
<h1 class="display-5 fw-bold">Collaboration</h1>
148148
<div class="col-lg-6 mx-auto">
149149
<p class="lead mb-4">{{site.collaboration.byline}}</p>

0 commit comments

Comments
 (0)