From 2ba6ed74c7b53ce4d5a40ba0519e74e3f2ec9544 Mon Sep 17 00:00:00 2001 From: hypercross Date: Fri, 23 Oct 2026 20:19:39 +0800 Subject: [PATCH] fix(md-print): correct alert padding --- src/styles.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/styles.css b/src/styles.css index 5dd14b3..4db9af7 100644 --- a/src/styles.css +++ b/src/styles.css @@ -248,6 +248,21 @@ icon.big .icon-label-stroke { word-break: break-word; } +/* Alerts: the rem-based padding is oversized next to the mm-based print font, + and the first paragraph's margin stacks on top of the padding. */ +.md-print-content .markdown-alert { + padding: 0.5em 0.75em; + margin-bottom: 0.45em; +} + +.md-print-content .markdown-alert-title + * { + margin-top: 0; +} + +.md-print-content .markdown-alert > :last-child { + margin-bottom: 0; +} + .md-print-cut-line { position: absolute; left: 148.5mm;