Skip to content

Commit b523192

Browse files
authored
Fix code block wraps on Safari (#298)
1 parent e01b521 commit b523192

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

assets/css/post-single.css

+9-8
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@
213213
color: rgba(255, 255, 255, .8);
214214
background: 0 0;
215215
border-radius: 0;
216-
overflow-x: auto
216+
overflow-x: auto;
217+
word-break: break-all;
217218
}
218219

219220
.post-content blockquote {
@@ -243,20 +244,20 @@
243244
}
244245

245246
.post-content figure.align-center {
246-
text-align: center;
247+
text-align: center;
247248
}
248249

249-
.post-content figure > figcaption {
250+
.post-content figure>figcaption {
250251
color: var(--primary);
251252
font-size: 16px;
252253
font-weight: bold;
253254
margin: 8px 0 16px;
254255
}
255256

256-
.post-content figure > figcaption > p {
257-
color: var(--secondary);
258-
font-size: 14px;
259-
font-weight: normal;
257+
.post-content figure>figcaption>p {
258+
color: var(--secondary);
259+
font-size: 14px;
260+
font-weight: normal;
260261
}
261262

262263
.toc {
@@ -428,4 +429,4 @@ h6:hover .anchor {
428429

429430
[dir="rtl"] .paginav .next {
430431
text-align: left;
431-
}
432+
}

0 commit comments

Comments
 (0)