Skip to content

Commit d020a4f

Browse files
committed
fix: add global hyphenation
- Will hyphenate words when browser support the language (https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens) - Added exceptions for things that should not be hyphenated (https://meyerweb.com/eric/thoughts/2012/12/17/where-to-avoid-css-hyphenation/)
1 parent 95ba6ee commit d020a4f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/assets/stylesheets/InternalStyles.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,27 @@
5858
display: flex;
5959
flex-flow: column;
6060
block-size: 100%;
61+
hyphens: auto;
6162

6263
.proj {
6364
min-block-size: 100%;
6465
}
66+
67+
code,
68+
var,
69+
kbd,
70+
samp,
71+
tt,
72+
dir,
73+
listing,
74+
plaintext,
75+
xmp,
76+
abbr,
77+
acronym,
78+
blockquote,
79+
q {
80+
hyphens: none;
81+
}
6582
}
6683

6784
code {

0 commit comments

Comments
 (0)