Highlight current module in the sidebar.
This commit is contained in:
@@ -187,7 +187,13 @@
|
||||
{% endif %}
|
||||
<ul>
|
||||
{% for module in modules %}
|
||||
<li><a href="{{ breadcrumbs }}/{{ module.path }}">{{ module.name }}</a></li>
|
||||
<li><a href="{{ breadcrumbs }}/{{ module.path }}">
|
||||
{% if self.is_current_module(module) %}
|
||||
<strong>{{ module.name }}</strong>
|
||||
{% else %}
|
||||
{{ module.name }}
|
||||
{% endif %}
|
||||
</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -324,6 +324,17 @@ p code {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.sidebar ul li a > strong {
|
||||
font-weight: 900;
|
||||
color: var(--color-link);
|
||||
}
|
||||
|
||||
.sidebar ul li a > strong::before {
|
||||
font-size: 0.75em;
|
||||
content: 'ᐅ ';
|
||||
padding-right: 0.1rem;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-toggle {
|
||||
color: var(--color-link);
|
||||
font-size: calc(0.8 * var(--sidebar-toggle-size));
|
||||
|
||||
Reference in New Issue
Block a user