Skip to content

Commit

Permalink
Merge pull request #51 from dasvh/addFeatureStickyAsideCSS
Browse files Browse the repository at this point in the history
Add feature sticky aside css
  • Loading branch information
joeroe authored Feb 12, 2024
2 parents 57e077c + 6100fae commit eb627f6
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions static/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
max-width: 64rem;
margin: 1rem auto;
display: grid;
grid-template-areas:
"header"
"body"
"aside"
grid-template-areas:
"header"
"body"
"aside"
"footer";
grid-template-columns: minmax(0, 1fr); /* https://css-tricks.com/preventing-a-grid-blowout/ */
grid-row-gap: 2rem;
Expand Down Expand Up @@ -49,6 +49,11 @@
.page__aside {
grid-area: aside;
color: var(--off-fg);
position: sticky;
top: 1rem;
right: 1rem;
overflow-y: auto;
max-height: 95vh;
}

/* Footer */
Expand Down

0 comments on commit eb627f6

Please sign in to comment.