Fixed non-index navigation links appearing as clickable

This commit is contained in:
squidfunk 2022-09-18 14:19:49 +02:00
parent c834dff30b
commit f30775fa0a
5 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -34,7 +34,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.2e8b5541.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.9f9400aa.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.cbb835fc.min.css' | url }}">

View File

@ -607,9 +607,9 @@
background: var(--md-default-bg-color);
box-shadow: 0 0 px2rem(8px) px2rem(8px) var(--md-default-bg-color);
// Make navigation link clickable
&--index [href] {
pointer-events: initial;
// Non-index section should not be clickable
&:not(.md-nav__link--index) {
pointer-events: none;
}
// Hide naviation icon