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