diff --git a/CHANGELOG.md b/CHANGELOG.md index d99d21e..e93e171 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.0] + +### Changed +- Upgraded `mkdocs-material` to v9.4.2. We have updated our templates in [asf_theme/partials](./asf_theme/partials) to match the [upstream versions](https://github.com/squidfunk/mkdocs-material/tree/9.4.2/src/templates/partials) as closely as possible. This introduces breaking changes. In particular: + - If you want a footer, you should make the following change to your website's `mkdocs.yml` file: + ```diff + theme: + features: + + - navigation.footer + ``` + - You should carefully review your website to confirm that everything still renders and functions as expected. + - If anything does not work as expected, you may want to read the [`mkdocs-material` upgrade guide](https://squidfunk.github.io/mkdocs-material/upgrade/) starting at [Upgrading from 6.x to 7.x](https://squidfunk.github.io/mkdocs-material/upgrade/#upgrading-from-6x-to-7x) for any other important changes that may apply to your website. + +### Fixed +- Fixed by upgrading `mkdocs-material`. ## [0.2.4](https://github.com/ASFHyP3/mkdocs-asf-theme/compare/v0.2.3...v0.2.4) @@ -17,7 +32,6 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### Fixed - ASF logo and background map now appear correctly in "Project" or repo level sites - ## [0.2.2](https://github.com/ASFHyP3/mkdocs-asf-theme/compare/v0.2.1...v0.2.2) ### Changed diff --git a/asf_theme/assets/stylesheets/asf.css b/asf_theme/assets/stylesheets/asf.css index 2f28529..f9b0ed8 100644 --- a/asf_theme/assets/stylesheets/asf.css +++ b/asf_theme/assets/stylesheets/asf.css @@ -11,29 +11,38 @@ a { } .md-header, .md-footer { - background: rgb(101, 102, 92); - background: linear-gradient(180deg, rgba(101, 102, 92, 1) 0%, rgba(106, 106, 106, 1) 100%); box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.5); transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s; - } -.md-header-nav__button.md-logo img { - height: 2.0rem; - width: auto; - display: inline-block; - margin-top: -7px; +.md-header { + background: rgb(101, 102, 92); + background: linear-gradient(180deg, rgba(101, 102, 92, 1) 0%, rgba(106, 106, 106, 1) 100%); } -.md-footer-nav { +.md-footer { + background: rgb(106, 106, 106); background-image: url("../images/map.png"); background-repeat: no-repeat; background-size: cover; background-position: center center; - min-height: 510px; + min-height: 574px; border-top: 58px solid #ffcd00; } +.md-header__button.md-logo img { + height: 2.0rem; + width: auto; + display: inline-block; + margin-top: -7px; +} + +.md-footer-meta.md-typeset { + position: absolute; + bottom: 0; + width: 100%; +} + .md-footer-container { display: flex; flex-direction: row; @@ -82,14 +91,28 @@ a { background-color: black; } -.md-footer-copyright-link { +.md-copyright-link { color: #1bb0ce !important; } -.md-footer-copyright { +.md-copyright { margin-left: 0; } +.md-nav__title { + color: black; +} + +.md-nav--primary .md-nav__title { + background: #f8f8f8; + box-shadow: none; +} + +.md-nav--secondary .md-nav__title { + background: #f8f8f8; + box-shadow: none; +} + .expert-rec-search { margin-top: 10px; } diff --git a/asf_theme/partials/logo.html b/asf_theme/partials/copyright.html similarity index 52% rename from asf_theme/partials/logo.html rename to asf_theme/partials/copyright.html index 59844c9..1ee61a8 100644 --- a/asf_theme/partials/logo.html +++ b/asf_theme/partials/copyright.html @@ -1,5 +1,5 @@ - -{% if config.theme.logo %} - logo -{% elif config.theme.icon.logo %} - {% include ".icons/" ~ config.theme.icon.logo ~ ".svg" %} -{% endif %} + + + + \ No newline at end of file diff --git a/asf_theme/partials/footer.html b/asf_theme/partials/footer.html index 46c1b4a..2fc460e 100644 --- a/asf_theme/partials/footer.html +++ b/asf_theme/partials/footer.html @@ -1,5 +1,5 @@ -{% import "partials/language.html" as lang with context %} + - +