From 6cc9f11ee8d873b3d059686c41ef7e2ee42c4822 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 12 Oct 2017 21:50:09 -0400 Subject: [PATCH] Improve display of the version number --- .../stylesheets/paradox-material-theme.css | 16 ++++++++++++++++ src/main/assets/partials/nav.st | 8 +++----- src/main/paradox/release-notes.md | 4 ++++ 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/main/assets/assets/stylesheets/paradox-material-theme.css b/src/main/assets/assets/stylesheets/paradox-material-theme.css index 82840e4..ccb24d0 100644 --- a/src/main/assets/assets/stylesheets/paradox-material-theme.css +++ b/src/main/assets/assets/stylesheets/paradox-material-theme.css @@ -12,6 +12,22 @@ display: none; } +.md-nav--primary .md-version { + padding: 1.2rem 1.2rem 0rem; +} + +.md-nav--primary .md-version .md-icon { + position: relative; + top: .2rem; + left: 0; +} + +@media only screen and (max-width: 76.1875em) { + .md-nav--primary .md-version { + padding: 1.2rem 1.6rem; + } +} + .md-nav--secondary { visibility: hidden; } diff --git a/src/main/assets/partials/nav.st b/src/main/assets/partials/nav.st index 1808f75..a114699 100644 --- a/src/main/assets/partials/nav.st +++ b/src/main/assets/partials/nav.st @@ -13,11 +13,6 @@ $page.home.title$ -
-
- $page.properties.("project.version.short")$ -
-
$ if (page.properties.("material.repo")) $
$source()$ @@ -26,4 +21,7 @@ $page.groups$ $page.navigation$ $toc()$ +
+ label_outline $page.properties.("project.version.short")$ +
diff --git a/src/main/paradox/release-notes.md b/src/main/paradox/release-notes.md index aab0ddf..8b42247 100644 --- a/src/main/paradox/release-notes.md +++ b/src/main/paradox/release-notes.md @@ -1,5 +1,9 @@ # Release notes +## 0.1.1 + + - Show the project version number in both drawer and "desktop" mode. + ## 0.1.0 - Initial version based on [MkDocs Material] version 1.10.2. Unsupported