Skip to content

Commit

Permalink
Justify non-Chinese text.
Browse files Browse the repository at this point in the history
  • Loading branch information
MetroWind committed Nov 5, 2024
1 parent 9ffe1ae commit 964a338
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions themes/planck/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,17 @@ p:first-of-type, pre p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p
text-indent: unset;
}

#Post p
{
text-align: justify;
hyphens: auto;
}

#Post[lang^="zh-"] p, #Post[lang="zh"] p
{
text-indent: 2em;
text-align: unset;
hyphens: unset;
}

#Post[lang^="zh-"] li > p, #Post[lang="zh"] li > p
Expand Down

0 comments on commit 964a338

Please sign in to comment.