Fixed active page highlight not working with default palette

This commit is contained in:
squidfunk 2018-02-11 18:11:20 +01:00 committed by Martin Donath
parent 3c8f12a41a
commit 94acf18d5d
5 changed files with 6 additions and 10 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

@ -48,7 +48,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.aa3de92b.css">
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.a315b664.css">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.792431c1.css">
{% endif %}
@ -168,7 +168,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ base_url }}/assets/javascripts/application.62cfdabc.js"></script>
<script src="{{ base_url }}/assets/javascripts/application.f5cd6d8a.js"></script>
{% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %}

View File

@ -29,11 +29,6 @@
font-size: 1.4rem;
line-height: 1.3;
// Highlight active links (used for page-related meta navigation)
&--secondary .md-nav__link--active {
color: $md-color-primary;
}
// List title
&__title {
display: block;
@ -146,7 +141,8 @@
}
// Active link
&:active {
&:active,
&--active {
color: $md-color-primary;
}