Fixed positioning of integrated table of contents

This commit is contained in:
squidfunk 2024-02-19 13:06:02 +07:00
parent 3e2a1fcb7e
commit 7bbc9f9ead
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
6 changed files with 4 additions and 14 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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 }}">

View File

@ -710,7 +710,7 @@
}
// Adjust spacing for nested navigation
> .md-nav {
> .md-nav:not(.md-nav--secondary) {
margin-inline-start: px2rem(-12px);
}
@ -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;