Skip to content

Commit d15b9e3

Browse files
style: word wrap code to prevent content overflow-x
1 parent 27750d4 commit d15b9e3

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/styles/app.scss

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ code {
120120
overflow: auto;
121121
}
122122

123+
ul a code {
124+
word-break: break-word;
125+
}
126+
123127
section {
124128
padding: 30px 0 60px 0;
125129

@@ -221,14 +225,6 @@ div.brand {
221225
white-space: pre-wrap;
222226
}
223227

224-
pre code {
225-
white-space: inherit;
226-
}
227-
228-
ul code {
229-
display: block;
230-
}
231-
232228
a.anchor::before {
233229
content: "§";
234230
display: none;

0 commit comments

Comments
 (0)