From cfedb3c6c64fe99c4646fb5ef5e287e208dd70b8 Mon Sep 17 00:00:00 2001 From: Taketo Yoshida Date: Wed, 21 Aug 2024 03:11:58 +0900 Subject: [PATCH] =?UTF-8?q?Prevent=20a=20line=20break=20before=20'?= =?UTF-8?q?=E3=83=BC=20U+2013',=20'=E3=80=9C=20U+301C',=20and=20etc=20in?= =?UTF-8?q?=20Japanese=20(#2751)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Prevent link breaks before 'ー U+2013', '〜 U+301C' * Refactor CSS for Japanese line-break --- libs/styles/styles.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/styles/styles.css b/libs/styles/styles.css index 7badedc0fc..7413807321 100644 --- a/libs/styles/styles.css +++ b/libs/styles/styles.css @@ -127,7 +127,7 @@ --icon-size-s: 32px; --icon-size-xs: 24px; --icon-size-xxs: 16px; - + /* z-index */ --above-all: 9000; /* Used for page tools that overlay page content */ } @@ -765,6 +765,10 @@ h6 { line-height: var(--type-heading-xs-lh); } +:is(h1, h2, h3, h4, h5, h6, p):lang(ja) { + line-break: strict; +} + /* Links */ a.auto-block, a.fragment {