Skip to content

Commit 6341da5

Browse files
committed
Wrap long words
1 parent 670f9fd commit 6341da5

6 files changed

Lines changed: 23 additions & 5 deletions

File tree

‎articles/linux-hardening.html‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<body>
1212
<header>
1313
<h1>Linux Hardening Guide</h1>
14-
1514
<nav>
1615
<ul>
1716
<li>

‎contact.html‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<body>
1212
<header>
1313
<h1>Contact Us</h1>
14-
1514
<nav>
1615
<ul>
1716
<li>

‎index.html‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<body>
1212
<header>
1313
<h1>The Cyberpunk Handbook</h1>
14-
1514
<nav>
1615
<ul>
1716
<li>

‎license.html‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<body>
1212
<header>
1313
<h1>License</h1>
14-
1514
<nav>
1615
<ul>
1716
<li>

‎manifesto.html‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<body>
1212
<header>
1313
<h1>Manifesto</h1>
14-
1514
<nav>
1615
<ul>
1716
<li>

‎styles.css‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,29 @@ body {
8383
padding: var(--pad-y) var(--pad-x);
8484
}
8585

86+
/* Ensure very long words can break and wrap to the next line for readability */
87+
html, body, p, li, h1, h2, h3, h4, h5, h6 {
88+
overflow-wrap: anywhere;
89+
word-break: break-word;
90+
hyphens: auto;
91+
}
92+
93+
/* Protect code and pre from forced breaks */
94+
code, pre, kbd, samp {
95+
overflow-wrap: normal;
96+
word-break: normal;
97+
hyphens: none;
98+
}
99+
100+
pre {
101+
white-space: pre;
102+
overflow-x: auto;
103+
}
104+
105+
code {
106+
white-space: pre-wrap;
107+
}
108+
86109
/*
87110
* Link Styles
88111
* Color and hover effect for all links.

0 commit comments

Comments
 (0)