Fixed navigation link colors when applying palette

This commit is contained in:
squidfunk 2017-02-26 18:01:39 +01:00 committed by Martin Donath
parent 7f37798408
commit 253d805352
3 changed files with 10 additions and 14 deletions

View File

@ -34,7 +34,7 @@
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-4ebe3f1d68.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-4ebe3f1d68.css">
{% if config.extra.palette %} {% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-f6789307ff.palette.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-892b79c5c5.palette.css">
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block fonts %} {% block fonts %}

View File

@ -103,19 +103,15 @@ button[data-md-color-accent] {
background-color: $color; background-color: $color;
} }
// Link inside item // Current or hovered link
.md-nav__link { .md-nav__link:active,
.md-nav__item--active > .md-nav__link {
color: $color;
}
// Current or hovered link // Reset active color for nested list titles
&:active, .md-nav__item--nested > .md-nav__link {
.md-nav__item--active > & { color: inherit;
color: $color;
}
// Reset active color for nested list titles
.md-nav__item--nested > & {
color: inherit;
}
} }
// [tablet portrait -]: Layered navigation // [tablet portrait -]: Layered navigation