Skip to content

Commit

Permalink
Use container query to wrap site content at narrow widths. #2168
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Mar 21, 2024
1 parent ae921a2 commit c4e74b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/asset/css/page-blocks.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions application/asset/sass/page-blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@
}

.block-listOfSites .site-list {
container-type: inline-size;

.site {
margin-bottom: .5rem;
@include clearfix;
Expand Down Expand Up @@ -323,6 +325,12 @@
}
}

@container (max-width: 300px) {
.block-listOfSites .site-list .site {
flex-wrap: wrap;
}
}

.block-listOfSites .omeka-pagination {
width: auto;
margin: 0 0 $spacing-large;
Expand Down

0 comments on commit c4e74b2

Please sign in to comment.