Skip to content

Commit 7bbc9f9

Browse files
committed
Fixed positioning of integrated table of contents
1 parent 3e2a1fc commit 7bbc9f9

File tree

6 files changed

+4
-14
lines changed

6 files changed

+4
-14
lines changed

material/templates/assets/stylesheets/main.7e359304.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.7e359304.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/assets/stylesheets/main.f2e4d321.min.css

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

material/templates/assets/stylesheets/main.f2e4d321.min.css.map

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

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.f2e4d321.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.7e359304.min.css' | url }}">
4848
{% if config.theme.palette %}
4949
{% set palette = config.theme.palette %}
5050
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@
710710
}
711711

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

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

735-
// Add spacing to container for non-nested navigation items
736-
&:not(.md-nav__item--nested) {
737-
padding: 0 px2rem(12px);
738-
739-
// Remove padding as it's given by container
740-
> .md-nav__link {
741-
padding: 0;
742-
}
743-
}
744-
745735
// Show integrated table of contents
746736
.md-nav--secondary {
747737
display: block;

0 commit comments

Comments
 (0)