Skip to content

Commit 6cc9f11

Browse files
committed
Improve display of the version number
1 parent 7e55278 commit 6cc9f11

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

src/main/assets/assets/stylesheets/paradox-material-theme.css

+16
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@
1212
display: none;
1313
}
1414

15+
.md-nav--primary .md-version {
16+
padding: 1.2rem 1.2rem 0rem;
17+
}
18+
19+
.md-nav--primary .md-version .md-icon {
20+
position: relative;
21+
top: .2rem;
22+
left: 0;
23+
}
24+
25+
@media only screen and (max-width: 76.1875em) {
26+
.md-nav--primary .md-version {
27+
padding: 1.2rem 1.6rem;
28+
}
29+
}
30+
1531
.md-nav--secondary {
1632
visibility: hidden;
1733
}

src/main/assets/partials/nav.st

+3-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
$page.home.title$
1414
</a>
1515
</label>
16-
<div class="md-nav__source">
17-
<div class="md-source__repository" title="Version">
18-
$page.properties.("project.version.short")$
19-
</div>
20-
</div>
2116
$ if (page.properties.("material.repo")) $
2217
<div class="md-nav__source">
2318
$source()$
@@ -26,4 +21,7 @@
2621
$page.groups$
2722
$page.navigation$
2823
$toc()$
24+
<div class="md-nav__title--site md-version" title="Version">
25+
<i class="md-icon">label_outline</i> $page.properties.("project.version.short")$
26+
</div>
2927
</nav>

src/main/paradox/release-notes.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release notes
22

3+
## 0.1.1
4+
5+
- Show the project version number in both drawer and "desktop" mode.
6+
37
## 0.1.0
48

59
- Initial version based on [MkDocs Material] version 1.10.2. Unsupported

0 commit comments

Comments
 (0)