@btst/stack 2.6.0 → 2.6.1
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/components/auto-form/index.cjs +8 -0
- package/dist/components/auto-form/index.d.cts +26 -0
- package/dist/components/auto-form/index.d.mts +26 -0
- package/dist/components/auto-form/index.d.ts +26 -0
- package/dist/components/auto-form/index.mjs +1 -0
- package/dist/components/empty/index.cjs +12 -0
- package/dist/components/empty/index.d.cts +15 -0
- package/dist/components/empty/index.d.mts +15 -0
- package/dist/components/empty/index.d.ts +15 -0
- package/dist/components/empty/index.mjs +1 -0
- package/dist/components/form-builder/index.cjs +16 -0
- package/dist/components/form-builder/index.d.cts +385 -0
- package/dist/components/form-builder/index.d.mts +385 -0
- package/dist/components/form-builder/index.d.ts +385 -0
- package/dist/components/form-builder/index.mjs +4 -0
- package/dist/components/markdown/index.cjs +9 -0
- package/dist/components/markdown/index.d.cts +30 -0
- package/dist/components/markdown/index.d.mts +30 -0
- package/dist/components/markdown/index.d.ts +30 -0
- package/dist/components/markdown/index.mjs +2 -0
- package/dist/components/markdown/style.css +394 -0
- package/dist/components/minimal-tiptap/style.css +548 -0
- package/dist/components/multi-select/index.cjs +7 -0
- package/dist/components/multi-select/index.d.cts +78 -0
- package/dist/components/multi-select/index.d.mts +78 -0
- package/dist/components/multi-select/index.d.ts +78 -0
- package/dist/components/multi-select/index.mjs +1 -0
- package/dist/components/search-select/index.cjs +7 -0
- package/dist/components/search-select/index.d.cts +15 -0
- package/dist/components/search-select/index.d.mts +15 -0
- package/dist/components/search-select/index.d.ts +15 -0
- package/dist/components/search-select/index.mjs +1 -0
- package/dist/components/stepped-auto-form/index.cjs +7 -0
- package/dist/components/stepped-auto-form/index.d.cts +37 -0
- package/dist/components/stepped-auto-form/index.d.mts +37 -0
- package/dist/components/stepped-auto-form/index.d.ts +37 -0
- package/dist/components/stepped-auto-form/index.mjs +1 -0
- package/dist/components/ui-builder/style.css +552 -0
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.cjs +1 -1
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +1 -1
- package/dist/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0__react@19.2.0/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +2 -2
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +3 -3
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +1 -1
- package/dist/packages/stack/src/plugins/blog/client/components/forms/markdown-editor-with-overrides.cjs +23 -0
- package/dist/packages/stack/src/plugins/blog/client/components/forms/markdown-editor-with-overrides.mjs +21 -0
- package/dist/packages/stack/src/plugins/blog/client/components/forms/markdown-editor.cjs +11 -12
- package/dist/packages/stack/src/plugins/blog/client/components/forms/markdown-editor.mjs +11 -12
- package/dist/packages/stack/src/plugins/blog/client/components/forms/post-forms.cjs +2 -2
- package/dist/packages/stack/src/plugins/blog/client/components/forms/post-forms.mjs +2 -2
- package/dist/packages/stack/src/plugins/blog/client/components/shared/search-input.cjs +0 -3
- package/dist/packages/stack/src/plugins/blog/client/components/shared/search-input.mjs +1 -1
- package/dist/packages/stack/src/plugins/blog/client/components/shared/search-modal.cjs +0 -3
- package/dist/packages/stack/src/plugins/blog/client/components/shared/search-modal.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/index.cjs +12 -2
- package/dist/packages/ui/src/components/auto-form/index.mjs +9 -2
- package/dist/packages/ui/src/components/auto-form/stepped-auto-form.cjs +2 -2
- package/dist/packages/ui/src/components/empty.cjs +28 -0
- package/dist/packages/ui/src/components/empty.mjs +27 -1
- package/dist/packages/ui/src/components/form-builder/components/index.mjs +2 -2
- package/dist/packages/ui/src/components/form-builder/edit-field-dialog.cjs +1 -1
- package/dist/packages/ui/src/components/form-builder/index.mjs +2 -2
- package/dist/packages/ui/src/components/form.mjs +1 -1
- package/dist/packages/ui/src/components/kanban.mjs +1 -1
- package/dist/packages/ui/src/components/multi-select.mjs +2 -2
- package/dist/packages/ui/src/components/ui-builder/internal/config-panel.cjs +1 -1
- package/dist/packages/ui/src/components/ui-builder/internal/props-panel.cjs +1 -1
- package/dist/plugins/blog/api/index.d.cts +2 -2
- package/dist/plugins/blog/api/index.d.mts +2 -2
- package/dist/plugins/blog/api/index.d.ts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
- package/dist/plugins/blog/client/index.d.cts +2 -2
- package/dist/plugins/blog/client/index.d.mts +2 -2
- package/dist/plugins/blog/client/index.d.ts +2 -2
- package/dist/plugins/blog/query-keys.d.cts +2 -2
- package/dist/plugins/blog/query-keys.d.mts +2 -2
- package/dist/plugins/blog/query-keys.d.ts +2 -2
- package/dist/plugins/cms/client/index.d.cts +1 -1
- package/dist/plugins/cms/client/index.d.mts +1 -1
- package/dist/plugins/cms/client/index.d.ts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.cts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.mts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.ts +1 -1
- package/dist/plugins/form-builder/client/index.d.cts +1 -1
- package/dist/plugins/form-builder/client/index.d.mts +1 -1
- package/dist/plugins/form-builder/client/index.d.ts +1 -1
- package/dist/plugins/kanban/api/index.d.cts +1 -1
- package/dist/plugins/kanban/api/index.d.mts +1 -1
- package/dist/plugins/kanban/api/index.d.ts +1 -1
- package/dist/plugins/kanban/query-keys.d.cts +1 -1
- package/dist/plugins/kanban/query-keys.d.mts +1 -1
- package/dist/plugins/kanban/query-keys.d.ts +1 -1
- package/dist/plugins/ui-builder/client/components/index.d.cts +2 -2
- package/dist/plugins/ui-builder/client/components/index.d.mts +2 -2
- package/dist/plugins/ui-builder/client/components/index.d.ts +2 -2
- package/dist/plugins/ui-builder/client/hooks/index.d.cts +3 -3
- package/dist/plugins/ui-builder/client/hooks/index.d.mts +3 -3
- package/dist/plugins/ui-builder/client/hooks/index.d.ts +3 -3
- package/dist/plugins/ui-builder/client/index.d.cts +3 -3
- package/dist/plugins/ui-builder/client/index.d.mts +3 -3
- package/dist/plugins/ui-builder/client/index.d.ts +3 -3
- package/dist/plugins/ui-builder/index.d.cts +3 -3
- package/dist/plugins/ui-builder/index.d.mts +3 -3
- package/dist/plugins/ui-builder/index.d.ts +3 -3
- package/dist/shared/{stack.B2DwzF3r.d.ts → stack.ASwEoINr.d.ts} +1 -1
- package/dist/shared/{stack.C5ZSOJGJ.d.cts → stack.B1srlBud.d.mts} +1 -1
- package/dist/shared/{stack.CQAZwXhV.d.cts → stack.B8vT-Yt4.d.mts} +3 -3
- package/dist/shared/{stack.D3BsrpAz.d.ts → stack.BAT540yW.d.ts} +3 -3
- package/dist/shared/{stack.D0QupDcQ.d.ts → stack.BK9Z2dcL.d.ts} +1 -1
- package/dist/shared/{stack.CNLHlv7r.d.mts → stack.BwA7trxA.d.cts} +3 -3
- package/dist/shared/{stack.Cl7ok_cY.d.cts → stack.CFECM0ew.d.cts} +1 -1
- package/dist/shared/stack.CZMWR72v.d.cts +10 -0
- package/dist/shared/stack.CZMWR72v.d.mts +10 -0
- package/dist/shared/stack.CZMWR72v.d.ts +10 -0
- package/dist/shared/{stack.VMmQdbsJ.d.mts → stack.DVtk5CNw.d.mts} +1 -1
- package/dist/shared/{stack.B8_74ror.d.ts → stack.DXnclTG7.d.ts} +4 -4
- package/dist/shared/{stack.CL4mKxe7.d.mts → stack.DaZM10cp.d.cts} +4 -4
- package/dist/shared/{stack.Dq4qVr1F.d.mts → stack.DmpPDPxA.d.cts} +1 -1
- package/dist/shared/{stack.C21-LFX8.d.cts → stack.cfCkioTe.d.mts} +4 -4
- package/dist/shared/stack.fdi94T4S.d.cts +291 -0
- package/dist/shared/stack.fdi94T4S.d.mts +291 -0
- package/dist/shared/stack.fdi94T4S.d.ts +291 -0
- package/package.json +97 -3
- package/src/components/auto-form/index.ts +12 -0
- package/src/components/empty/index.ts +8 -0
- package/src/components/form-builder/index.ts +23 -0
- package/src/components/kanban/index.ts +9 -0
- package/src/components/markdown/index.ts +5 -0
- package/src/components/markdown/style.css +3 -0
- package/src/components/minimal-tiptap/index.ts +5 -0
- package/src/components/minimal-tiptap/style.css +1 -0
- package/src/components/multi-select/index.ts +5 -0
- package/src/components/search-select/index.ts +1 -0
- package/src/components/stepped-auto-form/index.ts +5 -0
- package/src/components/ui-builder/index.ts +50 -0
- package/src/components/ui-builder/style.css +5 -0
- package/src/plugins/blog/client/components/forms/markdown-editor-with-overrides.tsx +29 -0
- package/src/plugins/blog/client/components/forms/markdown-editor.tsx +24 -21
- package/src/plugins/blog/client/components/forms/post-forms.tsx +2 -2
- package/src/plugins/blog/client/components/shared/posts-list.tsx +1 -1
- package/src/plugins/blog/client/components/shared/search-input.tsx +0 -2
- package/src/plugins/blog/client/components/shared/search-modal.tsx +0 -2
- package/dist/shared/stack.8nldKomx.d.cts +0 -114
- package/dist/shared/stack.8nldKomx.d.mts +0 -114
- package/dist/shared/stack.8nldKomx.d.ts +0 -114
- package/dist/shared/{stack.Ba_Ks8qi.d.mts → stack.B8D4r97Z.d.mts} +12 -12
- package/dist/shared/{stack.BWp0hcm9.d.cts → stack.BQmuNl5p.d.cts} +3 -3
- package/dist/shared/{stack.BWp0hcm9.d.mts → stack.BQmuNl5p.d.mts} +3 -3
- package/dist/shared/{stack.BWp0hcm9.d.ts → stack.BQmuNl5p.d.ts} +3 -3
- package/dist/shared/{stack.DMobugrZ.d.ts → stack.DgKOwl20.d.ts} +12 -12
- package/dist/shared/{stack.CFqqZUes.d.cts → stack.uWSqCWAb.d.cts} +12 -12
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
.markdown-content .markdown-inner .markdown-body {
|
|
2
|
+
font-family: var(--crepe-font-default);
|
|
3
|
+
color: var(--crepe-color-on-background);
|
|
4
|
+
background: var(--crepe-color-background);
|
|
5
|
+
padding: 0px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.markdown-content .markdown-inner .markdown-body img {
|
|
9
|
+
vertical-align: bottom;
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.markdown-content .markdown-inner .markdown-body .markdown-image-wrapper {
|
|
14
|
+
display: block;
|
|
15
|
+
position: relative;
|
|
16
|
+
width: 100%;
|
|
17
|
+
aspect-ratio: 16 / 9;
|
|
18
|
+
min-height: 200px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.markdown-content .markdown-inner .markdown-body .markdown-image-wrapper > div {
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.markdown-content .markdown-inner .markdown-body .markdown-image-wrapper img {
|
|
27
|
+
object-fit: contain;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.markdown-content .markdown-inner .markdown-body h1,
|
|
31
|
+
.markdown-content .markdown-inner .markdown-body h2,
|
|
32
|
+
.markdown-content .markdown-inner .markdown-body h3,
|
|
33
|
+
.markdown-content .markdown-inner .markdown-body h4,
|
|
34
|
+
.markdown-content .markdown-inner .markdown-body h5,
|
|
35
|
+
.markdown-content .markdown-inner .markdown-body h6 {
|
|
36
|
+
font-family: var(--crepe-font-title);
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
padding: 2px 0;
|
|
39
|
+
scroll-margin-top: 56px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.markdown-content .markdown-inner .markdown-body h1 .heading-anchor,
|
|
43
|
+
.markdown-content .markdown-inner .markdown-body h2 .heading-anchor,
|
|
44
|
+
.markdown-content .markdown-inner .markdown-body h3 .heading-anchor,
|
|
45
|
+
.markdown-content .markdown-inner .markdown-body h4 .heading-anchor,
|
|
46
|
+
.markdown-content .markdown-inner .markdown-body h5 .heading-anchor,
|
|
47
|
+
.markdown-content .markdown-inner .markdown-body h6 .heading-anchor {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
margin-left: 8px;
|
|
50
|
+
color: var(--crepe-color-on-surface-variant);
|
|
51
|
+
text-decoration: none;
|
|
52
|
+
transition: opacity 0.15s ease-in-out;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.markdown-content .markdown-inner .markdown-body h1:hover .heading-anchor,
|
|
56
|
+
.markdown-content .markdown-inner .markdown-body h2:hover .heading-anchor,
|
|
57
|
+
.markdown-content .markdown-inner .markdown-body h3:hover .heading-anchor,
|
|
58
|
+
.markdown-content .markdown-inner .markdown-body h4:hover .heading-anchor,
|
|
59
|
+
.markdown-content .markdown-inner .markdown-body h5:hover .heading-anchor,
|
|
60
|
+
.markdown-content .markdown-inner .markdown-body h6:hover .heading-anchor {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.markdown-content .markdown-inner .markdown-body h1 {
|
|
65
|
+
font-size: 42px;
|
|
66
|
+
line-height: 50px;
|
|
67
|
+
margin-top: 32px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.markdown-content .markdown-inner .markdown-body h2 {
|
|
71
|
+
font-size: 36px;
|
|
72
|
+
line-height: 44px;
|
|
73
|
+
margin-top: 28px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.markdown-content .markdown-inner .markdown-body h3 {
|
|
77
|
+
font-size: 32px;
|
|
78
|
+
line-height: 40px;
|
|
79
|
+
margin-top: 24px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.markdown-content .markdown-inner .markdown-body h4 {
|
|
83
|
+
font-size: 28px;
|
|
84
|
+
line-height: 36px;
|
|
85
|
+
margin-top: 20px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.markdown-content .markdown-inner .markdown-body h5 {
|
|
89
|
+
font-size: 24px;
|
|
90
|
+
line-height: 32px;
|
|
91
|
+
margin-top: 16px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.markdown-content .markdown-inner .markdown-body h6 {
|
|
95
|
+
font-size: 18px;
|
|
96
|
+
font-weight: 700;
|
|
97
|
+
line-height: 28px;
|
|
98
|
+
margin-top: 16px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.markdown-content .markdown-inner .markdown-body p {
|
|
102
|
+
font-size: 16px;
|
|
103
|
+
line-height: 24px;
|
|
104
|
+
padding: 4px 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.markdown-content .markdown-inner .markdown-body a {
|
|
108
|
+
color: var(--crepe-color-primary);
|
|
109
|
+
text-decoration: underline;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.markdown-content .markdown-inner .markdown-body code {
|
|
113
|
+
color: var(--crepe-color-inline-code);
|
|
114
|
+
background: color-mix(
|
|
115
|
+
in srgb,
|
|
116
|
+
var(--crepe-color-inline-area),
|
|
117
|
+
transparent 40%
|
|
118
|
+
);
|
|
119
|
+
font-family: var(--crepe-font-code);
|
|
120
|
+
padding: 0 2px;
|
|
121
|
+
border-radius: 4px;
|
|
122
|
+
font-size: 87.5%;
|
|
123
|
+
display: inline-block;
|
|
124
|
+
line-height: 1.4286;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.markdown-content .markdown-inner .markdown-body pre {
|
|
128
|
+
background: color-mix(
|
|
129
|
+
in srgb,
|
|
130
|
+
var(--crepe-color-inline-area),
|
|
131
|
+
transparent 40%
|
|
132
|
+
);
|
|
133
|
+
padding: 10px;
|
|
134
|
+
border-radius: 4px;
|
|
135
|
+
overflow-x: auto;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.markdown-content .markdown-inner .markdown-body pre code {
|
|
139
|
+
padding: 0;
|
|
140
|
+
background: transparent;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Ensure highlight.js themes color tokens inside our containers */
|
|
144
|
+
.markdown-content .markdown-inner .markdown-body pre code.hljs,
|
|
145
|
+
.markdown-content .markdown-inner .markdown-body code.hljs {
|
|
146
|
+
display: block;
|
|
147
|
+
overflow-x: auto;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Dark mode overrides for highlight.js tokens that have poor visibility */
|
|
151
|
+
@media (prefers-color-scheme: dark) {
|
|
152
|
+
.markdown-content .markdown-inner .markdown-body .hljs-attr {
|
|
153
|
+
color: #ff9ac1;
|
|
154
|
+
}
|
|
155
|
+
.markdown-content .markdown-inner .markdown-body .hljs-params {
|
|
156
|
+
color: #ffb86c;
|
|
157
|
+
}
|
|
158
|
+
.markdown-content .markdown-inner .markdown-body .hljs-punctuation {
|
|
159
|
+
color: #c9d1d9;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Also support Tailwind dark class for dark mode */
|
|
164
|
+
.dark .markdown-content .markdown-inner .markdown-body .hljs-attr {
|
|
165
|
+
color: #ff9ac1;
|
|
166
|
+
}
|
|
167
|
+
.dark .markdown-content .markdown-inner .markdown-body .hljs-params {
|
|
168
|
+
color: #ffb86c;
|
|
169
|
+
}
|
|
170
|
+
.dark .markdown-content .markdown-inner .markdown-body .hljs-punctuation {
|
|
171
|
+
color: #c9d1d9;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.markdown-content .markdown-inner .markdown-code-block {
|
|
175
|
+
display: block;
|
|
176
|
+
position: relative;
|
|
177
|
+
padding: 40px 8px 20px 20px;
|
|
178
|
+
margin: 4px 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.markdown-content .markdown-inner .markdown-code-block pre {
|
|
182
|
+
background: transparent;
|
|
183
|
+
padding: 0;
|
|
184
|
+
border-radius: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Layout wrapper to host gutter and code content side-by-side */
|
|
188
|
+
.markdown-content .markdown-inner .markdown-code-block .code-content {
|
|
189
|
+
display: grid;
|
|
190
|
+
grid-template-columns: var(--code-gutter-width, 3ch) 1fr;
|
|
191
|
+
gap: 0.35rem;
|
|
192
|
+
align-items: stretch;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* Gutter line numbers */
|
|
196
|
+
.markdown-content .markdown-inner .markdown-code-block .line-numbers {
|
|
197
|
+
list-style: none;
|
|
198
|
+
margin: 0;
|
|
199
|
+
user-select: none;
|
|
200
|
+
color: var(--crepe-color-on-surface-variant);
|
|
201
|
+
text-align: end;
|
|
202
|
+
display: flex;
|
|
203
|
+
flex-direction: column;
|
|
204
|
+
justify-content: space-between;
|
|
205
|
+
align-items: center;
|
|
206
|
+
height: 100%;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.markdown-content .markdown-inner .markdown-code-block .line-numbers li {
|
|
210
|
+
font-family: var(--crepe-font-code);
|
|
211
|
+
font-size: 12px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.markdown-content .markdown-inner .markdown-code-block .code-toolbar {
|
|
215
|
+
position: absolute;
|
|
216
|
+
top: 8px;
|
|
217
|
+
left: 18px;
|
|
218
|
+
right: 18px;
|
|
219
|
+
display: flex;
|
|
220
|
+
align-items: center;
|
|
221
|
+
justify-content: space-between;
|
|
222
|
+
pointer-events: none;
|
|
223
|
+
opacity: 0;
|
|
224
|
+
transition: opacity 0.15s ease-in-out;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.markdown-content .markdown-inner .markdown-code-block:hover .code-toolbar {
|
|
228
|
+
opacity: 1;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Also reveal toolbar when focused via keyboard for accessibility */
|
|
232
|
+
.markdown-content .markdown-inner .markdown-code-block:focus-within .code-toolbar {
|
|
233
|
+
opacity: 1;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.markdown-content .markdown-inner .markdown-code-block .language-label {
|
|
237
|
+
pointer-events: auto;
|
|
238
|
+
font-family: var(--crepe-font-default);
|
|
239
|
+
font-size: 12px;
|
|
240
|
+
font-weight: 600;
|
|
241
|
+
line-height: 16px;
|
|
242
|
+
color: var(--crepe-color-on-surface-variant);
|
|
243
|
+
background: var(--crepe-color-surface-low);
|
|
244
|
+
padding: 2px 8px;
|
|
245
|
+
border-radius: 4px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.markdown-content .markdown-inner .markdown-code-block .copy-button {
|
|
249
|
+
pointer-events: auto;
|
|
250
|
+
display: inline-flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
justify-content: center;
|
|
253
|
+
background: var(--crepe-color-surface-low);
|
|
254
|
+
color: var(--crepe-color-on-surface-variant);
|
|
255
|
+
border-radius: 4px;
|
|
256
|
+
padding: 4px 8px;
|
|
257
|
+
height: 26px;
|
|
258
|
+
width: 32px;
|
|
259
|
+
cursor: pointer;
|
|
260
|
+
transition: background-color 0.2s ease-in-out;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.markdown-content .markdown-inner .markdown-code-block .copy-button:hover {
|
|
264
|
+
background: var(--crepe-color-hover);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.markdown-content .markdown-inner .markdown-body blockquote {
|
|
268
|
+
position: relative;
|
|
269
|
+
padding-left: 40px;
|
|
270
|
+
padding-top: 0;
|
|
271
|
+
padding-bottom: 0;
|
|
272
|
+
box-sizing: content-box;
|
|
273
|
+
margin: 4px 0;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.markdown-content .markdown-inner .markdown-body blockquote::before {
|
|
277
|
+
content: "";
|
|
278
|
+
width: 4px;
|
|
279
|
+
left: 0;
|
|
280
|
+
top: 4px;
|
|
281
|
+
bottom: 4px;
|
|
282
|
+
position: absolute;
|
|
283
|
+
background: var(--crepe-color-selected);
|
|
284
|
+
border-radius: 100px;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.markdown-content .markdown-inner .markdown-body hr {
|
|
288
|
+
border: none;
|
|
289
|
+
background-color: color-mix(
|
|
290
|
+
in srgb,
|
|
291
|
+
var(--crepe-color-outline),
|
|
292
|
+
transparent 80%
|
|
293
|
+
);
|
|
294
|
+
background-clip: content-box;
|
|
295
|
+
padding: 6px 0;
|
|
296
|
+
height: 13px;
|
|
297
|
+
position: relative;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.markdown-content .markdown-inner .markdown-body ul:not(.contains-task-list) {
|
|
301
|
+
padding: 0;
|
|
302
|
+
list-style-type: disc;
|
|
303
|
+
margin-left: 26px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.markdown-content
|
|
307
|
+
.markdown-inner
|
|
308
|
+
.markdown-body
|
|
309
|
+
ul:not(.contains-task-list)
|
|
310
|
+
li::marker {
|
|
311
|
+
color: var(--crepe-color-outline);
|
|
312
|
+
font-size: 1.2em;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.markdown-content .markdown-inner .markdown-body ol {
|
|
316
|
+
padding: 0;
|
|
317
|
+
list-style-type: decimal;
|
|
318
|
+
margin-left: 20px;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.markdown-content .markdown-inner .markdown-body li.task-list-item {
|
|
322
|
+
position: relative;
|
|
323
|
+
list-style: none;
|
|
324
|
+
padding-left: 28px;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.markdown-content
|
|
328
|
+
.markdown-inner
|
|
329
|
+
.markdown-body
|
|
330
|
+
li.task-list-item
|
|
331
|
+
input[type="checkbox"] {
|
|
332
|
+
width: 20px;
|
|
333
|
+
height: 20px;
|
|
334
|
+
position: absolute;
|
|
335
|
+
left: 0;
|
|
336
|
+
margin: 0;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.markdown-content .markdown-inner .markdown-body table {
|
|
340
|
+
border-collapse: collapse;
|
|
341
|
+
table-layout: fixed;
|
|
342
|
+
width: 100%;
|
|
343
|
+
margin: 4px 0;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.markdown-content .markdown-inner .markdown-body th,
|
|
347
|
+
.markdown-content .markdown-inner .markdown-body td {
|
|
348
|
+
border: 1px solid
|
|
349
|
+
color-mix(in srgb, var(--crepe-color-outline), transparent 80%);
|
|
350
|
+
padding: 4px 16px;
|
|
351
|
+
overflow-wrap: anywhere;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/* Simplified chat variant - more compact for chat messages */
|
|
355
|
+
.markdown-content-chat .markdown-inner .markdown-body {
|
|
356
|
+
padding: 0;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.markdown-content-chat .markdown-inner .markdown-body h1,
|
|
360
|
+
.markdown-content-chat .markdown-inner .markdown-body h2,
|
|
361
|
+
.markdown-content-chat .markdown-inner .markdown-body h3,
|
|
362
|
+
.markdown-content-chat .markdown-inner .markdown-body h4,
|
|
363
|
+
.markdown-content-chat .markdown-inner .markdown-body h5,
|
|
364
|
+
.markdown-content-chat .markdown-inner .markdown-body h6 {
|
|
365
|
+
margin-top: 12px;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.markdown-content-chat .markdown-inner .markdown-body h1 {
|
|
369
|
+
font-size: 24px;
|
|
370
|
+
line-height: 32px;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.markdown-content-chat .markdown-inner .markdown-body h2 {
|
|
374
|
+
font-size: 20px;
|
|
375
|
+
line-height: 28px;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.markdown-content-chat .markdown-inner .markdown-body h3 {
|
|
379
|
+
font-size: 18px;
|
|
380
|
+
line-height: 26px;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.markdown-content-chat .markdown-inner .markdown-body p {
|
|
384
|
+
font-size: 14px;
|
|
385
|
+
line-height: 22px;
|
|
386
|
+
padding: 2px 0;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.markdown-content-chat .markdown-inner .markdown-code-block {
|
|
390
|
+
padding: 32px 8px 12px 12px;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
@import "@milkdown/crepe/theme/common/style.css";
|
|
394
|
+
@import "../../plugins/blog/client/components/forms/markdown-editor-styles.css";
|