Fix navbar on year pages

This commit is contained in:
2020-03-04 09:14:26 +00:00
parent 7b0082f7b9
commit 799d7c1ca9
2 changed files with 16 additions and 1 deletions

View File

@@ -23,7 +23,11 @@
</div> </div>
{% endif %} {% endif %}
<div class="mdc-list-group"> <div class="mdc-list-group">
<h3 class="mdc-list-group__subheader">{{ currentdate }}</h3> <h3 class="mdc-list-group__subheader">
<a class="mdc-list-item year" href="/{{ currentdate }}" data-mdc-auto-init="MDCRipple">
<span class="mdc-list-item__text">{{ currentdate }}</span>
</a>
</h3>
{% assign date = currentdate %} {% assign date = currentdate %}
{% endif %} {% endif %}
<a class="mdc-list-item" href="{{ article.url | relative_url }}" data-mdc-auto-init="MDCRipple"> <a class="mdc-list-item" href="{{ article.url | relative_url }}" data-mdc-auto-init="MDCRipple">

View File

@@ -37,6 +37,17 @@ a {
:not(.mdc-list--non-interactive)>:not(.mdc-list-item--disabled).mdc-list-item--activated::before, :not(.mdc-list--non-interactive)>:not(.mdc-list-item--disabled).mdc-list-item--activated::after { :not(.mdc-list--non-interactive)>:not(.mdc-list-item--disabled).mdc-list-item--activated::before, :not(.mdc-list--non-interactive)>:not(.mdc-list-item--disabled).mdc-list-item--activated::after {
background-color: var(--mdc-theme-secondary); background-color: var(--mdc-theme-secondary);
} }
/* .mdc-list-group__subheader {
height: 40px;
} */
.mdc-list-item.year::before, .mdc-list-item.year::after {
background: none !important;
}
.mdc-list-item.year, .mdc-list-item.year {
margin: 0;
padding: 0;
display: initial;
}
/* change cursor on top app bar */ /* change cursor on top app bar */
.mdc-top-app-bar__title { .mdc-top-app-bar__title {