fix(aio): expand the main content width when there is no ToC
Previously, the main content would always leave a 18% margin on the right to be occupied by the ToC (even if there was no ToC). This commit lets the main content expand to the right to occupy all the available space when there is no ToC. Fixes #17205 Fixes #17270
This commit is contained in:

committed by
Pete Bacon Darwin

parent
8524187869
commit
e894f5c399
@ -42,12 +42,12 @@ md-sidenav.mat-sidenav.sidenav {
|
||||
md-sidenav-container.sidenav-container {
|
||||
min-height: 100%;
|
||||
height: auto !important;
|
||||
max-width: 82%;
|
||||
max-width: 100%;
|
||||
margin: 0;
|
||||
transform: none;
|
||||
|
||||
@media (max-width: 800px) {
|
||||
max-width: 100%;
|
||||
&.has-floating-toc {
|
||||
max-width: 82%;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user