From 284cc425d6202ca9dbe446c25ef3cb09d99cd3a1 Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Mon, 2 Feb 2026 08:22:00 +0800 Subject: fix(css): inline image being too lage Former-commit-id: 2a95a3f66851970668c370903f9f78d35b621cc8 --- assets/css/_markdown.scss | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/assets/css/_markdown.scss b/assets/css/_markdown.scss index 50a83c9d..0b57aca2 100644 --- a/assets/css/_markdown.scss +++ b/assets/css/_markdown.scss @@ -18,12 +18,21 @@ $block-background-color: var(--block-background-color); text-emphasis-position: under; } - img { + img:not(p > img) { max-width: 100%; display: block; margin: 1rem auto; } + p > img { + width: 1.5rem; + height: auto; + transition: transform .1s; + &:hover { + transform: scale(1.2) + } + } + ul { list-style-type: square; } -- cgit v1.2.3