Skip to content

Commit 600e8b3

Browse files
committed
show and emphasize current version in version selector
1 parent 59c52b7 commit 600e8b3

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/css/header.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@ a.navbar-item.has-dropdown::after,
173173
grid-column: 1 / 3;
174174
}
175175

176+
.navbar-dropdown li.current {
177+
font-weight: var(--weight-medium);
178+
}
179+
180+
.navbar-dropdown li.current a.navbar-item::before {
181+
content: "\2023";
182+
position: absolute;
183+
left: -0.75em;
184+
}
185+
176186
@media screen and (min-width: 1024px) {
177187
.navbar-start > a.navbar-item:hover,
178188
.navbar-start > .navbar-item:hover > .navbar-link {

src/partials/header-content.hbs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@
6161
<div class="cols">
6262
<ul>
6363
{{#each page.versions}}
64-
{{#unless (eq ./version @root.page.version)}}
65-
<li><a class="navbar-item" href="{{relativize ./url}}">{{{@root.page.component.title}}} {{./displayVersion}}</a></li>
66-
{{/unless}}
64+
<li{{#if (eq ./version @root.page.version)}} class="current"{{/if}}><a class="navbar-item" href="{{relativize ./url}}">{{{@root.page.component.title}}} {{./displayVersion}}</a></li>
6765
{{/each}}
6866
</ul>
6967
{{#if (ends-with page.component.name '-sdk')}}

0 commit comments

Comments
 (0)