Skip to content

Commit d7c49dc

Browse files
committed
Add German word hyphenation support: implement hyphens and word-break properties in main.scss for improved text rendering and layout consistency across browsers.
1 parent ffda0aa commit d7c49dc

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/scss/main.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@
3030
// Global custom styles
3131
// Bootstrap already applies $headings-font-family and $headings-color to h1-h6 via variables
3232

33+
// German word hyphenation
34+
// hyphens: auto is well-supported (Chrome 55+, Firefox 6+, Safari 5.1+)
35+
// hyphenate-limit-* properties have limited support (Chrome 109+, Firefox 137+)
36+
html {
37+
hyphens: auto;
38+
}
39+
40+
body {
41+
word-break: break-word; // Fallback for long words
42+
overflow-wrap: break-word; // Modern property name
43+
}
44+
3345
section {
3446
padding: $section-padding-y 0;
3547
}

0 commit comments

Comments
 (0)