Skip to content

Commit

Permalink
feat: move global toc to top of page on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed Jun 6, 2024
1 parent a1dac16 commit fe6516d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 3 additions & 5 deletions styles/_globaltoc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
.globaltoc {
@extend .iati-card;
margin: $padding-block;
flex: 0 0 250px;
align-self: flex-start;

display: none;
@media (min-width: 1000px) {
display: block;
@media (min-width: $screen-lg) {
flex: 0 0 250px;
align-self: flex-start;
}

& .caption {
Expand Down
5 changes: 5 additions & 0 deletions styles/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
.iati-main {
display: flex;
padding: 0;
flex-direction: column;

@media (min-width: $screen-lg) {
flex-direction: row;
}
}

.document {
Expand Down

0 comments on commit fe6516d

Please sign in to comment.