1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-12 01:50:52 +01:00

Fixed too unspecific selector for table of contents blur on scroll

This commit is contained in:
squidfunk 2019-01-29 10:56:27 +01:00
parent 96b9a321e6
commit a182314a15
4 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@ mkdocs-material-3.x.x (2019-xx-xx)
* Moved Google Analytics integration into `head` using Google Tag Manager
* Fixed #972: Unicode slugifier breaks table of contents blur on scroll
* Fixed #974: Additional links in table of contents break blur on scroll
mkdocs-material-3.2.0 (2018-12-28)

View File

@ -190,7 +190,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/application.ff6f93ee.js' | url }}"></script>
<script src="{{ 'assets/javascripts/application.6460bce7.js' | url }}"></script>
{% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %}

View File

@ -259,7 +259,7 @@ function initialize(config) { // eslint-disable-line func-style
/* Component: link blurring for table of contents */
new Material.Event.MatchMedia("(min-width: 960px)",
new Material.Event.Listener(window, "scroll",
new Material.Nav.Blur("[data-md-component=toc] [href]")))
new Material.Nav.Blur("[data-md-component=toc] .md-nav__link")))
/* Component: collapsible elements for navigation */
const collapsibles =