Skip to content

Commit

Permalink
Prevent a line break before 'ー U+2013', '〜 U+301C', and etc in Japane…
Browse files Browse the repository at this point in the history
…se (#2751)

* Prevent link breaks before 'ー U+2013', '〜 U+301C'

* Refactor CSS for Japanese line-break
  • Loading branch information
tamanyan committed Aug 20, 2024
1 parent 03a0874 commit cfedb3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit cfedb3c

Please sign in to comment.