Skip to content

Commit

Permalink
Fixed integrated table of contents
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Sep 23, 2023
1 parent 3fbcb3e commit 8a1244e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 3 deletions.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.7e9791b1.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.800c1d3a.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.a5377069.min.css' | url }}">
Expand Down
8 changes: 8 additions & 0 deletions src/templates/assets/stylesheets/main/components/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,15 @@
.md-nav--secondary {
display: block;
margin-bottom: 1.25em;
visibility: visible;
border-inline-start: px2rem(1px) solid var(--md-primary-fg-color);
opacity: 1;

// Navigation list
> .md-nav__list {
padding-bottom: 0;
overflow: visible;
}

// Hide table of contents title
> .md-nav__title {
Expand Down
5 changes: 5 additions & 0 deletions src/templates/assets/stylesheets/main/components/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@
margin-top: 0;
}
}

// Add margin to table of contents
> .md-nav--secondary {
margin: 1em 0;
}
}

// ----------------------------------------------------------------------------
Expand Down

0 comments on commit 8a1244e

Please sign in to comment.