Skip to content

Commit

Permalink
Set single media embed resources to display block.
Browse files Browse the repository at this point in the history
Allows embed media, like those from OHMS Embed or IIIF, to display as
full-width. (See omeka-s-modules/OhmsEmbed#3.) The idea is that single
attachments don't need to sit inline with any other content.
  • Loading branch information
kimisgold committed Oct 23, 2024
1 parent eb54866 commit 811b07a
Show file tree
Hide file tree
Showing 2 changed files with 5 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.

4 changes: 4 additions & 0 deletions application/asset/sass/page-blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@
max-width: 100%;
}

.media-embed.attachment-count-1 .resource {
display: block;
}

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

1 comment on commit 811b07a

@kimisgold
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually should be referencing omeka-s-modules/OhmsEmbed#1

Please sign in to comment.