mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed navigation link colors when applying palette
This commit is contained in:
parent
7f37798408
commit
253d805352
File diff suppressed because one or more lines are too long
@ -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 %}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user