diff options
| author | Reorx <novoreorx@gmail.com> | 2022-05-18 13:46:15 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-05-18 13:46:15 +0800 |
| commit | 7c253d3fee18ff79c1fd446126bc577cb2658456 (patch) | |
| tree | 50cf8d3263f63c7cc984bb0798c603afe47546e5 /assets | |
| parent | 570601c2a7a89893ad7bb8eb1f740dff260b2b3d (diff) | |
new shortcode: social-quote-tweet; enhance h2, h3 margin
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/css/common/post-single.css | 41 |
1 files changed, 32 insertions, 9 deletions
diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 1448e9a..bed37fa 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -34,12 +34,14 @@ color: var(--content); } -.post-content h3, .post-content h4, .post-content h5, .post-content h6 { margin: 24px 0 16px; } +.post-content h3 { + margin: 32px 0 24px; +} .post-content h1 { margin: 40px auto 32px; @@ -47,7 +49,7 @@ } .post-content h2 { - margin: 32px auto 24px; + margin: 40px auto 32px; font-size: 32px; } @@ -243,7 +245,7 @@ h6:hover .anchor { margin: 0 3px; padding: 4px 5px; border-radius: 3px; - font-size: 16px; + font-size: .95em; } .post-content pre code { /* reset inline code */ @@ -492,26 +494,47 @@ h6:hover .anchor { .social-links { margin: calc(var(--content-gap) * 2) 0; +} +.social-quote { + padding: 1em; +} +.social-quote.tweet { background-color: var(--code-bg); border-left: 3px solid var(--twitter-color); - padding: 1em; } -.social-links .title { +.social-quote.tweet svg { + color: var(--twitter-color); +} +.social-quote .title { margin-bottom: .5em; font-weight: 500; } +.social-quote .title svg { + width: 20px; + height: 20px; + vertical-align: text-bottom; +} +.social-quote .title span { + margin-inline-start: .5em; +} -.social-links blockquote { +.social-quote p > a { + margin-inline-start: .5em; +} +.social-quote blockquote { font-size: .8em; - margin: 0 0 0 1em; + /* reset for .post-content blockquote */ + margin: 0 0 0 0; + padding: 0; + border-inline-start: 0; } -.social-links blockquote a { +.social-quote blockquote a { font-weight: 500; color: var(--primary); box-shadow: var(--link-underline-shadow); transition: var(--link-transition); } -.social-links blockquote > a:hover { +.social-quote blockquote > a:hover { color: var(--twitter-color); box-shadow: 0 2px 0 var(--twitter-color); } |
