Merge pull request #51 from dasvh/addFeatureStickyAsideCSS

Add feature sticky aside css
This commit is contained in:
Joe Roe 2024-02-12 09:12:28 +01:00 committed by GitHub
commit eb627f6a6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,10 +4,10 @@
max-width: 64rem; max-width: 64rem;
margin: 1rem auto; margin: 1rem auto;
display: grid; display: grid;
grid-template-areas: grid-template-areas:
"header" "header"
"body" "body"
"aside" "aside"
"footer"; "footer";
grid-template-columns: minmax(0, 1fr); /* https://css-tricks.com/preventing-a-grid-blowout/ */ grid-template-columns: minmax(0, 1fr); /* https://css-tricks.com/preventing-a-grid-blowout/ */
grid-row-gap: 2rem; grid-row-gap: 2rem;
@ -49,6 +49,11 @@
.page__aside { .page__aside {
grid-area: aside; grid-area: aside;
color: var(--off-fg); color: var(--off-fg);
position: sticky;
top: 1rem;
right: 1rem;
overflow-y: auto;
max-height: 95vh;
} }
/* Footer */ /* Footer */