@blocknote/mantine 0.39.1 → 0.41.0
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/blocknote-mantine.cjs +1 -1
- package/dist/blocknote-mantine.cjs.map +1 -1
- package/dist/blocknote-mantine.js +536 -577
- package/dist/blocknote-mantine.js.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +14 -9
- package/src/BlockNoteView.tsx +32 -28
- package/src/blocknoteStyles.css +795 -0
- package/src/components.tsx +0 -1
- package/src/mantineStyles.css +558 -39
- package/src/menu/Menu.tsx +41 -133
- package/src/style.css +1 -796
- package/types/src/BlockNoteView.d.ts +0 -1
- package/types/src/components.d.ts +0 -1
- package/dist/style.css +0 -1
package/src/style.css
CHANGED
|
@@ -1,797 +1,2 @@
|
|
|
1
|
-
@import url("@blocknote/react/style.css");
|
|
2
1
|
@import url("./mantineStyles.css");
|
|
3
|
-
|
|
4
|
-
/* Mantine base styles*/
|
|
5
|
-
|
|
6
|
-
/* Mantine Badge component base styles */
|
|
7
|
-
.bn-mantine .mantine-Badge-root {
|
|
8
|
-
background-color: var(--bn-colors-tooltip-background);
|
|
9
|
-
color: var(--bn-colors-tooltip-text);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* Mantine FileInput component base styles */
|
|
13
|
-
.bn-mantine .mantine-FileInput-input {
|
|
14
|
-
align-items: center;
|
|
15
|
-
background-color: var(--bn-colors-menu-background);
|
|
16
|
-
border: none;
|
|
17
|
-
border-radius: 4px;
|
|
18
|
-
color: var(--bn-colors-menu-text);
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: row;
|
|
21
|
-
font-family: var(--bn-font-family);
|
|
22
|
-
justify-content: center;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.bn-mantine .mantine-FileInput-input:hover {
|
|
26
|
-
background-color: var(--bn-colors-hovered-background);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.bn-mantine .mantine-FileInput-wrapper {
|
|
30
|
-
border: solid var(--bn-colors-border) 1px;
|
|
31
|
-
border-radius: 4px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.bn-mantine .mantine-InputPlaceholder-placeholder {
|
|
35
|
-
color: var(--bn-colors-menu-text);
|
|
36
|
-
font-family: var(--bn-font-family);
|
|
37
|
-
font-weight: 600;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/* Mantine Menu component base styles */
|
|
41
|
-
.bn-mantine .mantine-Menu-dropdown {
|
|
42
|
-
background-color: var(--bn-colors-menu-background);
|
|
43
|
-
border: var(--bn-border);
|
|
44
|
-
border-radius: var(--bn-border-radius-medium);
|
|
45
|
-
box-shadow: var(--bn-shadow-medium);
|
|
46
|
-
box-sizing: border-box;
|
|
47
|
-
color: var(--bn-colors-menu-text);
|
|
48
|
-
padding: 2px;
|
|
49
|
-
overflow: auto;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.bn-mantine .mantine-Menu-label {
|
|
53
|
-
background-color: var(--bn-colors-menu-background);
|
|
54
|
-
color: var(--bn-colors-menu-text);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.bn-mantine .mantine-Menu-item {
|
|
58
|
-
background-color: var(--bn-colors-menu-background);
|
|
59
|
-
border: none;
|
|
60
|
-
border-radius: var(--bn-border-radius-small);
|
|
61
|
-
color: var(--bn-colors-menu-text);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.bn-mantine .mantine-Menu-item[aria-selected="true"],
|
|
65
|
-
.bn-mantine .mantine-Menu-item:hover {
|
|
66
|
-
background-color: var(--bn-colors-hovered-background);
|
|
67
|
-
border: none;
|
|
68
|
-
color: var(--bn-colors-hovered-text);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Mantine Popover component base styles */
|
|
72
|
-
.bn-mantine .mantine-Popover-dropdown {
|
|
73
|
-
background-color: transparent;
|
|
74
|
-
border: none;
|
|
75
|
-
border-radius: 0;
|
|
76
|
-
box-shadow: none;
|
|
77
|
-
padding: 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* Mantine Tabs component base styles */
|
|
81
|
-
.bn-mantine .mantine-Tabs-root {
|
|
82
|
-
width: 100%;
|
|
83
|
-
background-color: var(--bn-colors-menu-background);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.bn-mantine .mantine-Tabs-list:before {
|
|
87
|
-
border-color: var(--bn-colors-hovered-background);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.bn-mantine .mantine-Tabs-tab {
|
|
91
|
-
color: var(--bn-colors-menu-text);
|
|
92
|
-
border-color: var(--bn-colors-hovered-background);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.bn-mantine .mantine-Tabs-tab:hover {
|
|
96
|
-
background-color: var(--bn-colors-hovered-background);
|
|
97
|
-
border-color: var(--bn-colors-hovered-background);
|
|
98
|
-
color: var(--bn-colors-hovered-text);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.bn-mantine .mantine-Tabs-tab[data-active],
|
|
102
|
-
.bn-mantine .mantine-Tabs-tab[data-active]:hover {
|
|
103
|
-
border-color: var(--bn-colors-menu-text);
|
|
104
|
-
color: var(--bn-colors-menu-text);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.bn-mantine .mantine-Tabs-panel {
|
|
108
|
-
padding: 8px;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/* Mantine TextInput component base styles */
|
|
112
|
-
.bn-mantine .mantine-TextInput-input {
|
|
113
|
-
background-color: var(--bn-colors-menu-background);
|
|
114
|
-
border: solid var(--bn-colors-border) 1px;
|
|
115
|
-
border-radius: 4px;
|
|
116
|
-
color: var(--bn-colors-menu-text);
|
|
117
|
-
font-family: var(--bn-font-family);
|
|
118
|
-
height: 32px;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.bn-mantine .bn-mt-input-large .mantine-TextInput-input {
|
|
122
|
-
border: none;
|
|
123
|
-
font-size: 14px;
|
|
124
|
-
height: 52px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/* Mantine Tooltip component base styles */
|
|
128
|
-
.bn-mantine .mantine-Tooltip-tooltip {
|
|
129
|
-
background-color: transparent;
|
|
130
|
-
border: none;
|
|
131
|
-
border-radius: 0;
|
|
132
|
-
box-shadow: none;
|
|
133
|
-
padding: 0;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.bn-mantine .mantine-Tooltip-tooltip p:last-child {
|
|
137
|
-
white-space: pre-wrap;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.bn-mantine .mantine-Tooltip-tooltip p:first-child {
|
|
141
|
-
white-space: unset;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/* UI element styling */
|
|
145
|
-
|
|
146
|
-
/* Select styling */
|
|
147
|
-
.bn-mantine .bn-select {
|
|
148
|
-
overflow: auto;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.bn-mantine .mantine-Button-root[aria-controls*="dropdown"] {
|
|
152
|
-
min-width: fit-content;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/* Toolbar styling */
|
|
156
|
-
.bn-mantine .bn-toolbar {
|
|
157
|
-
background-color: var(--bn-colors-menu-background);
|
|
158
|
-
border: var(--bn-border);
|
|
159
|
-
border-radius: var(--bn-border-radius-medium);
|
|
160
|
-
box-shadow: var(--bn-shadow-medium);
|
|
161
|
-
flex-wrap: nowrap;
|
|
162
|
-
gap: 2px;
|
|
163
|
-
padding: 2px;
|
|
164
|
-
width: fit-content;
|
|
165
|
-
overflow-x: auto;
|
|
166
|
-
max-width: 100vw;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.bn-mantine .bn-toolbar:empty {
|
|
170
|
-
display: none;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.bn-toolbar .mantine-Button-root,
|
|
174
|
-
.bn-toolbar .mantine-ActionIcon-root {
|
|
175
|
-
background-color: var(--bn-colors-menu-background);
|
|
176
|
-
border: none;
|
|
177
|
-
border-radius: var(--bn-border-radius-small);
|
|
178
|
-
color: var(--bn-colors-menu-text);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.bn-toolbar .mantine-Button-root:hover,
|
|
182
|
-
.bn-toolbar .mantine-ActionIcon-root:hover {
|
|
183
|
-
background-color: var(--bn-colors-hovered-background);
|
|
184
|
-
border: none;
|
|
185
|
-
color: var(--bn-colors-hovered-text);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.bn-toolbar .mantine-Button-root[data-selected],
|
|
189
|
-
.bn-toolbar .mantine-ActionIcon-root[data-selected] {
|
|
190
|
-
background-color: var(--bn-colors-selected-background);
|
|
191
|
-
border: none;
|
|
192
|
-
color: var(--bn-colors-selected-text);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.bn-toolbar .mantine-Button-root[data-disabled],
|
|
196
|
-
.bn-toolbar .mantine-ActionIcon-root[data-disabled] {
|
|
197
|
-
background-color: var(--bn-colors-disabled-background);
|
|
198
|
-
border: none;
|
|
199
|
-
color: var(--bn-colors-disabled-text);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.bn-toolbar .mantine-Menu-item {
|
|
203
|
-
font-size: 12px;
|
|
204
|
-
height: 30px;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.bn-toolbar .mantine-Menu-item:hover {
|
|
208
|
-
background-color: var(--bn-colors-hovered-background);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.bn-mantine .bn-form-popover {
|
|
212
|
-
background-color: var(--bn-colors-menu-background);
|
|
213
|
-
border: var(--bn-border);
|
|
214
|
-
border-radius: var(--bn-border-radius-medium);
|
|
215
|
-
box-shadow: var(--bn-shadow-medium);
|
|
216
|
-
color: var(--bn-colors-menu-text);
|
|
217
|
-
gap: 4px;
|
|
218
|
-
min-width: 145px;
|
|
219
|
-
padding: 2px;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.bn-form-popover .mantine-TextInput-root,
|
|
223
|
-
.bn-form-popover .mantine-FileInput-root {
|
|
224
|
-
width: 300px;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.bn-form-popover .mantine-TextInput-wrapper,
|
|
228
|
-
.bn-form-popover .mantine-FileInput-wrapper {
|
|
229
|
-
padding: 0;
|
|
230
|
-
border-radius: 4px;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.bn-form-popover .mantine-TextInput-wrapper:hover {
|
|
234
|
-
background-color: var(--bn-colors-hovered-background);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.bn-form-popover .mantine-TextInput-input,
|
|
238
|
-
.bn-form-popover .mantine-FileInput-input {
|
|
239
|
-
border: none;
|
|
240
|
-
font-size: 12px;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.bn-form-popover .mantine-FileInput-input:hover {
|
|
244
|
-
background-color: var(--bn-colors-hovered-background);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.bn-form-popover .mantine-FileInput-section[data-position="left"] {
|
|
248
|
-
color: var(--bn-colors-menu-text);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.bn-form-popover .mantine-FileInput-placeholder {
|
|
252
|
-
color: var(--bn-colors-menu-text);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
/* Suggestion Menu styling*/
|
|
256
|
-
|
|
257
|
-
/* Base styles for Suggestion Menus, copied from the Mantine Menu component. */
|
|
258
|
-
/* Unfortunately necessary, as we can't use a Menu.Dropdown component on its
|
|
259
|
-
own. */
|
|
260
|
-
/* https://github.com/mantinedev/mantine/blob/e3e3bb834de1f2f75a27dbc757dc0a2fc6a6cba8/packages/%40mantine/core/src/components/Menu/Menu.module.css */
|
|
261
|
-
.bn-mantine .bn-suggestion-menu {
|
|
262
|
-
max-height: 100%;
|
|
263
|
-
position: relative;
|
|
264
|
-
box-shadow: var(--mantine-shadow-md);
|
|
265
|
-
border: calc(0.0625rem * var(--mantine-scale)) solid
|
|
266
|
-
var(--mantine-color-gray-2);
|
|
267
|
-
border-radius: var(--mantine-radius-default);
|
|
268
|
-
padding: 4px;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.bn-mantine .bn-suggestion-menu-label {
|
|
272
|
-
color: var(--mantine-color-dimmed);
|
|
273
|
-
font-weight: 500;
|
|
274
|
-
font-size: var(--mantine-font-size-xs);
|
|
275
|
-
padding: calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);
|
|
276
|
-
cursor: default;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.bn-mantine .bn-suggestion-menu-item {
|
|
280
|
-
font-size: var(--mantine-font-size-sm);
|
|
281
|
-
width: 100%;
|
|
282
|
-
padding: calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);
|
|
283
|
-
border-radius: var(--popover-radius, var(--mantine-radius-default));
|
|
284
|
-
color: var(--menu-item-color, var(--mantine-color-text));
|
|
285
|
-
display: flex;
|
|
286
|
-
align-items: center;
|
|
287
|
-
user-select: none;
|
|
288
|
-
|
|
289
|
-
&:where([data-disabled], :disabled) {
|
|
290
|
-
color: var(--mantine-color-dimmed);
|
|
291
|
-
opacity: 0.6;
|
|
292
|
-
pointer-events: none;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/* Additional Suggestion Menu styling*/
|
|
297
|
-
.bn-mt-suggestion-menu-item-body {
|
|
298
|
-
flex: 1;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.bn-mt-suggestion-menu-item-section {
|
|
302
|
-
display: flex;
|
|
303
|
-
justify-content: center;
|
|
304
|
-
align-items: center;
|
|
305
|
-
|
|
306
|
-
&:where([data-position="left"]) {
|
|
307
|
-
margin-inline-end: var(--mantine-spacing-xs);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
&:where([data-position="right"]) {
|
|
311
|
-
margin-inline-start: var(--mantine-spacing-xs);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.bn-mantine .bn-suggestion-menu {
|
|
316
|
-
background-color: var(--bn-colors-menu-background);
|
|
317
|
-
border: var(--bn-border);
|
|
318
|
-
border-radius: var(--bn-border-radius-medium);
|
|
319
|
-
box-shadow: var(--bn-shadow-medium);
|
|
320
|
-
box-sizing: border-box;
|
|
321
|
-
color: var(--bn-colors-menu-text);
|
|
322
|
-
height: fit-content;
|
|
323
|
-
max-height: inherit;
|
|
324
|
-
overflow-y: auto;
|
|
325
|
-
padding: 2px;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.bn-mantine .bn-suggestion-menu-item {
|
|
329
|
-
cursor: pointer;
|
|
330
|
-
height: 52px;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.bn-mantine .bn-suggestion-menu-item-small {
|
|
334
|
-
height: fit-content;
|
|
335
|
-
/* Made to match with labels */
|
|
336
|
-
padding: calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.bn-mantine .bn-suggestion-menu-item[aria-selected="true"],
|
|
340
|
-
.bn-mantine .bn-suggestion-menu-item:hover {
|
|
341
|
-
background-color: var(--bn-colors-hovered-background);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
.bn-mt-suggestion-menu-item-section {
|
|
345
|
-
color: var(--bn-colors-tooltip-text);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.bn-mt-suggestion-menu-item-section[data-position="left"] {
|
|
349
|
-
background-color: var(--bn-colors-tooltip-background);
|
|
350
|
-
border-radius: var(--bn-border-radius-small);
|
|
351
|
-
padding: 8px;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.bn-suggestion-menu-item-small
|
|
355
|
-
.bn-mt-suggestion-menu-item-section[data-position="left"] {
|
|
356
|
-
background-color: transparent;
|
|
357
|
-
padding: 0;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.bn-suggestion-menu-item-small
|
|
361
|
-
.bn-mt-suggestion-menu-item-section[data-position="left"]
|
|
362
|
-
svg {
|
|
363
|
-
height: 14px;
|
|
364
|
-
width: 14px;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.bn-mt-suggestion-menu-item-body {
|
|
368
|
-
align-items: stretch;
|
|
369
|
-
display: flex;
|
|
370
|
-
flex: 1;
|
|
371
|
-
flex-direction: column;
|
|
372
|
-
justify-content: flex-start;
|
|
373
|
-
padding-right: 16px;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
.bn-mt-suggestion-menu-item-title {
|
|
377
|
-
color: var(--bn-colors-menu-text);
|
|
378
|
-
line-height: 20px;
|
|
379
|
-
font-weight: 500;
|
|
380
|
-
font-size: 14px;
|
|
381
|
-
margin: 0;
|
|
382
|
-
padding: 0;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.bn-suggestion-menu-item-small .bn-mt-suggestion-menu-item-title {
|
|
386
|
-
font-size: 12px;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.bn-mt-suggestion-menu-item-subtitle {
|
|
390
|
-
color: var(--bn-colors-menu-text);
|
|
391
|
-
line-height: 16px;
|
|
392
|
-
font-size: 10px;
|
|
393
|
-
margin: 0;
|
|
394
|
-
padding: 0;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.bn-suggestion-menu-item-small .bn-mt-suggestion-menu-item-subtitle {
|
|
398
|
-
display: none;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.bn-mantine .bn-suggestion-menu-label {
|
|
402
|
-
color: var(--bn-colors-hovered-text);
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
.bn-mantine .bn-suggestion-menu-loader {
|
|
406
|
-
height: 20px;
|
|
407
|
-
width: 100%;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
.bn-mantine .bn-suggestion-menu-loader span {
|
|
411
|
-
background-color: var(--bn-colors-side-menu);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.bn-mantine .bn-grid-suggestion-menu {
|
|
415
|
-
background: var(--bn-colors-menu-background);
|
|
416
|
-
border-radius: var(--bn-border-radius-large);
|
|
417
|
-
box-shadow: var(--bn-shadow-medium);
|
|
418
|
-
display: grid;
|
|
419
|
-
gap: 7px;
|
|
420
|
-
height: fit-content;
|
|
421
|
-
justify-items: center;
|
|
422
|
-
max-height: inherit;
|
|
423
|
-
overflow-y: auto;
|
|
424
|
-
padding: 20px;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.bn-mantine .bn-grid-suggestion-menu-item {
|
|
428
|
-
align-items: center;
|
|
429
|
-
border-radius: var(--bn-border-radius-large);
|
|
430
|
-
cursor: pointer;
|
|
431
|
-
display: flex;
|
|
432
|
-
font-size: 24px;
|
|
433
|
-
height: 32px;
|
|
434
|
-
justify-content: center;
|
|
435
|
-
margin: 2px;
|
|
436
|
-
padding: 4px;
|
|
437
|
-
width: 32px;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
.bn-mantine .bn-grid-suggestion-menu-item[aria-selected="true"],
|
|
441
|
-
.bn-mantine .bn-grid-suggestion-menu-item:hover {
|
|
442
|
-
background-color: var(--bn-colors-hovered-background);
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.bn-mantine .bn-grid-suggestion-menu-empty-item,
|
|
446
|
-
.bn-mantine .bn-grid-suggestion-menu-loader {
|
|
447
|
-
align-items: center;
|
|
448
|
-
color: var(--bn-colors-menu-text);
|
|
449
|
-
display: flex;
|
|
450
|
-
font-size: 14px;
|
|
451
|
-
font-weight: 500;
|
|
452
|
-
height: 32px;
|
|
453
|
-
justify-content: center;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
.bn-mantine .bn-grid-suggestion-menu-loader span {
|
|
457
|
-
background-color: var(--bn-colors-side-menu);
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
/* Side Menu styling */
|
|
461
|
-
.bn-mantine .bn-side-menu {
|
|
462
|
-
background-color: transparent;
|
|
463
|
-
overflow: visible;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
.bn-side-menu .mantine-Menu-item,
|
|
467
|
-
.bn-table-handle-menu .mantine-Menu-item {
|
|
468
|
-
font-size: 12px;
|
|
469
|
-
height: 30px;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.bn-side-menu .mantine-UnstyledButton-root:not(.mantine-Menu-item) {
|
|
473
|
-
background-color: transparent;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.bn-side-menu .mantine-UnstyledButton-root:hover {
|
|
477
|
-
background-color: var(--bn-colors-hovered-background);
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.bn-side-menu .mantine-UnstyledButton-root:not(.mantine-Menu-item) svg {
|
|
481
|
-
background-color: transparent;
|
|
482
|
-
color: var(--bn-colors-side-menu);
|
|
483
|
-
height: 22px;
|
|
484
|
-
width: 22px;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
.bn-mantine .bn-side-menu > [draggable="true"] {
|
|
488
|
-
display: flex;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.bn-side-menu .mantine-Menu-dropdown {
|
|
492
|
-
min-width: 100px;
|
|
493
|
-
padding: 2px;
|
|
494
|
-
position: absolute;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
/* Image Panel styling*/
|
|
498
|
-
.bn-mantine .bn-panel {
|
|
499
|
-
background-color: var(--bn-colors-menu-background);
|
|
500
|
-
border: var(--bn-border);
|
|
501
|
-
border-radius: var(--bn-border-radius-medium);
|
|
502
|
-
box-shadow: var(--bn-shadow-medium);
|
|
503
|
-
padding: 2px;
|
|
504
|
-
width: 500px;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
.bn-mantine .bn-panel .bn-tab-panel {
|
|
508
|
-
align-items: center;
|
|
509
|
-
display: flex;
|
|
510
|
-
flex-direction: column;
|
|
511
|
-
gap: 8px;
|
|
512
|
-
width: 100%;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
.bn-panel .mantine-TextInput-root,
|
|
516
|
-
.bn-panel .mantine-FileInput-root {
|
|
517
|
-
width: 100%;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
.bn-panel .mantine-Button-root {
|
|
521
|
-
background-color: var(--bn-colors-menu-background);
|
|
522
|
-
border: solid var(--bn-colors-border) 1px;
|
|
523
|
-
border-radius: var(--bn-border-radius-small);
|
|
524
|
-
color: var(--bn-colors-menu-text);
|
|
525
|
-
height: 32px;
|
|
526
|
-
width: 60%;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
.bn-panel .mantine-Button-root:hover {
|
|
530
|
-
background-color: var(--bn-colors-hovered-background);
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
.bn-panel .mantine-Text-root {
|
|
534
|
-
text-align: center;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
/* Table Handle styling */
|
|
538
|
-
.bn-mantine .bn-table-handle,
|
|
539
|
-
.bn-mantine .bn-extend-button,
|
|
540
|
-
.bn-mantine .bn-table-cell-handle {
|
|
541
|
-
align-items: center;
|
|
542
|
-
background-color: var(--bn-colors-menu-background);
|
|
543
|
-
border: var(--bn-border);
|
|
544
|
-
border-radius: var(--bn-border-radius-small);
|
|
545
|
-
box-shadow: var(--bn-shadow-light);
|
|
546
|
-
color: var(--bn-colors-side-menu);
|
|
547
|
-
cursor: grab;
|
|
548
|
-
display: flex;
|
|
549
|
-
height: fit-content;
|
|
550
|
-
justify-content: center;
|
|
551
|
-
overflow: visible;
|
|
552
|
-
padding: 0;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
.bn-mantine .bn-table-cell-handle {
|
|
556
|
-
padding: 0 4px;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
.bn-mantine .bn-table-handle svg {
|
|
560
|
-
margin-inline: -4px;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
.bn-mantine .bn-table-handle-not-draggable {
|
|
564
|
-
cursor: pointer;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
.bn-mantine .bn-table-handle:hover,
|
|
568
|
-
.bn-mantine .bn-table-handle-dragging,
|
|
569
|
-
.bn-mantine .bn-extend-button:hover,
|
|
570
|
-
.bn-mantine .bn-extend-button-editing,
|
|
571
|
-
.bn-mantine .bn-table-cell-handle:hover {
|
|
572
|
-
background-color: var(--bn-colors-hovered-background);
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
.bn-mantine .bn-extend-button-add-remove-columns {
|
|
576
|
-
height: 100%;
|
|
577
|
-
width: 18px;
|
|
578
|
-
margin-left: 4px;
|
|
579
|
-
cursor: col-resize;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
.bn-mantine .bn-extend-button-add-remove-rows {
|
|
583
|
-
height: 18px;
|
|
584
|
-
width: 100%;
|
|
585
|
-
margin-top: 4px;
|
|
586
|
-
cursor: row-resize;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
/* Drag Handle & Table Handle Menu styling */
|
|
590
|
-
.bn-mantine .bn-drag-handle-menu,
|
|
591
|
-
.bn-mantine .bn-table-handle-menu {
|
|
592
|
-
overflow: visible;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
/* Tooltip styling */
|
|
596
|
-
.bn-mantine .bn-tooltip {
|
|
597
|
-
background-color: var(--bn-colors-tooltip-background);
|
|
598
|
-
border: var(--bn-border);
|
|
599
|
-
border-radius: var(--bn-border-radius-medium);
|
|
600
|
-
box-shadow: var(--bn-shadow-medium);
|
|
601
|
-
color: var(--bn-colors-tooltip-text);
|
|
602
|
-
padding: 4px 10px;
|
|
603
|
-
text-align: center;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
/* Additional menu styles */
|
|
607
|
-
.bn-mantine .bn-tick-space {
|
|
608
|
-
padding: 0;
|
|
609
|
-
width: 20px;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
.bn-mt-sub-menu-item
|
|
613
|
-
> .mantine-Menu-itemLabel
|
|
614
|
-
> div:not(.mantine-Menu-dropdown) {
|
|
615
|
-
align-items: center;
|
|
616
|
-
display: flex;
|
|
617
|
-
justify-content: space-between;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
/* Comment styling */
|
|
621
|
-
.bn-mantine .bn-thread {
|
|
622
|
-
background-color: var(--bn-colors-menu-background);
|
|
623
|
-
border: var(--bn-border);
|
|
624
|
-
border-radius: var(--bn-border-radius-medium);
|
|
625
|
-
box-shadow: var(--bn-shadow-medium);
|
|
626
|
-
color: var(--bn-colors-menu-text);
|
|
627
|
-
display: flex;
|
|
628
|
-
flex-direction: column;
|
|
629
|
-
gap: 16px;
|
|
630
|
-
min-width: 350px;
|
|
631
|
-
overflow: visible;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
.bn-mantine .bn-threads-sidebar .bn-thread {
|
|
635
|
-
box-shadow: none;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
.bn-mantine .bn-thread:not(.selected) {
|
|
639
|
-
cursor: pointer;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
.bn-mantine .bn-thread-comments,
|
|
643
|
-
.bn-mantine .bn-thread-composer {
|
|
644
|
-
display: flex;
|
|
645
|
-
flex-direction: column;
|
|
646
|
-
margin: 0;
|
|
647
|
-
padding: 0;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
.bn-mantine .bn-thread-comments {
|
|
651
|
-
gap: 1rem;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
.bn-mantine .bn-thread-comment {
|
|
655
|
-
align-items: flex-start;
|
|
656
|
-
flex-direction: column;
|
|
657
|
-
gap: 0.25rem;
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
.bn-mantine .bn-thread-comment > .mantine-Group-root {
|
|
661
|
-
gap: 12px;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
.bn-mantine .bn-thread-comment p {
|
|
665
|
-
color: var(--bn-colors-menu-text);
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
.bn-mantine .bn-thread .bn-header-text,
|
|
669
|
-
.bn-mantine .bn-thread-comment .bn-resolved-text {
|
|
670
|
-
font-size: 0.8rem;
|
|
671
|
-
font-style: italic;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
.bn-mantine .bn-comment-actions-wrapper {
|
|
675
|
-
width: 100%;
|
|
676
|
-
display: flex;
|
|
677
|
-
justify-content: flex-end;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
/* Comment action toolbar styling */
|
|
681
|
-
.bn-mantine .bn-action-toolbar {
|
|
682
|
-
align-self: flex-end;
|
|
683
|
-
background-color: var(--bn-colors-menu-background);
|
|
684
|
-
border: var(--bn-border);
|
|
685
|
-
border-radius: var(--bn-border-radius-medium);
|
|
686
|
-
gap: 0;
|
|
687
|
-
padding: 2px;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
.bn-action-toolbar .mantine-Button-root,
|
|
691
|
-
.bn-action-toolbar .mantine-ActionIcon-root {
|
|
692
|
-
background-color: var(--bn-colors-menu-background);
|
|
693
|
-
border: none;
|
|
694
|
-
border-radius: var(--bn-border-radius-small);
|
|
695
|
-
color: var(--bn-colors-menu-text);
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
.bn-action-toolbar .mantine-Button-root:hover,
|
|
699
|
-
.bn-action-toolbar .mantine-ActionIcon-root:hover {
|
|
700
|
-
background-color: var(--bn-colors-hovered-background);
|
|
701
|
-
border: none;
|
|
702
|
-
color: var(--bn-colors-hovered-text);
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
.bn-action-toolbar .mantine-Button-root[data-selected],
|
|
706
|
-
.bn-action-toolbar .mantine-ActionIcon-root[data-selected] {
|
|
707
|
-
background-color: var(--bn-colors-selected-background);
|
|
708
|
-
border: none;
|
|
709
|
-
color: var(--bn-colors-selected-text);
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
.bn-action-toolbar .mantine-Button-root[data-disabled],
|
|
713
|
-
.bn-action-toolbar .mantine-ActionIcon-root[data-disabled] {
|
|
714
|
-
background-color: var(--bn-colors-disabled-background);
|
|
715
|
-
border: none;
|
|
716
|
-
color: var(--bn-colors-disabled-text);
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
.bn-mantine .bn-action-toolbar .mantine-Menu-itemLabel {
|
|
720
|
-
font-size: 12px;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
/* Badge styling */
|
|
724
|
-
.bn-mantine .bn-badge-group {
|
|
725
|
-
display: flex;
|
|
726
|
-
gap: 4px;
|
|
727
|
-
justify-content: flex-start;
|
|
728
|
-
width: 100%;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
.bn-mantine .bn-badge {
|
|
732
|
-
flex-grow: 0;
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
.bn-mantine .bn-badge .mantine-Chip-label {
|
|
736
|
-
padding: 0 8px;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
.bn-mantine .bn-badge .mantine-Chip-label:not([data-checked="true"]) {
|
|
740
|
-
background-color: var(--bn-colors-menu-background);
|
|
741
|
-
border: var(--bn-border);
|
|
742
|
-
color: var(--bn-colors-menu-text);
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
.bn-mantine .bn-badge .mantine-Chip-label:hover {
|
|
746
|
-
border: 1px solid var(--mantine-primary-color-filled-hover);
|
|
747
|
-
color: var(--mantine-primary-color-filled-hover);
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
.bn-mantine
|
|
751
|
-
.bn-badge
|
|
752
|
-
.mantine-Chip-label
|
|
753
|
-
> span:not(.mantine-Chip-iconWrapper) {
|
|
754
|
-
display: inline-flex;
|
|
755
|
-
gap: 4px;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
.bn-mantine
|
|
759
|
-
.bn-badge
|
|
760
|
-
.mantine-Chip-label
|
|
761
|
-
> span:not(.mantine-Chip-iconWrapper)
|
|
762
|
-
> span {
|
|
763
|
-
align-items: center;
|
|
764
|
-
display: inline-flex;
|
|
765
|
-
justify-content: center;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
/* Combobox styling */
|
|
769
|
-
.bn-mantine .bn-combobox-input,
|
|
770
|
-
.bn-mantine .bn-combobox-items:not(:empty) {
|
|
771
|
-
background-color: var(--bn-colors-menu-background);
|
|
772
|
-
border: var(--bn-border);
|
|
773
|
-
border-radius: var(--bn-border-radius-medium);
|
|
774
|
-
box-shadow: var(--bn-shadow-medium);
|
|
775
|
-
color: var(--bn-colors-menu-text);
|
|
776
|
-
gap: 4px;
|
|
777
|
-
min-width: 145px;
|
|
778
|
-
padding: 2px;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
.bn-mantine .bn-combobox-input .bn-combobox-icon,
|
|
782
|
-
.bn-mantine .bn-combobox-input .bn-combobox-right-section {
|
|
783
|
-
align-items: center;
|
|
784
|
-
display: flex;
|
|
785
|
-
justify-content: center;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
.bn-mantine .bn-combobox-input .bn-combobox-error {
|
|
789
|
-
color: var(--bn-colors-highlights-red-background);
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
/* We need to get rid of the checked icon - you can set the icon prop to an
|
|
793
|
-
empty element (<></>), but even so Mantine leaves extra space for the icon, so
|
|
794
|
-
we just don't display it in CSS instead. */
|
|
795
|
-
.bn-mantine .bn-badge .mantine-Chip-iconWrapper {
|
|
796
|
-
display: none;
|
|
797
|
-
}
|
|
2
|
+
@import url("./blocknoteStyles.css");
|