diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-20 11:54:41 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-20 16:33:50 +0530 |
| commit | e91b15284a4c3e019cf1ac7e4ec53bf4bba5f823 (patch) | |
| tree | cd04d8a5df94d40043702ec012875c9b0217078f /assets/css/post-single.css | |
| parent | 1e5f020efbae3ebfbcd8fa0850978d7c8032b9ea (diff) | |
css : refactor all margins
* hope this does not break anything xd
Diffstat (limited to 'assets/css/post-single.css')
| -rw-r--r-- | assets/css/post-single.css | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/assets/css/post-single.css b/assets/css/post-single.css index 5fb9af0..b73b264 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -1,8 +1,7 @@ /* Post single -------------------------------------------------- */ .post-header { - margin-top: 24px; - margin-bottom: var(--content-gap); + margin: 24px auto var(--content-gap) auto } .post-title { @@ -21,13 +20,11 @@ } .post-content h1 { - margin-top: 40px; - margin-bottom: 32px; + margin: 40px auto 32px auto } .post-content h2 { - margin-top: 32px; - margin-bottom: 24px; + margin: 32px auto 24px auto; } .post-content h3, @@ -36,6 +33,7 @@ .post-content h6 { margin-top: 24px; margin-bottom: 16px; + margin: 24px auto 16px auto; } .post-content h1 { @@ -67,8 +65,7 @@ } .post-content a code { - margin-left: 0; - margin-right: 0; + margin: auto 0; border-radius: 0; box-shadow: 0 -1px 0 var(--primary) inset; } @@ -138,15 +135,12 @@ } .post-content table:not(.highlighttable) td code:only-child { - margin-left: 0; - margin-right: 0; + margin: auto 0; } .post-content .highlight, .post-content pre { - margin-left: calc(var(--gap) * -1); - margin-right: calc(var(--gap) * -1); - margin-bottom: 32px; + margin: auto calc(var(--gap) * -1) 32px calc(var(--gap) * -1); background: var(--hljs-bg) !important; border-radius: var(--radius); } @@ -160,9 +154,7 @@ } .post-content .highlight pre { - margin-left: 0; - margin-right: 0; - margin-bottom: 0; + margin: 0; } /* table */ @@ -193,8 +185,7 @@ } .post-content code { - margin-left: 4px; - margin-right: 4px; + margin: auto 4px; padding: 4px 6px; font-family: Menlo, Monaco, 'Courier New', Courier, monospace; font-size: 0.78em; @@ -205,8 +196,7 @@ .post-content pre code { display: block; - margin-left: 0; - margin-right: 0; + margin: auto 0; padding: 10px; color: rgba(255, 255, 255, 0.8); background: transparent; |
