Skip to content

Commit 278f2b4

Browse files
committed
wrap on underscore
1 parent ad42731 commit 278f2b4

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

style.css

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,25 @@ body {
346346
color: #5c2a8a;
347347
margin: -0.625rem 0;
348348
text-shadow: 0 0 0.1875rem rgba(153, 0, 255, 0.2);
349-
white-space: pre-wrap;
350-
word-wrap: break-word;
349+
white-space: normal; /* allow wrapping */
350+
word-break: keep-all; /* don’t break in middle of words */
351351
width: 100%;
352352
}
353353

354+
.project-title::after {
355+
content: '';
356+
}
357+
358+
/* Add breaks after underscores */
359+
.project-title {
360+
word-break: break-word;
361+
}
362+
363+
.project-title span {
364+
display: inline;
365+
word-break: break-word;
366+
}
367+
354368
.bar {
355369
width: 14%;
356370
height: 0.3125rem;

0 commit comments

Comments
 (0)