Skip to content

Commit

Permalink
Enable Japanese phrase line breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
arayaryoma committed Sep 14, 2023
1 parent a840f07 commit 855979f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions blog.araya.dev/src/styles/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
margin: 0.5em 0;
overflow-wrap: break-word;
line-height: 2em;
word-break: auto-phrase;
}

.markdown a {
overflow-wrap: break-word;
color: var(--butterfly-blue);
word-break: auto-phrase;
}

.markdown a:hover {
Expand All @@ -32,22 +34,28 @@

.markdown h1 {
font-size: 2em;
word-break: auto-phrase;
}
.markdown h2 {
font-size: 1.75em;
word-break: auto-phrase;
}
.markdown h3 {
font-size: 1.6em;
word-break: auto-phrase;
}

.markdown h4 {
font-size: 1.5em;
word-break: auto-phrase;
}
.markdown h5 {
font-size: 1.25em;
word-break: auto-phrase;
}
.markdown h6 {
font-size: 1.1em;
word-break: auto-phrase;
}

.markdown h2 {
Expand Down

0 comments on commit 855979f

Please sign in to comment.