From b81c958cc2a9c712b6f10dcdfef48f04cd32a85f Mon Sep 17 00:00:00 2001 From: Ruoxi Wang Date: Tue, 26 Mar 2024 11:30:16 +0800 Subject: [PATCH] When printing, wrap lines in code blocks. (#748) --- themes/navy/source/css/_partial/highlight.styl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/navy/source/css/_partial/highlight.styl b/themes/navy/source/css/_partial/highlight.styl index c5cc5924b7b..4c2bf1ddc9f 100644 --- a/themes/navy/source/css/_partial/highlight.styl +++ b/themes/navy/source/css/_partial/highlight.styl @@ -58,6 +58,8 @@ pre background: none .line height: 22px + @media print + text-wrap: wrap pre .comment