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,20 +103,16 @@ button[data-md-color-accent] {
background-color: $color; background-color: $color;
} }
// Link inside item
.md-nav__link {
// Current or hovered link // Current or hovered link
&:active, .md-nav__link:active,
.md-nav__item--active > & { .md-nav__item--active > .md-nav__link {
color: $color; color: $color;
} }
// Reset active color for nested list titles // Reset active color for nested list titles
.md-nav__item--nested > & { .md-nav__item--nested > .md-nav__link {
color: inherit; color: inherit;
} }
}
// [tablet portrait -]: Layered navigation // [tablet portrait -]: Layered navigation
@include break-to-device(tablet portrait) { @include break-to-device(tablet portrait) {