From 2d73f243d233c1f81d52ee880e335d4f5c722103 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Mon, 19 May 2025 13:52:45 -0500 Subject: [PATCH] Move media size to markdown-content --- app/assets/stylesheets/comments.css | 12 ------------ app/assets/stylesheets/markdown-content.css | 9 +++++++++ 2 files changed, 9 insertions(+), 12 deletions(-) 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; + } + } } }