diff options
| author | yingyu5658 <i@yingyu5658.me> | 2026-01-11 22:59:03 +0800 |
|---|---|---|
| committer | yingyu5658 <i@yingyu5658.me> | 2026-01-11 22:59:03 +0800 |
| commit | 16e2a3fd905c5ffb5e0a90c1a4805559d372b389 (patch) | |
| tree | 929186c19af5b27bdb75f2252e0949db44102221 /layouts | |
| parent | df0f931af8c9008bc59a2955dcf4c9facf2834fa (diff) | |
| download | blog-16e2a3fd905c5ffb5e0a90c1a4805559d372b389.tar.gz blog-16e2a3fd905c5ffb5e0a90c1a4805559d372b389.zip | |
docs: post weekly
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/custom_head.html | 6 | ||||
| -rw-r--r-- | layouts/partials/style.html | 18 | ||||
| -rw-r--r-- | layouts/shortcodes/mastodon.html | 16 |
3 files changed, 32 insertions, 8 deletions
diff --git a/layouts/partials/custom_head.html b/layouts/partials/custom_head.html index 206ee0b..a485758 100644 --- a/layouts/partials/custom_head.html +++ b/layouts/partials/custom_head.html @@ -15,3 +15,9 @@ rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" /> +<link + rel="stylesheet" + href="https://cdn.jsdelivr.net/npm/@idotj/mastodon-embed-timeline@4.7.0/dist/mastodon-timeline.min.css" + integrity="sha256-Qi3H+bdH6RuMuyR1trAlG5bMWJGl9y3jPiTc1PWQFpI=" + crossorigin="anonymous" +/> diff --git a/layouts/partials/style.html b/layouts/partials/style.html index 50650ea..8429fdb 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -16,7 +16,7 @@ --code-bg-color: #f2f2f2; --code-text-color: #222; --blockquote-border-color: #666; - --blockquote-text-color: #666; + --blockquote-text-color: #8c8c8c; --upvoted-color: #fa8072; --caption-text-color: #666; --toc-text-color: #e5e5e5; @@ -95,8 +95,9 @@ } article p { - line-height: 40px; + line-height: 35px; margin-top: 20px; + font-weight: 550; } .item-link { @@ -289,12 +290,17 @@ --music-bg-hover-dark: #525252; /* neutral-600 */ --music-bg-dark: rgba(82, 82, 82, 0.5); /* neutral-600/50 */ --music-text-secondary: #a3a3a3; + --color-background: var(--body-bg-color) !important; } blockquote strong { font-weight: 600; } + article p { + font-weight: 400; + } + .music-btn { background-color: var(--music-bg-dark); } @@ -526,18 +532,14 @@ } blockquote { - border-left: 4px solid var(--blockquote-border-color); + /* border-left: 4px solid var(--blockquote-border-color); */ color: var(--blockquote-text-color); margin: 0; margin-top: 17px; - padding-left: 16px; + padding-left: 20px; font-style: normal; } - blockquote p { - margin: 0; - } - footer { padding: 25px 0; text-align: left; diff --git a/layouts/shortcodes/mastodon.html b/layouts/shortcodes/mastodon.html new file mode 100644 index 0000000..cfb15ca --- /dev/null +++ b/layouts/shortcodes/mastodon.html @@ -0,0 +1,16 @@ +<script type="module" src="https://unpkg.com/mastodon-widget"></script> + +<mastodon-widget account="Verdant@c7.io" limit="10" header="true"> +</mastodon-widget> + +<style> + header, + .post-title, + .post-info { + display: none !important; + } + + mastodon-weight { + background-color: black !important; + } +</style> |
