Skip to content

Commit

Permalink
Merge pull request #245 from LeaVerou/sticky-sidebar
Browse files Browse the repository at this point in the history
Made sidebar sticky
  • Loading branch information
SebastianZ authored Aug 8, 2023
2 parents 5bc6761 + 65b9d68 commit a4892e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,9 @@ details li[class]::after {
aside {
flex: 1;
font-size: 85%;
align-self: flex-end;
position: sticky;
bottom: 0;
}

aside .caution p {
Expand All @@ -422,6 +425,8 @@ aside h1 {
}

aside ul {
max-height: calc(100vh - 18em);
overflow: auto;
margin: .5em 0;
padding: 0;
}
Expand Down

0 comments on commit a4892e1

Please sign in to comment.