diff options
| author | Tomás Dias Almeida <tomas.almeida@gmail.com> | 2020-12-31 11:41:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-31 16:11:18 +0530 |
| commit | bfb5019cbc929c63d19be7a5924e3999e4aace37 (patch) | |
| tree | 79a449181cba61c525352d0d23240cdba22bc8d3 | |
| parent | d53671786c1fba5764fce7d004b8eacebfdf1711 (diff) | |
Code block / blockquote / hr should respect the margin layout (#154)
* Code block should respect the margin layout
* Blockquote should respect the margin layout
* align others elements to main width with minors mods
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
| -rw-r--r-- | assets/css/post-single.css | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/assets/css/post-single.css b/assets/css/post-single.css index d4eea9c..631313b 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -140,7 +140,7 @@ .post-content:not(.gist) > .highlight, .post-content pre { - margin: auto calc(var(--gap) * -1) 32px; + margin: auto 0 20px; background: var(--hljs-bg) !important; border-radius: var(--radius) } @@ -203,13 +203,13 @@ } .post-content blockquote { - margin: 0 calc(var(--gap) * -1); - padding: 0 32px; + margin: 0 0; + padding: 0 14px; border-inline-start: 2px solid var(--primary) } .post-content hr { - margin: 30px calc(var(--gap) * -1); + margin: 30px 0; height: 2px; background: var(--tertiary); border-top: 0; @@ -337,10 +337,3 @@ h6:hover .anchor { margin-inline-start: 8px; font-weight: 500 } - -@media screen and (max-width:600px) { - .post-content blockquote { - margin: 0 calc(var(--gap) * -1); - padding: 0 21px - } -} |
