diff options
| author | gsh3ll <64195264+gsh3ll@users.noreply.github.com> | 2021-03-19 21:21:20 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-19 18:51:20 +0530 |
| commit | b523192b513450ef5748fc9df6e86abb3735f744 (patch) | |
| tree | 4ef21ae20b00e8b9ff035b01b01ce22b36feaebe /assets/css/post-single.css | |
| parent | e01b52193a9db952286ccf03b91d3f43f5312fed (diff) | |
Fix code block wraps on Safari (#298)
Diffstat (limited to 'assets/css/post-single.css')
| -rw-r--r-- | assets/css/post-single.css | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/assets/css/post-single.css b/assets/css/post-single.css index 16a6c12..b4307e2 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -213,7 +213,8 @@ color: rgba(255, 255, 255, .8); background: 0 0; border-radius: 0; - overflow-x: auto + overflow-x: auto; + word-break: break-all; } .post-content blockquote { @@ -243,20 +244,20 @@ } .post-content figure.align-center { - text-align: center; + text-align: center; } -.post-content figure > figcaption { +.post-content figure>figcaption { color: var(--primary); font-size: 16px; font-weight: bold; margin: 8px 0 16px; } -.post-content figure > figcaption > p { - color: var(--secondary); - font-size: 14px; - font-weight: normal; +.post-content figure>figcaption>p { + color: var(--secondary); + font-size: 14px; + font-weight: normal; } .toc { @@ -428,4 +429,4 @@ h6:hover .anchor { [dir="rtl"] .paginav .next { text-align: left; -} +}
\ No newline at end of file |
