Skip to content

Commit

Permalink
Fixed positioning of integrated table of contents
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Feb 19, 2024
1 parent 3e2a1fc commit 7bbc9f9
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 14 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

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.f2e4d321.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.7e359304.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">
Expand Down
12 changes: 1 addition & 11 deletions src/templates/assets/stylesheets/main/components/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@
}

// Adjust spacing for nested navigation
> .md-nav {
> .md-nav:not(.md-nav--secondary) {
margin-inline-start: px2rem(-12px);
}

Expand All @@ -732,16 +732,6 @@
// Modifier for when table of contents is rendered in primary navigation
&--integrated > .md-nav__list > .md-nav__item--active {

// Add spacing to container for non-nested navigation items
&:not(.md-nav__item--nested) {
padding: 0 px2rem(12px);

// Remove padding as it's given by container
> .md-nav__link {
padding: 0;
}
}

// Show integrated table of contents
.md-nav--secondary {
display: block;
Expand Down

0 comments on commit 7bbc9f9

Please sign in to comment.