Skip to content

Commit

Permalink
Improve display of the version number
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas committed Oct 13, 2017
1 parent 7e55278 commit 6cc9f11
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
16 changes: 16 additions & 0 deletions src/main/assets/assets/stylesheets/paradox-material-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 3 additions & 5 deletions src/main/assets/partials/nav.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
$page.home.title$
</a>
</label>
<div class="md-nav__source">
<div class="md-source__repository" title="Version">
$page.properties.("project.version.short")$
</div>
</div>
$ if (page.properties.("material.repo")) $
<div class="md-nav__source">
$source()$
Expand All @@ -26,4 +21,7 @@
$page.groups$
$page.navigation$
$toc()$
<div class="md-nav__title--site md-version" title="Version">
<i class="md-icon">label_outline</i> $page.properties.("project.version.short")$
</div>
</nav>
4 changes: 4 additions & 0 deletions src/main/paradox/release-notes.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6cc9f11

Please sign in to comment.