mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed spacing issues when using toc.integrate in non-nested tabs
This commit is contained in:
parent
3c130ee1d6
commit
f073fb2c25
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
material/assets/stylesheets/main.5d519cf3.min.css
vendored
Normal file
2
material/assets/stylesheets/main.5d519cf3.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.5d519cf3.min.css.map
Normal file
1
material/assets/stylesheets/main.5d519cf3.min.css.map
Normal file
File diff suppressed because one or more lines are too long
@ -39,7 +39,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.5143246d.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.5d519cf3.min.css' | url }}">
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.3f5d1f46.min.css' | url }}">
|
||||
|
@ -654,14 +654,28 @@
|
||||
}
|
||||
|
||||
// Modifier for when table of contents is rendered in primary navigation
|
||||
&--integrated &__link[for="__toc"] ~ .md-nav {
|
||||
display: block;
|
||||
margin-bottom: 1.25em;
|
||||
border-left: px2rem(1px) solid var(--md-primary-fg-color);
|
||||
&--integrated > .md-nav__list > .md-nav__item--active {
|
||||
|
||||
// Hide navigation title
|
||||
> .md-nav__title {
|
||||
display: none;
|
||||
// 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;
|
||||
margin-bottom: 1.25em;
|
||||
border-left: px2rem(1px) solid var(--md-primary-fg-color);
|
||||
|
||||
// Hide table of contents title
|
||||
> .md-nav__title {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user