Skip to content

Commit 8a1244e

Browse files
committed
Fixed integrated table of contents
1 parent 3fbcb3e commit 8a1244e

File tree

7 files changed

+16
-3
lines changed

7 files changed

+16
-3
lines changed

material/templates/assets/stylesheets/main.7e9791b1.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

material/templates/assets/stylesheets/main.7e9791b1.min.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

material/templates/assets/stylesheets/main.800c1d3a.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/assets/stylesheets/main.800c1d3a.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% endif %}
4545
{% endblock %}
4646
{% block styles %}
47-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.7e9791b1.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.800c1d3a.min.css' | url }}">
4848
{% if config.theme.palette %}
4949
{% set palette = config.theme.palette %}
5050
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.a5377069.min.css' | url }}">

src/templates/assets/stylesheets/main/components/_nav.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,15 @@
740740
.md-nav--secondary {
741741
display: block;
742742
margin-bottom: 1.25em;
743+
visibility: visible;
743744
border-inline-start: px2rem(1px) solid var(--md-primary-fg-color);
745+
opacity: 1;
746+
747+
// Navigation list
748+
> .md-nav__list {
749+
padding-bottom: 0;
750+
overflow: visible;
751+
}
744752

745753
// Hide table of contents title
746754
> .md-nav__title {

src/templates/assets/stylesheets/main/components/_post.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@
110110
margin-top: 0;
111111
}
112112
}
113+
114+
// Add margin to table of contents
115+
> .md-nav--secondary {
116+
margin: 1em 0;
117+
}
113118
}
114119

115120
// ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)