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 %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-4ebe3f1d68.css">
{% 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 %}
{% endblock %}
{% block fonts %}

View File

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