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