UX: account for iPad hub nav when calculating top (#17780)

This commit is contained in:
Kris 2022-08-03 12:00:36 -04:00 committed by GitHub
parent 5c2e909543
commit afa7c1ed9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,9 @@
grid-area: sidebar;
position: sticky;
top: var(--header-offset);
.footer-nav-ipad & {
top: calc(var(--header-offset) + var(--footer-nav-height));
}
height: calc(100vh - var(--header-offset));
align-self: start;
overflow-y: auto;

View File

@ -50,6 +50,9 @@ $topic-progress-height: 42px;
align-self: start;
@include sticky;
top: calc(var(--header-offset, 60px) + 2em);
.footer-nav-ipad & {
top: calc(var(--header-offset, 60px) + var(--footer-nav-height) + 2em);
}
margin-left: 1em;
z-index: z("timeline");