Skip to content

Commit

Permalink
Adding a comment to explain purpose of overflow wrap in typography.css
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonnrosa committed Jul 28, 2023
1 parent 01e373d commit ec174a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/css/elements/_typography.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
/* The overflow-wrap is meant to prevent long/large words from breaking the mobile responsiveness of a page. It is preferred to reduce font sizes on mobile to address this, with this CSS specifically helping with extreme scenarios */

body {
line-height: 1.4;
overflow-wrap: break-word;
}

/* Handles word breaking differently for a few specific languages. If your content is not translated into these languages, you can safely remove this. */

html[lang^="ja"] body,
html[lang^="zh"] body,
html[lang^="ko"] body {
Expand Down

0 comments on commit ec174a5

Please sign in to comment.