Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion material-overrides/assets/stylesheets/kluster.css
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,16 @@ input.md-search__input[placeholder="Search"]::placeholder {
}
}

/* --- Breadcrumbs --- */
.md-path__item:not(:first-child) {
align-items: center;
}

.md-path__link:hover {
color: var(--md-typeset-a-color);
text-decoration: underline;
}

/* --- Page actions --- */
.page-actions {
display: flex;
Expand Down Expand Up @@ -1268,4 +1278,4 @@ pre:hover > .md-code__nav {
/* --- Cookie Consent --- */
.md-consent__inner {
background-color: var(--consent-bg-color);
}
}
3 changes: 3 additions & 0 deletions material-overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@

{%- block container -%}
<div class="md-content" data-md-component="content">
{% if "navigation.path" in features %}
{% include "partials/path.html" %}
{% endif %}
{% set class = "index-page" if not page.content and not page.is_homepage %}
<article class="md-content__inner md-typeset {{ class }}">
{% block content %}
Expand Down
15 changes: 15 additions & 0 deletions material-overrides/partials/path.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% import "partials/path-item.html" as item with context %}
{% set hidden = "" %}
{% if page.meta and page.meta.hide %}
{% set hidden = "hidden" if "path" in page.meta.hide %}
{% endif %}
{% set depth = page.ancestors | length %}
{% if depth > 0 %}
<nav class="md-path" aria-label="{{ lang.t('nav') }}" {{ hidden }}>
<ol class="md-path__list">
{% for nav_item in page.ancestors | reverse %}
{{ item.render(nav_item) }}
{% endfor %}
</ol>
</nav>
{% endif %}
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ theme:
- navigation.sections
- toc.follow
- content.action.edit
- navigation.path
palette:
- media: "(prefers-color-scheme: dark)"
scheme: slate
Expand Down