2026-02-16 08:04:06 +01:00
|
|
|
/* ==============================================
|
|
|
|
|
EditorTheme.css — BlockNote theme overrides
|
|
|
|
|
Driven by CSS custom properties from theme.json
|
|
|
|
|
============================================== */
|
|
|
|
|
|
|
|
|
|
/* --- Editor root --- */
|
|
|
|
|
.editor__blocknote-container .bn-editor {
|
|
|
|
|
font-family: var(--editor-font-family);
|
|
|
|
|
font-size: var(--editor-font-size);
|
|
|
|
|
line-height: var(--editor-line-height);
|
|
|
|
|
max-width: var(--editor-max-width);
|
2026-02-16 13:50:21 +01:00
|
|
|
margin: 0 auto; /* Center the editor body */
|
2026-02-16 08:04:06 +01:00
|
|
|
padding: var(--editor-padding-vertical) var(--editor-padding-horizontal);
|
|
|
|
|
color: var(--colors-text);
|
|
|
|
|
caret-color: var(--colors-cursor);
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-29 22:41:05 +02:00
|
|
|
.editor-content-width--wide .editor__blocknote-container .bn-editor {
|
|
|
|
|
max-width: none;
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
padding-right: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-16 09:17:03 +01:00
|
|
|
/* Override BlockNote's default line-height on block-outer so our theme controls it */
|
|
|
|
|
.editor__blocknote-container .bn-block-outer {
|
|
|
|
|
line-height: var(--editor-line-height) !important;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-16 09:27:28 +01:00
|
|
|
/* Stack handle buttons horizontally instead of vertically to reduce height,
|
|
|
|
|
so they fit within a single text line for headings and paragraphs. */
|
|
|
|
|
.editor__blocknote-container .bn-side-menu {
|
|
|
|
|
--group-wrap: nowrap !important;
|
|
|
|
|
flex-direction: row !important;
|
|
|
|
|
flex-wrap: nowrap !important;
|
|
|
|
|
gap: 0 !important;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-28 01:09:47 +02:00
|
|
|
.editor__blocknote-container .bn-side-menu [draggable="true"] * {
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-16 13:50:21 +01:00
|
|
|
/* More horizontal space between drag handle and content */
|
|
|
|
|
.editor__blocknote-container .bn-side-menu ~ * ,
|
|
|
|
|
.editor__blocknote-container [class*="bn-side-menu"] {
|
|
|
|
|
/* The side menu is positioned via transform — we shift it further left */
|
|
|
|
|
}
|
|
|
|
|
.editor__blocknote-container .bn-block-content {
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-16 08:04:06 +01:00
|
|
|
.editor__blocknote-container .bn-editor ::selection {
|
|
|
|
|
background: var(--colors-selection);
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-16 17:03:50 +02:00
|
|
|
/* Keep BlockNote toolbar/menu icons at a stable size.
|
|
|
|
|
Some default React Icons-based controls inherit `1em` sizing and can blow up
|
|
|
|
|
when upstream toolbar styling changes. */
|
|
|
|
|
.editor__blocknote-container :is(.bn-toolbar, .bn-formatting-toolbar, .bn-menu-dropdown, .bn-grid-suggestion-menu) button svg {
|
|
|
|
|
width: 16px !important;
|
|
|
|
|
height: 16px !important;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-16 08:04:06 +01:00
|
|
|
/* --- Paragraph spacing --- */
|
|
|
|
|
.editor__blocknote-container .bn-block-content[data-content-type="paragraph"] {
|
|
|
|
|
margin-bottom: var(--editor-paragraph-spacing);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Headings --- */
|
2026-02-16 08:52:18 +01:00
|
|
|
/* Heading spacing: use margin-top on .bn-block-outer (creates space between blocks)
|
|
|
|
|
and ensure the handle aligns by NOT adding padding/margin on inner elements.
|
|
|
|
|
BlockNote positions handles via JS based on .bn-block-content bounding rect. */
|
2026-02-16 08:24:49 +01:00
|
|
|
|
2026-02-16 13:50:21 +01:00
|
|
|
/* Title (H1) — visually separated from content.
|
|
|
|
|
BlockNote renders H1 without data-level, so we target :has(h1) */
|
|
|
|
|
.editor__blocknote-container .bn-block-outer:has(h1) {
|
2026-02-16 08:52:18 +01:00
|
|
|
margin-top: var(--headings-h1-margin-top) !important;
|
|
|
|
|
margin-bottom: var(--headings-h1-margin-bottom) !important;
|
2026-02-16 13:50:21 +01:00
|
|
|
padding-bottom: 16px !important;
|
2026-04-24 22:26:07 +02:00
|
|
|
border-bottom: 1px solid var(--border-primary);
|
2026-02-16 08:24:49 +01:00
|
|
|
}
|
2026-02-16 13:50:21 +01:00
|
|
|
.editor__blocknote-container [data-content-type="heading"]:not([data-level]) .bn-inline-content,
|
2026-02-16 08:04:06 +01:00
|
|
|
.editor__blocknote-container [data-content-type="heading"][data-level="1"] .bn-inline-content {
|
|
|
|
|
font-size: var(--headings-h1-font-size);
|
|
|
|
|
font-weight: var(--headings-h1-font-weight);
|
|
|
|
|
line-height: var(--headings-h1-line-height);
|
|
|
|
|
color: var(--headings-h1-color);
|
|
|
|
|
letter-spacing: var(--headings-h1-letter-spacing);
|
|
|
|
|
}
|
2026-04-12 00:58:11 +02:00
|
|
|
.editor__blocknote-container [data-content-type="heading"]:not([data-level])[data-is-empty-and-focused] .bn-inline-content:has(> .ProseMirror-trailingBreak:only-child)::before,
|
|
|
|
|
.editor__blocknote-container [data-content-type="heading"]:not([data-level])[data-is-only-empty-block] .bn-inline-content:has(> .ProseMirror-trailingBreak:only-child)::before,
|
|
|
|
|
.editor__blocknote-container [data-content-type="heading"][data-level="1"][data-is-empty-and-focused] .bn-inline-content:has(> .ProseMirror-trailingBreak:only-child)::before,
|
|
|
|
|
.editor__blocknote-container [data-content-type="heading"][data-level="1"][data-is-only-empty-block] .bn-inline-content:has(> .ProseMirror-trailingBreak:only-child)::before {
|
|
|
|
|
content: "Title" !important;
|
|
|
|
|
}
|
2026-02-16 08:04:06 +01:00
|
|
|
|
2026-02-16 08:33:15 +01:00
|
|
|
.editor__blocknote-container .bn-block-outer:has(> .bn-block > [data-content-type="heading"][data-level="2"]) {
|
2026-02-16 08:52:18 +01:00
|
|
|
margin-top: var(--headings-h2-margin-top) !important;
|
|
|
|
|
margin-bottom: var(--headings-h2-margin-bottom) !important;
|
2026-02-16 08:24:49 +01:00
|
|
|
}
|
2026-02-16 08:04:06 +01:00
|
|
|
.editor__blocknote-container [data-content-type="heading"][data-level="2"] .bn-inline-content {
|
|
|
|
|
font-size: var(--headings-h2-font-size);
|
|
|
|
|
font-weight: var(--headings-h2-font-weight);
|
|
|
|
|
line-height: var(--headings-h2-line-height);
|
|
|
|
|
color: var(--headings-h2-color);
|
|
|
|
|
letter-spacing: var(--headings-h2-letter-spacing);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-16 08:33:15 +01:00
|
|
|
.editor__blocknote-container .bn-block-outer:has(> .bn-block > [data-content-type="heading"][data-level="3"]) {
|
2026-02-16 08:52:18 +01:00
|
|
|
margin-top: var(--headings-h3-margin-top) !important;
|
|
|
|
|
margin-bottom: var(--headings-h3-margin-bottom) !important;
|
2026-02-16 08:24:49 +01:00
|
|
|
}
|
2026-02-16 08:04:06 +01:00
|
|
|
.editor__blocknote-container [data-content-type="heading"][data-level="3"] .bn-inline-content {
|
|
|
|
|
font-size: var(--headings-h3-font-size);
|
|
|
|
|
font-weight: var(--headings-h3-font-weight);
|
|
|
|
|
line-height: var(--headings-h3-line-height);
|
|
|
|
|
color: var(--headings-h3-color);
|
|
|
|
|
letter-spacing: var(--headings-h3-letter-spacing);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-16 08:33:15 +01:00
|
|
|
.editor__blocknote-container .bn-block-outer:has(> .bn-block > [data-content-type="heading"][data-level="4"]) {
|
2026-02-16 08:52:18 +01:00
|
|
|
margin-top: var(--headings-h4-margin-top) !important;
|
|
|
|
|
margin-bottom: var(--headings-h4-margin-bottom) !important;
|
2026-02-16 08:24:49 +01:00
|
|
|
}
|
2026-02-16 08:04:06 +01:00
|
|
|
.editor__blocknote-container [data-content-type="heading"][data-level="4"] .bn-inline-content {
|
|
|
|
|
font-size: var(--headings-h4-font-size);
|
|
|
|
|
font-weight: var(--headings-h4-font-weight);
|
|
|
|
|
line-height: var(--headings-h4-line-height);
|
|
|
|
|
color: var(--headings-h4-color);
|
|
|
|
|
letter-spacing: var(--headings-h4-letter-spacing);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Bullet lists --- */
|
2026-02-16 08:33:15 +01:00
|
|
|
/* BlockNote renders bullet as ::before on [data-content-type="bulletListItem"]
|
|
|
|
|
with content: "•", display: flex, width: 24px */
|
2026-02-16 08:04:06 +01:00
|
|
|
.editor__blocknote-container [data-content-type="bulletListItem"] {
|
|
|
|
|
padding-left: var(--lists-padding-left);
|
|
|
|
|
margin-bottom: var(--lists-item-spacing);
|
2026-02-16 08:54:11 +01:00
|
|
|
gap: var(--lists-bullet-gap) !important;
|
2026-02-16 08:04:06 +01:00
|
|
|
}
|
|
|
|
|
|
2026-02-16 08:33:15 +01:00
|
|
|
.editor__blocknote-container [data-content-type="bulletListItem"]::before {
|
2026-02-16 08:21:23 +01:00
|
|
|
font-size: var(--lists-bullet-size) !important;
|
|
|
|
|
color: var(--lists-bullet-color) !important;
|
2026-02-16 08:33:15 +01:00
|
|
|
min-width: var(--lists-indent-size) !important;
|
|
|
|
|
width: var(--lists-indent-size) !important;
|
2026-02-16 08:52:18 +01:00
|
|
|
/* Align bullet with first line of text */
|
|
|
|
|
height: calc(var(--editor-font-size) * var(--editor-line-height)) !important;
|
|
|
|
|
align-items: center !important;
|
|
|
|
|
flex-shrink: 0 !important;
|
2026-02-16 08:21:23 +01:00
|
|
|
}
|
|
|
|
|
|
2026-02-16 14:07:02 +01:00
|
|
|
/* Nested list indentation */
|
2026-02-16 08:21:23 +01:00
|
|
|
.editor__blocknote-container .bn-block-group .bn-block-group {
|
|
|
|
|
margin-left: var(--lists-indent-size);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-16 14:24:15 +01:00
|
|
|
/* Hide the vertical nesting lines — cleaner without them */
|
2026-02-16 14:07:02 +01:00
|
|
|
.editor__blocknote-container .bn-block-group .bn-block-group .bn-block-outer::before {
|
2026-02-16 14:24:15 +01:00
|
|
|
border-left: none !important;
|
2026-02-16 13:50:21 +01:00
|
|
|
}
|
|
|
|
|
|
2026-02-16 08:04:06 +01:00
|
|
|
/* --- Numbered lists --- */
|
|
|
|
|
.editor__blocknote-container [data-content-type="numberedListItem"] {
|
|
|
|
|
padding-left: var(--lists-padding-left);
|
|
|
|
|
margin-bottom: var(--lists-item-spacing);
|
2026-02-16 08:54:11 +01:00
|
|
|
gap: var(--lists-bullet-gap) !important;
|
2026-02-16 08:04:06 +01:00
|
|
|
}
|
|
|
|
|
|
2026-02-16 08:33:15 +01:00
|
|
|
.editor__blocknote-container [data-content-type="numberedListItem"]::before {
|
|
|
|
|
color: var(--lists-bullet-color) !important;
|
|
|
|
|
font-size: var(--editor-font-size) !important;
|
|
|
|
|
min-width: var(--lists-indent-size) !important;
|
|
|
|
|
width: var(--lists-indent-size) !important;
|
2026-02-16 08:52:18 +01:00
|
|
|
height: calc(var(--editor-font-size) * var(--editor-line-height)) !important;
|
|
|
|
|
align-items: center !important;
|
|
|
|
|
flex-shrink: 0 !important;
|
2026-02-16 08:33:15 +01:00
|
|
|
}
|
|
|
|
|
|
2026-02-16 08:04:06 +01:00
|
|
|
/* --- Checkbox / check list items --- */
|
2026-02-16 08:33:15 +01:00
|
|
|
/* BlockNote renders checkbox as: div > input[type=checkbox] inside .bn-block-content */
|
2026-02-16 08:04:06 +01:00
|
|
|
.editor__blocknote-container [data-content-type="checkListItem"] {
|
|
|
|
|
margin-bottom: var(--lists-item-spacing);
|
2026-02-16 08:54:11 +01:00
|
|
|
gap: var(--checkboxes-gap) !important;
|
2026-02-16 08:04:06 +01:00
|
|
|
}
|
|
|
|
|
|
2026-02-16 08:33:15 +01:00
|
|
|
.editor__blocknote-container [data-content-type="checkListItem"] input[type="checkbox"] {
|
|
|
|
|
width: var(--checkboxes-size) !important;
|
|
|
|
|
height: var(--checkboxes-size) !important;
|
|
|
|
|
min-width: var(--checkboxes-size) !important;
|
|
|
|
|
min-height: var(--checkboxes-size) !important;
|
|
|
|
|
border-radius: var(--checkboxes-border-radius) !important;
|
|
|
|
|
accent-color: var(--checkboxes-checked-color) !important;
|
|
|
|
|
border-color: var(--checkboxes-unchecked-border-color) !important;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-16 08:52:18 +01:00
|
|
|
/* Checkbox container div — control spacing, align to first line */
|
2026-02-16 08:33:15 +01:00
|
|
|
.editor__blocknote-container [data-content-type="checkListItem"] > div[contenteditable="false"] {
|
|
|
|
|
width: var(--lists-indent-size) !important;
|
|
|
|
|
min-width: var(--lists-indent-size) !important;
|
2026-02-16 08:52:18 +01:00
|
|
|
height: calc(var(--editor-font-size) * var(--editor-line-height)) !important;
|
|
|
|
|
display: flex !important;
|
|
|
|
|
align-items: center !important;
|
|
|
|
|
justify-content: center !important;
|
|
|
|
|
flex-shrink: 0 !important;
|
2026-02-16 08:33:15 +01:00
|
|
|
}
|
|
|
|
|
|
2026-02-16 08:04:06 +01:00
|
|
|
/* --- Inline: bold --- */
|
|
|
|
|
.editor__blocknote-container .bn-editor strong {
|
|
|
|
|
font-weight: var(--inline-styles-bold-font-weight);
|
|
|
|
|
color: var(--inline-styles-bold-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Inline: italic --- */
|
|
|
|
|
.editor__blocknote-container .bn-editor em {
|
|
|
|
|
font-style: var(--inline-styles-italic-font-style);
|
|
|
|
|
color: var(--inline-styles-italic-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Inline: strikethrough --- */
|
|
|
|
|
.editor__blocknote-container .bn-editor s,
|
|
|
|
|
.editor__blocknote-container .bn-editor del {
|
|
|
|
|
color: var(--inline-styles-strikethrough-color);
|
|
|
|
|
text-decoration: var(--inline-styles-strikethrough-text-decoration);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Inline: code --- */
|
2026-04-13 22:00:50 +02:00
|
|
|
.editor__blocknote-container .bn-inline-content code {
|
2026-02-16 08:04:06 +01:00
|
|
|
font-family: var(--inline-styles-code-font-family);
|
|
|
|
|
font-size: var(--inline-styles-code-font-size);
|
|
|
|
|
background-color: var(--inline-styles-code-background-color);
|
|
|
|
|
padding: var(--inline-styles-code-padding-vertical) var(--inline-styles-code-padding-horizontal);
|
|
|
|
|
border-radius: var(--inline-styles-code-border-radius);
|
|
|
|
|
color: var(--inline-styles-code-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Inline: links --- */
|
|
|
|
|
.editor__blocknote-container .bn-editor a {
|
|
|
|
|
color: var(--inline-styles-link-color);
|
|
|
|
|
text-decoration: var(--inline-styles-link-text-decoration);
|
2026-04-08 19:06:21 +02:00
|
|
|
cursor: text;
|
2026-02-16 08:04:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Wikilinks (override from Editor.css with theme vars) --- */
|
|
|
|
|
.editor__blocknote-container .wikilink {
|
|
|
|
|
color: var(--inline-styles-wikilink-color);
|
|
|
|
|
text-decoration: var(--inline-styles-wikilink-text-decoration);
|
|
|
|
|
border-bottom: var(--inline-styles-wikilink-border-bottom);
|
2026-04-08 19:06:21 +02:00
|
|
|
cursor: text;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-26 03:52:10 +02:00
|
|
|
.editor__blocknote-container .math {
|
|
|
|
|
color: var(--colors-text);
|
|
|
|
|
cursor: text;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor__blocknote-container .math--inline {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
vertical-align: -0.15em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor__blocknote-container .math-block-shell {
|
|
|
|
|
width: 100%;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
padding: 6px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor__blocknote-container .math--block {
|
|
|
|
|
display: block;
|
|
|
|
|
min-width: max-content;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor__blocknote-container .math .katex-error {
|
|
|
|
|
color: var(--destructive) !important;
|
|
|
|
|
white-space: pre-wrap;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:14:23 +02:00
|
|
|
.editor__blocknote-container .mermaid-diagram {
|
2026-04-28 10:30:59 +02:00
|
|
|
position: relative;
|
2026-04-27 22:14:23 +02:00
|
|
|
width: 100%;
|
|
|
|
|
margin: 10px 0;
|
|
|
|
|
color: var(--colors-text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor__blocknote-container .mermaid-diagram__viewport {
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
padding: 14px;
|
|
|
|
|
border: 1px solid var(--border-primary);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
background: var(--surface-editor);
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-28 10:30:59 +02:00
|
|
|
.editor__blocknote-container .mermaid-diagram__expand-button {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 8px;
|
|
|
|
|
right: 8px;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
background: var(--surface-editor);
|
|
|
|
|
box-shadow: 0 6px 16px rgb(15 23 42 / 0.14);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor__blocknote-container .mermaid-diagram:is(:hover, :focus-within) .mermaid-diagram__expand-button {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:14:23 +02:00
|
|
|
.editor__blocknote-container .mermaid-diagram__viewport:focus-visible {
|
|
|
|
|
outline: 2px solid var(--border-focus);
|
|
|
|
|
outline-offset: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor__blocknote-container .mermaid-diagram__viewport svg {
|
|
|
|
|
display: block;
|
|
|
|
|
max-width: none;
|
|
|
|
|
min-width: min-content;
|
|
|
|
|
height: auto;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-28 10:30:59 +02:00
|
|
|
@media (hover: none) {
|
|
|
|
|
.editor__blocknote-container .mermaid-diagram__expand-button {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mermaid-diagram__dialog {
|
|
|
|
|
width: calc(100vw - 32px);
|
|
|
|
|
max-width: calc(100vw - 32px);
|
|
|
|
|
height: calc(100dvh - 32px);
|
|
|
|
|
max-height: calc(100dvh - 32px);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mermaid-diagram__dialog-viewport {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
padding: 24px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mermaid-diagram__dialog-viewport:focus-visible {
|
|
|
|
|
outline: 2px solid var(--border-focus);
|
|
|
|
|
outline-offset: -2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mermaid-diagram__dialog-viewport svg {
|
|
|
|
|
display: block;
|
|
|
|
|
max-width: none;
|
|
|
|
|
min-width: min-content;
|
|
|
|
|
height: auto;
|
|
|
|
|
margin: auto;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-27 22:14:23 +02:00
|
|
|
.editor__blocknote-container .mermaid-diagram--error {
|
|
|
|
|
padding: 12px;
|
|
|
|
|
border: 1px solid var(--destructive);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
background: color-mix(in srgb, var(--destructive) 8%, transparent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor__blocknote-container .mermaid-diagram--error figcaption {
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
color: var(--destructive);
|
|
|
|
|
font-size: 0.85rem;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor__blocknote-container .mermaid-diagram--error pre {
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
background: var(--inline-styles-code-background-color);
|
|
|
|
|
color: var(--inline-styles-code-color);
|
|
|
|
|
font-size: 0.85rem;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-08 19:06:21 +02:00
|
|
|
.editor__blocknote-container[data-follow-links] .bn-editor a,
|
|
|
|
|
.editor__blocknote-container[data-follow-links] .wikilink {
|
|
|
|
|
cursor: pointer;
|
2026-02-16 08:04:06 +01:00
|
|
|
}
|
|
|
|
|
|
2026-04-13 22:00:50 +02:00
|
|
|
/* Code blocks intentionally keep BlockNote's dark shell and syntax-highlighted content. */
|
|
|
|
|
.editor__blocknote-container .bn-block-content[data-content-type="codeBlock"] pre code {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
padding: 0;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor__blocknote-container .bn-block-content[data-content-type="codeBlock"] pre code .shiki {
|
|
|
|
|
background-color: transparent !important;
|
|
|
|
|
}
|
2026-02-16 08:04:06 +01:00
|
|
|
|
|
|
|
|
/* --- Blockquote --- */
|
|
|
|
|
.editor__blocknote-container [data-content-type="blockquote"],
|
|
|
|
|
.editor__blocknote-container blockquote {
|
|
|
|
|
border-left: var(--blockquote-border-left-width) solid var(--blockquote-border-left-color);
|
|
|
|
|
padding-left: var(--blockquote-padding-left);
|
|
|
|
|
margin-top: var(--blockquote-margin-vertical);
|
|
|
|
|
margin-bottom: var(--blockquote-margin-vertical);
|
|
|
|
|
color: var(--blockquote-color);
|
|
|
|
|
font-style: var(--blockquote-font-style);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Table --- */
|
|
|
|
|
.editor__blocknote-container [data-content-type="table"] table {
|
|
|
|
|
border-color: var(--table-border-color);
|
|
|
|
|
font-size: var(--table-font-size);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor__blocknote-container [data-content-type="table"] th {
|
|
|
|
|
background: var(--table-header-background);
|
|
|
|
|
padding: var(--table-cell-padding-vertical) var(--table-cell-padding-horizontal);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor__blocknote-container [data-content-type="table"] td {
|
|
|
|
|
padding: var(--table-cell-padding-vertical) var(--table-cell-padding-horizontal);
|
|
|
|
|
border-color: var(--table-border-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Horizontal rule --- */
|
|
|
|
|
.editor__blocknote-container hr {
|
|
|
|
|
border: none;
|
|
|
|
|
border-top: var(--horizontal-rule-thickness) solid var(--horizontal-rule-color);
|
|
|
|
|
margin: var(--horizontal-rule-margin-vertical) 0;
|
|
|
|
|
}
|