Skip to content

Build your personal knowledge base with Trilium Notes

fix(share): space headings and the title like the app

Elian Doran3353ecbe5078
diff --git a/packages/share-theme/src/content/content.css b/packages/share-theme/src/content/content.css
index 5cda115d6f..2e73be9c01 100644
--- a/packages/share-theme/src/content/content.css
+++ b/packages/share-theme/src/content/content.css
@@ -9,7 +9,7 @@
}
#content #title {
- margin: 0;
+ margin: 0 0 0.5em;
padding-top: 10px;
font-size: 2em;
font-weight: 300;
@@ -65,6 +65,11 @@ iframe.pdf-view {
border-bottom: 1px solid var(--background-highlight);
}
+/* The top margins of Bootstrap's reboot, which the app loads. */
+.ck-content :where(p, ul, ol, pre, blockquote, table) {
+ margin-top: 0;
+}
+
/* The links of the app's default theme, `theme-next/forms.css`; link previews and heading links have their own. */
.ck-content a:where(:not(.link-embed-mention, .link-embed-card, .toc-anchor)) {
--background: transparent;