diff --git a/app/assets/stylesheets/comments.css b/app/assets/stylesheets/comments.css index 18f1aba84..8f9b26172 100644 --- a/app/assets/stylesheets/comments.css +++ b/app/assets/stylesheets/comments.css @@ -61,18 +61,6 @@ margin-block-end: 0; } } - - img, - video, - embed, - object { - max-block-size: 32rem; - - /* Links should hug media contained within */ - a:has(&) { - display: inline-block; - } - } } .comment__content { diff --git a/app/assets/stylesheets/markdown-content.css b/app/assets/stylesheets/markdown-content.css index 7a67ec288..81589501b 100644 --- a/app/assets/stylesheets/markdown-content.css +++ b/app/assets/stylesheets/markdown-content.css @@ -97,5 +97,14 @@ border-block-end-width: 3px; font-weight: 700; } + + :where(img, video, embed, object) { + max-block-size: 32rem; + + /* Links should hug media contained within */ + a:has(&) { + display: inline-block; + } + } } }