Thumbnails: prefer *_thumb child note, fallback to first image; round embedded images and inline code; theme figcaptions

This commit is contained in:
trilium-share-gruvbox
2026-08-28 14:46:47 +02:00
parent 9a20dfa2e1
commit 302e48391c
3 changed files with 26 additions and 3 deletions
+17
View File
@@ -780,6 +780,8 @@ html.theme-light {
background-color: #3c3836;
color: #ebdbb2;
border-color: #504945;
border-radius: 4px;
padding: 0.1em 0.35em;
}
html.theme-light .ck-content pre,
@@ -796,6 +798,21 @@ html.theme-light #content code {
border-color: #bdae93;
}
/* ---------- Eingebettete Bilder: Radius wie Inline-Code ---------- */
#content figure img,
#content img:not(.blog-thumb) {
border-radius: 4px;
}
/* ---------- Bildunterschriften (Gruvbox) ---------- */
#content figcaption {
font-size: 0.85em;
font-style: italic;
color: var(--text-menu);
text-align: center;
margin-top: 6px;
}
.hljs {
background: #282828;
color: #ebdbb2;