Skip to content

Commit

Permalink
Maximize width of IIIF media embeds.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Mar 5, 2024
1 parent fec951a commit 19205db
Show file tree
Hide file tree
Showing 2 changed files with 11 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.

10 changes: 10 additions & 0 deletions application/asset/sass/page-blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,17 @@

.media-embed .resource {
display: inline-block;
max-width: 100%;
}

.media-embed.attachment-count-1 {
width: 100% !important;
}

.media-embed.layout-vertical {
display: grid;
}

.media-embed.layout-horizontal.attachment-count-2 {
--grid-column-count: 2;
}
Expand Down Expand Up @@ -193,6 +198,11 @@
margin-bottom: 0;
}

.iiif_presentation {
width: 100vb;
max-width: 100%;
}

.media-render > a:not(:only-child) {
margin-bottom: $spacing-small;
}
Expand Down

0 comments on commit 19205db

Please sign in to comment.