Skip to content

Commit 14d14f5

Browse files
committed
fix: navbar and secondary nav styling improvements
- Show EKS Workshop title at all viewport widths (remove display:none between 997-1250px) - Make secondary nav sticky below the navbar - Collapse locale dropdown into hamburger menu on mobile
1 parent 7088639 commit 14d14f5

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

website/src/components/SecondaryNav/styles.module.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
align-items: center;
88
gap: clamp(0.3rem, 1vw, 0.75rem);
99
font-size: clamp(0.75rem, 1.5vw, 0.9rem);
10-
position: relative;
11-
z-index: 1;
10+
position: sticky;
11+
top: var(--ifm-navbar-height);
12+
z-index: 99;
1213
overflow-x: auto;
1314
overflow-y: hidden;
1415
white-space: nowrap;

website/src/css/custom.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,10 @@
280280
}
281281

282282
/* Keep the locale dropdown and GitHub link visible on desktop */
283-
.navbar__items--right .navbar__item {
284-
display: flex;
283+
@media (min-width: 997px) {
284+
.navbar__items--right .navbar__item {
285+
display: flex;
286+
}
285287
}
286288

287289
/* Show navbar items only in mobile sidebar */
@@ -295,10 +297,6 @@
295297

296298
/* docusaurus switches to mobile view at 996px */
297299
@media (min-width: 997px) and (max-width: 1250px) {
298-
.navbar__brand .navbar__title {
299-
display: none; /* Hide the navbar title */
300-
}
301-
302300
.navbar__items {
303301
max-width: 80%;
304302
}

0 commit comments

Comments
 (0)