Skip to content

Commit 9bfe1d0

Browse files
feat(docs): add label to version selector in site header (#310)
Add CSS rule to display Version: label next to the MkDocs Material version selector dropdown. Ref #305 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 17077cd commit 9bfe1d0

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.md-version::before {
2+
content: "Version:";
3+
margin-right: 0.4em;
4+
font-size: 0.8rem;
5+
color: var(--md-primary-bg-color);
6+
opacity: 0.7;
7+
}

docs/site/mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ extra:
3737
version:
3838
provider: mike
3939

40+
extra_css:
41+
- stylesheets/extra.css
42+
4043
plugins:
4144
- search
4245

0 commit comments

Comments
 (0)