@celestia-island/hikari 0.55.459 → 0.55.460
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/HkMarkdownEditor.d.ts +123 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/mermaid/wasmEngine.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/HkMarkdownEditor.barrel.test.ts +42 -0
- package/src/components/HkMarkdownEditor.scss +190 -0
- package/src/components/HkMarkdownEditor.test.tsx +404 -0
- package/src/components/HkMarkdownEditor.tsx +357 -0
- package/src/i18n/locales/ar/components.json +14 -1
- package/src/i18n/locales/de/components.json +14 -1
- package/src/i18n/locales/en/components.json +14 -1
- package/src/i18n/locales/es/components.json +14 -1
- package/src/i18n/locales/fr/components.json +14 -1
- package/src/i18n/locales/ja/components.json +14 -1
- package/src/i18n/locales/ko/components.json +14 -1
- package/src/i18n/locales/pt/components.json +14 -1
- package/src/i18n/locales/ru/components.json +14 -1
- package/src/i18n/locales/zh-Hans/components.json +14 -1
- package/src/i18n/locales/zh-Hant/components.json +14 -1
- package/src/index.ts +2 -0
- package/src/mermaid/wasmEngine.ts +1 -1
- package/src/scene3d/wasmFleetSpec.ts +1 -1
- package/src/utils/qr/qrEncoder.ts +6 -1
- package/src/wasm/highlight/hikari_wasm_highlight.d.ts +3 -2
- package/src/wasm/highlight/hikari_wasm_highlight.js +486 -160
- package/src/wasm/highlight/interfaces/celestia-hikari-highlight-types.d.ts +4 -0
- package/src/wasm/highlight/interfaces/wasi-cli-exit.d.ts +1 -0
- package/src/wasm/highlight/interfaces/wasi-clocks-monotonic-clock.d.ts +2 -0
- package/src/wasm/highlight/interfaces/wasi-clocks-wall-clock.d.ts +6 -0
- package/src/wasm/mermaid/hikari_wasm_mermaid.d.ts +3 -2
- package/src/wasm/mermaid/hikari_wasm_mermaid.js +487 -161
- package/src/wasm/mermaid/interfaces/celestia-hikari-mermaid-types.d.ts +4 -0
- package/src/wasm/mermaid/interfaces/wasi-cli-exit.d.ts +1 -0
- package/src/wasm/mermaid/interfaces/wasi-clocks-monotonic-clock.d.ts +2 -0
- package/src/wasm/mermaid/interfaces/wasi-clocks-wall-clock.d.ts +6 -0
- package/src/wasm/qr/hikari_wasm_qr.d.ts +4 -3
- package/src/wasm/qr/hikari_wasm_qr.js +475 -155
- package/src/wasm/qr/interfaces/{hikari-qr-types.d.ts → celestia-hikari-qr-types.d.ts} +1 -2
- package/src/wasm/qr/interfaces/wasi-cli-exit.d.ts +1 -0
- package/src/wasm/qr/interfaces/wasi-clocks-monotonic-clock.d.ts +2 -0
- package/src/wasm/qr/interfaces/wasi-clocks-wall-clock.d.ts +6 -0
- package/src/wasm/scene3d/hikari_wasm_scene3d.d.ts +4 -3
- package/src/wasm/scene3d/hikari_wasm_scene3d.js +482 -161
- package/src/wasm/scene3d/interfaces/{hikari-scene3d-types.d.ts → celestia-hikari-scene3d-types.d.ts} +1 -1
- package/src/wasm/scene3d/interfaces/wasi-cli-exit.d.ts +1 -0
- package/src/wasm/scene3d/interfaces/wasi-clocks-monotonic-clock.d.ts +2 -0
- package/src/wasm/scene3d/interfaces/wasi-clocks-wall-clock.d.ts +6 -0
- package/src/wasm/highlight/interfaces/hikari-highlight-types.d.ts +0 -4
- package/src/wasm/mermaid/interfaces/hikari-mermaid-types.d.ts +0 -4
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import "./HkMarkdownEditor.scss";
|
|
2
|
+
/** Editing dialect of the editor body. `markdown` runs the toolbar and the
|
|
3
|
+
* rendered live preview; `plain` reduces the surface to a textarea (the
|
|
4
|
+
* split preview degrades to pre-wrapped plain text). */
|
|
5
|
+
export type HkMarkdownEditorMode = "markdown" | "plain";
|
|
6
|
+
/** The result of one pure text transform: the rewritten source plus the
|
|
7
|
+
* selection the editor should restore afterwards. Selections are plain
|
|
8
|
+
* string indices into `text` — the same coordinates a textarea's
|
|
9
|
+
* selectionStart/selectionEnd speak. */
|
|
10
|
+
export interface MarkdownTextEdit {
|
|
11
|
+
text: string;
|
|
12
|
+
selectionStart: number;
|
|
13
|
+
selectionEnd: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Wrap the current selection with markers (pure). `before`/`after` default
|
|
17
|
+
* to the same string (`**`, `*`, `` ` ``, `~~` …). The returned selection is
|
|
18
|
+
* restored INSIDE the wrap: a non-empty selection stays selected around its
|
|
19
|
+
* wrapped text, an empty one parks the caret between the markers so the
|
|
20
|
+
* next keystroke lands inside the emphasis.
|
|
21
|
+
*/
|
|
22
|
+
export declare function applyWrap(source: string, selectionStart: number, selectionEnd: number, before: string, after?: string): MarkdownTextEdit;
|
|
23
|
+
/**
|
|
24
|
+
* Prefix every line covered by the selection (pure). The operated range is
|
|
25
|
+
* the full line range containing the selection — a caret mid-line still
|
|
26
|
+
* prefixes that whole line, and a selection spanning lines prefixes each
|
|
27
|
+
* one. `prefix` is either a literal (`- `, `> `, `## `) or a per-line
|
|
28
|
+
* factory receiving the zero-based line index (ordered lists emit
|
|
29
|
+
* `1. `, `2. `, …). The returned selection covers the rewritten lines.
|
|
30
|
+
*/
|
|
31
|
+
export declare function applyLinePrefix(source: string, selectionStart: number, selectionEnd: number, prefix: string | ((lineIndex: number) => string)): MarkdownTextEdit;
|
|
32
|
+
/**
|
|
33
|
+
* HkMarkdownEditor — the family's standard two-pane markdown/plain-text
|
|
34
|
+
* editor. Left: the textarea (every toolbar action a pure string transform
|
|
35
|
+
* over the current selection, refocused with a restored selection after
|
|
36
|
+
* each action). Right: the live preview through HkMarkdownRenderer,
|
|
37
|
+
* shown in split view — markdown mode renders, plain mode degrades to
|
|
38
|
+
* pre-wrapped plain text. Image drops/pastes are REPORTED (one
|
|
39
|
+
* `imageDrop` event per file) and never embedded or uploaded: the host
|
|
40
|
+
* owns the upload and inserts its own markdown marker.
|
|
41
|
+
*/
|
|
42
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
43
|
+
modelValue: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
mode: {
|
|
48
|
+
type: () => HkMarkdownEditorMode;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
view: {
|
|
52
|
+
type: () => "split" | "edit";
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
placeholder: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
disabled: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
/** Toolbar actions row (markdown mode only — plain mode has no
|
|
64
|
+
* markdown to insert). The mode segmented control always renders. */
|
|
65
|
+
toolbar: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
/** Report drag-dropped and pasted images through `imageDrop`. */
|
|
70
|
+
imageDrop: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
75
|
+
"update:modelValue": (_value: string) => true;
|
|
76
|
+
"update:mode": (_mode: HkMarkdownEditorMode) => true;
|
|
77
|
+
imageDrop: (_file: File) => true;
|
|
78
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
|
+
modelValue: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
mode: {
|
|
84
|
+
type: () => HkMarkdownEditorMode;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
view: {
|
|
88
|
+
type: () => "split" | "edit";
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
placeholder: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
disabled: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
/** Toolbar actions row (markdown mode only — plain mode has no
|
|
100
|
+
* markdown to insert). The mode segmented control always renders. */
|
|
101
|
+
toolbar: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
/** Report drag-dropped and pasted images through `imageDrop`. */
|
|
106
|
+
imageDrop: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
}>> & Readonly<{
|
|
111
|
+
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
112
|
+
onImageDrop?: ((_file: File) => any) | undefined;
|
|
113
|
+
"onUpdate:mode"?: ((_mode: HkMarkdownEditorMode) => any) | undefined;
|
|
114
|
+
}>, {
|
|
115
|
+
view: "split" | "edit";
|
|
116
|
+
mode: HkMarkdownEditorMode;
|
|
117
|
+
toolbar: boolean;
|
|
118
|
+
disabled: boolean;
|
|
119
|
+
modelValue: string;
|
|
120
|
+
placeholder: string;
|
|
121
|
+
imageDrop: boolean;
|
|
122
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
123
|
+
export default _default;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -347,6 +347,8 @@ export { default as HkLabel } from "./components/HkLabel";
|
|
|
347
347
|
export { default as HkListTransition } from "./components/HkListTransition";
|
|
348
348
|
export { default as HkLoadMore } from "./components/HkLoadMore";
|
|
349
349
|
export { default as HkMarkdownRenderer } from "./components/HkMarkdownRenderer";
|
|
350
|
+
export { default as HkMarkdownEditor, applyLinePrefix, applyWrap } from "./components/HkMarkdownEditor";
|
|
351
|
+
export type { HkMarkdownEditorMode, MarkdownTextEdit } from "./components/HkMarkdownEditor";
|
|
350
352
|
export { default as HkMermaidDiagram } from "./components/HkMermaidDiagram";
|
|
351
353
|
export { default as HkTerminal } from "./components/HkTerminal";
|
|
352
354
|
export { default as HkModal } from "./components/HkModal";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HostClientError } from "@celestia-island/tairitsu-host-client";
|
|
2
2
|
import type { MermaidParserEngine } from "./engine";
|
|
3
|
-
/** The component's `hikari
|
|
3
|
+
/** The component's `celestia:hikari-mermaid/types` `parse-result` record. */
|
|
4
4
|
export interface MermaidParseResult {
|
|
5
5
|
/** JSON-serialized MermaidDiagram; absent when unrecognized. */
|
|
6
6
|
json?: string;
|
package/package.json
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
HkMarkdownEditor,
|
|
5
|
+
applyLinePrefix,
|
|
6
|
+
applyWrap,
|
|
7
|
+
type HkMarkdownEditorMode,
|
|
8
|
+
type MarkdownTextEdit,
|
|
9
|
+
} from "../index";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Public barrel guard for HkMarkdownEditor (R3 review: deleting the
|
|
13
|
+
* component's export block from src/index.ts kept the entire suite green
|
|
14
|
+
* — every other test reaches the module through the direct
|
|
15
|
+
* "./HkMarkdownEditor" path, so only an external consumer would have
|
|
16
|
+
* noticed). Same shape as HkRangeRibbon.barrel.test.ts.
|
|
17
|
+
*/
|
|
18
|
+
describe("the public barrel", () => {
|
|
19
|
+
it("re-exports the editor component under its public name", () => {
|
|
20
|
+
expect(HkMarkdownEditor, "HkMarkdownEditor must be re-exported").toBeTruthy();
|
|
21
|
+
expect(HkMarkdownEditor.name).toBe("HkMarkdownEditor");
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it("re-exports the pure toolbar helpers hosts share", () => {
|
|
25
|
+
expect(typeof applyWrap, "applyWrap must be re-exported").toBe("function");
|
|
26
|
+
expect(typeof applyLinePrefix, "applyLinePrefix must be re-exported").toBe("function");
|
|
27
|
+
expect(applyWrap("ab", 0, 2, "**").text).toBe("**ab**");
|
|
28
|
+
expect(applyLinePrefix("x", 0, 1, "- ").text).toBe("- x");
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it("re-exports the editor's public types", () => {
|
|
32
|
+
// Type-only exports vanish at runtime, so each one is CONSUMED here: a
|
|
33
|
+
// dropped `type …` line fails vue-tsc on this file instead of leaving
|
|
34
|
+
// the runtime suite green.
|
|
35
|
+
const mode: HkMarkdownEditorMode = "plain";
|
|
36
|
+
const edit: MarkdownTextEdit = applyWrap("hi", 0, 0, "`");
|
|
37
|
+
expect(edit.text).toBe("``hi");
|
|
38
|
+
expect(edit.selectionStart).toBe(1);
|
|
39
|
+
expect(edit.selectionEnd).toBe(1);
|
|
40
|
+
expect(mode).toBe("plain");
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
// HkMarkdownEditor chrome — the two-pane markdown/plain editor.
|
|
2
|
+
//
|
|
3
|
+
// All colors ride hikari's token triplets (`rgb(var(--color-*))`,
|
|
4
|
+
// `color-mix`), spacing/radius/motion ride the `--space-*` / `--radius-*`
|
|
5
|
+
// / `--duration-*` / `--ease-*` families — no hardcoded hex anywhere, so
|
|
6
|
+
// every theme layer restyles the editor with zero per-component overrides.
|
|
7
|
+
|
|
8
|
+
.hk-md-editor {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
width: 100%;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
border: 1px solid var(--border-faint);
|
|
14
|
+
border-radius: var(--radius-md, 8px);
|
|
15
|
+
background: color-mix(in srgb, rgb(var(--color-surface)) 55%, transparent);
|
|
16
|
+
color: rgb(var(--color-text));
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// ── Toolbar row ──────────────────────────────────────────────────────────
|
|
21
|
+
// The markdown actions (left) and the mode segmented control (right). The
|
|
22
|
+
// mode control is part of the v-model:mode contract, not a toolbar action
|
|
23
|
+
// — it stays when `toolbar` is off and when the plain mode retires the
|
|
24
|
+
// markdown actions.
|
|
25
|
+
|
|
26
|
+
.hk-md-editor-toolbar {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: var(--space-8);
|
|
30
|
+
padding: var(--space-4) var(--space-8);
|
|
31
|
+
border-bottom: 1px solid var(--border-faint);
|
|
32
|
+
background: color-mix(in srgb, rgb(var(--color-background)) 35%, transparent);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.hk-md-editor-actions {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: var(--space-2);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Ghost icon button: the toolbar's smallest chrome step. Borderless and
|
|
42
|
+
// transparent until hovered — the label lives in `title`/`aria-label`.
|
|
43
|
+
.hk-md-editor-action {
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
width: 1.75rem;
|
|
48
|
+
height: 1.75rem;
|
|
49
|
+
padding: 0;
|
|
50
|
+
border: none;
|
|
51
|
+
border-radius: var(--radius-sm);
|
|
52
|
+
background: transparent;
|
|
53
|
+
color: rgb(var(--color-muted));
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
transition-property: background-color, color;
|
|
56
|
+
transition-duration: var(--duration-short);
|
|
57
|
+
transition-timing-function: var(--ease-standard);
|
|
58
|
+
|
|
59
|
+
&:hover:not(:disabled) {
|
|
60
|
+
background: color-mix(in srgb, rgb(var(--color-text)) 10%, transparent);
|
|
61
|
+
color: rgb(var(--color-text));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:focus-visible {
|
|
65
|
+
outline: none;
|
|
66
|
+
box-shadow: var(--shadow-focus);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:disabled {
|
|
70
|
+
opacity: 0.5;
|
|
71
|
+
cursor: not-allowed;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Compact segmented control (right side of the row).
|
|
76
|
+
.hk-md-editor-modes {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
gap: var(--space-2);
|
|
80
|
+
margin-inline-start: auto;
|
|
81
|
+
padding: var(--space-2);
|
|
82
|
+
border: 1px solid var(--border-faint);
|
|
83
|
+
border-radius: var(--radius-full);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.hk-md-editor-mode {
|
|
87
|
+
border: none;
|
|
88
|
+
padding: var(--space-2) var(--space-8);
|
|
89
|
+
border-radius: var(--radius-full);
|
|
90
|
+
background: transparent;
|
|
91
|
+
color: rgb(var(--color-muted));
|
|
92
|
+
font-size: var(--text-xs);
|
|
93
|
+
line-height: 1.4;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
transition-property: background-color, color;
|
|
96
|
+
transition-duration: var(--duration-short);
|
|
97
|
+
transition-timing-function: var(--ease-standard);
|
|
98
|
+
|
|
99
|
+
&:hover:not(:disabled) {
|
|
100
|
+
color: rgb(var(--color-text));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// The active tint rides data-active (the segmented grammar shared with
|
|
104
|
+
// HkPillToggleGroup) — a wash of the primary channel under the ink.
|
|
105
|
+
&[data-active] {
|
|
106
|
+
background: rgb(var(--color-primary) / 16%);
|
|
107
|
+
color: rgb(var(--color-text));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:disabled {
|
|
111
|
+
opacity: 0.5;
|
|
112
|
+
cursor: not-allowed;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// ── Two-pane body ────────────────────────────────────────────────────────
|
|
117
|
+
// ~50/50: each pane is flex-basis 50% with min-width 0 so long lines and
|
|
118
|
+
// wide tables scroll inside their own pane instead of pushing the split.
|
|
119
|
+
|
|
120
|
+
.hk-md-editor-body {
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: stretch;
|
|
123
|
+
flex: 1;
|
|
124
|
+
min-height: 12rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.hk-md-editor-input-pane {
|
|
128
|
+
position: relative;
|
|
129
|
+
display: flex;
|
|
130
|
+
flex: 1 1 50%;
|
|
131
|
+
min-width: 0;
|
|
132
|
+
|
|
133
|
+
// Drag-over highlight: an inset ring on the pane (the attribute comes
|
|
134
|
+
// from the component's dragging state; the look lives here).
|
|
135
|
+
&[data-dragging] {
|
|
136
|
+
box-shadow: inset 0 0 0 2px rgb(var(--color-focused-border));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.hk-md-editor-input {
|
|
141
|
+
box-sizing: border-box;
|
|
142
|
+
flex: 1;
|
|
143
|
+
width: 100%;
|
|
144
|
+
border: none;
|
|
145
|
+
outline: none;
|
|
146
|
+
resize: none;
|
|
147
|
+
background: transparent;
|
|
148
|
+
color: rgb(var(--color-text));
|
|
149
|
+
font-family: inherit;
|
|
150
|
+
font-size: var(--text-base);
|
|
151
|
+
line-height: 1.6;
|
|
152
|
+
padding: var(--space-8) var(--space-12);
|
|
153
|
+
|
|
154
|
+
&::placeholder {
|
|
155
|
+
color: rgb(var(--color-muted));
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&:disabled {
|
|
159
|
+
cursor: not-allowed;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// The preview pane carries the divider (border on the pane, not a gap) —
|
|
164
|
+
// in plain mode the renderer degrades to pre-wrapped plain text itself.
|
|
165
|
+
// Native scroll mechanics, no native bar (the house contract: the
|
|
166
|
+
// scrollbar-width/::-webkit-scrollbar suppression pair beside overflow).
|
|
167
|
+
.hk-md-editor-preview {
|
|
168
|
+
flex: 1 1 50%;
|
|
169
|
+
min-width: 0;
|
|
170
|
+
overflow: auto;
|
|
171
|
+
scrollbar-width: none;
|
|
172
|
+
&::-webkit-scrollbar {
|
|
173
|
+
display: none;
|
|
174
|
+
}
|
|
175
|
+
padding: var(--space-8) var(--space-12);
|
|
176
|
+
border-inline-start: 1px solid var(--border-faint);
|
|
177
|
+
background: color-mix(in srgb, rgb(var(--color-background)) 35%, transparent);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Narrow hosts stack the panes — the divider follows the block axis.
|
|
181
|
+
@media (max-width: 640px) {
|
|
182
|
+
.hk-md-editor-body {
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.hk-md-editor-preview {
|
|
187
|
+
border-inline-start: none;
|
|
188
|
+
border-block-start: 1px solid var(--border-faint);
|
|
189
|
+
}
|
|
190
|
+
}
|