@blocknote/mantine 0.39.1 → 0.40.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,794 @@
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
+ }
511
+
512
+ .bn-mantine .bn-panel .bn-tab-panel {
513
+ align-items: center;
514
+ display: flex;
515
+ flex-direction: column;
516
+ gap: 8px;
517
+ width: 100%;
518
+ }
519
+
520
+ .bn-panel .mantine-TextInput-root,
521
+ .bn-panel .mantine-FileInput-root {
522
+ width: 100%;
523
+ }
524
+
525
+ .bn-panel .mantine-Button-root {
526
+ background-color: var(--bn-colors-menu-background);
527
+ border: solid var(--bn-colors-border) 1px;
528
+ border-radius: var(--bn-border-radius-small);
529
+ color: var(--bn-colors-menu-text);
530
+ height: 32px;
531
+ width: 60%;
532
+ }
533
+
534
+ .bn-panel .mantine-Button-root:hover {
535
+ background-color: var(--bn-colors-hovered-background);
536
+ }
537
+
538
+ .bn-panel .mantine-Text-root {
539
+ text-align: center;
540
+ }
541
+
542
+ /* Table Handle styling */
543
+ .bn-mantine .bn-table-handle,
544
+ .bn-mantine .bn-extend-button,
545
+ .bn-mantine .bn-table-cell-handle {
546
+ align-items: center;
547
+ background-color: var(--bn-colors-menu-background);
548
+ border: var(--bn-border);
549
+ border-radius: var(--bn-border-radius-small);
550
+ box-shadow: var(--bn-shadow-light);
551
+ color: var(--bn-colors-side-menu);
552
+ cursor: grab;
553
+ display: flex;
554
+ height: fit-content;
555
+ justify-content: center;
556
+ overflow: visible;
557
+ padding: 0;
558
+ }
559
+
560
+ .bn-mantine .bn-table-cell-handle {
561
+ padding: 0 4px;
562
+ }
563
+
564
+ .bn-mantine .bn-table-handle svg {
565
+ margin-inline: -4px;
566
+ }
567
+
568
+ .bn-mantine .bn-table-handle-not-draggable {
569
+ cursor: pointer;
570
+ }
571
+
572
+ .bn-mantine .bn-table-handle:hover,
573
+ .bn-mantine .bn-table-handle-dragging,
574
+ .bn-mantine .bn-extend-button:hover,
575
+ .bn-mantine .bn-extend-button-editing,
576
+ .bn-mantine .bn-table-cell-handle:hover {
577
+ background-color: var(--bn-colors-hovered-background);
578
+ }
579
+
580
+ .bn-mantine .bn-extend-button-add-remove-columns {
581
+ height: 100%;
582
+ width: 18px;
583
+ margin-left: 4px;
584
+ cursor: col-resize;
585
+ }
586
+
587
+ .bn-mantine .bn-extend-button-add-remove-rows {
588
+ height: 18px;
589
+ width: 100%;
590
+ margin-top: 4px;
591
+ cursor: row-resize;
592
+ }
593
+
594
+ /* Drag Handle & Table Handle Menu styling */
595
+ .bn-mantine .bn-drag-handle-menu,
596
+ .bn-mantine .bn-table-handle-menu {
597
+ overflow: visible;
598
+ }
599
+
600
+ /* Tooltip styling */
601
+ .bn-mantine .bn-tooltip {
602
+ background-color: var(--bn-colors-tooltip-background);
603
+ border: var(--bn-border);
604
+ border-radius: var(--bn-border-radius-medium);
605
+ box-shadow: var(--bn-shadow-medium);
606
+ color: var(--bn-colors-tooltip-text);
607
+ padding: 4px 10px;
608
+ text-align: center;
609
+ }
610
+
611
+ /* Additional menu styles */
612
+ .bn-mantine .bn-tick-space {
613
+ padding: 0;
614
+ width: 20px;
615
+ }
616
+
617
+ /* Comment styling */
618
+ .bn-mantine .bn-thread {
619
+ background-color: var(--bn-colors-menu-background);
620
+ border: var(--bn-border);
621
+ border-radius: var(--bn-border-radius-medium);
622
+ box-shadow: var(--bn-shadow-medium);
623
+ color: var(--bn-colors-menu-text);
624
+ display: flex;
625
+ flex-direction: column;
626
+ gap: 16px;
627
+ min-width: 350px;
628
+ overflow: visible;
629
+ }
630
+
631
+ .bn-mantine .bn-threads-sidebar .bn-thread {
632
+ box-shadow: none;
633
+ }
634
+
635
+ .bn-mantine .bn-thread:not(.selected) {
636
+ cursor: pointer;
637
+ }
638
+
639
+ .bn-mantine .bn-thread-comments,
640
+ .bn-mantine .bn-thread-composer {
641
+ display: flex;
642
+ flex-direction: column;
643
+ margin: 0;
644
+ padding: 0;
645
+ }
646
+
647
+ .bn-mantine .bn-thread-comments {
648
+ gap: 1rem;
649
+ }
650
+
651
+ .bn-mantine .bn-thread-comment {
652
+ align-items: flex-start;
653
+ flex-direction: column;
654
+ gap: 0.25rem;
655
+ }
656
+
657
+ .bn-mantine .bn-thread-comment > .mantine-Group-root {
658
+ gap: 12px;
659
+ }
660
+
661
+ .bn-mantine .bn-thread-comment p {
662
+ color: var(--bn-colors-menu-text);
663
+ }
664
+
665
+ .bn-mantine .bn-thread .bn-header-text,
666
+ .bn-mantine .bn-thread-comment .bn-resolved-text {
667
+ font-size: 0.8rem;
668
+ font-style: italic;
669
+ }
670
+
671
+ .bn-mantine .bn-comment-actions-wrapper {
672
+ width: 100%;
673
+ display: flex;
674
+ justify-content: flex-end;
675
+ }
676
+
677
+ /* Comment action toolbar styling */
678
+ .bn-mantine .bn-action-toolbar {
679
+ align-self: flex-end;
680
+ background-color: var(--bn-colors-menu-background);
681
+ border: var(--bn-border);
682
+ border-radius: var(--bn-border-radius-medium);
683
+ gap: 0;
684
+ padding: 2px;
685
+ }
686
+
687
+ .bn-action-toolbar .mantine-Button-root,
688
+ .bn-action-toolbar .mantine-ActionIcon-root {
689
+ background-color: var(--bn-colors-menu-background);
690
+ border: none;
691
+ border-radius: var(--bn-border-radius-small);
692
+ color: var(--bn-colors-menu-text);
693
+ }
694
+
695
+ .bn-action-toolbar .mantine-Button-root:hover,
696
+ .bn-action-toolbar .mantine-ActionIcon-root:hover {
697
+ background-color: var(--bn-colors-hovered-background);
698
+ border: none;
699
+ color: var(--bn-colors-hovered-text);
700
+ }
701
+
702
+ .bn-action-toolbar .mantine-Button-root[data-selected],
703
+ .bn-action-toolbar .mantine-ActionIcon-root[data-selected] {
704
+ background-color: var(--bn-colors-selected-background);
705
+ border: none;
706
+ color: var(--bn-colors-selected-text);
707
+ }
708
+
709
+ .bn-action-toolbar .mantine-Button-root[data-disabled],
710
+ .bn-action-toolbar .mantine-ActionIcon-root[data-disabled] {
711
+ background-color: var(--bn-colors-disabled-background);
712
+ border: none;
713
+ color: var(--bn-colors-disabled-text);
714
+ }
715
+
716
+ .bn-mantine .bn-action-toolbar .mantine-Menu-itemLabel {
717
+ font-size: 12px;
718
+ }
719
+
720
+ /* Badge styling */
721
+ .bn-mantine .bn-badge-group {
722
+ display: flex;
723
+ gap: 4px;
724
+ justify-content: flex-start;
725
+ width: 100%;
726
+ }
727
+
728
+ .bn-mantine .bn-badge {
729
+ flex-grow: 0;
730
+ }
731
+
732
+ .bn-mantine .bn-badge .mantine-Chip-label {
733
+ padding: 0 8px;
734
+ }
735
+
736
+ .bn-mantine .bn-badge .mantine-Chip-label:not([data-checked="true"]) {
737
+ background-color: var(--bn-colors-menu-background);
738
+ border: var(--bn-border);
739
+ color: var(--bn-colors-menu-text);
740
+ }
741
+
742
+ .bn-mantine .bn-badge .mantine-Chip-label:hover {
743
+ border: 1px solid var(--mantine-primary-color-filled-hover);
744
+ color: var(--mantine-primary-color-filled-hover);
745
+ }
746
+
747
+ .bn-mantine
748
+ .bn-badge
749
+ .mantine-Chip-label
750
+ > span:not(.mantine-Chip-iconWrapper) {
751
+ display: inline-flex;
752
+ gap: 4px;
753
+ }
754
+
755
+ .bn-mantine
756
+ .bn-badge
757
+ .mantine-Chip-label
758
+ > span:not(.mantine-Chip-iconWrapper)
759
+ > span {
760
+ align-items: center;
761
+ display: inline-flex;
762
+ justify-content: center;
763
+ }
764
+
765
+ /* Combobox styling */
766
+ .bn-mantine .bn-combobox-input,
767
+ .bn-mantine .bn-combobox-items:not(:empty) {
768
+ background-color: var(--bn-colors-menu-background);
769
+ border: var(--bn-border);
770
+ border-radius: var(--bn-border-radius-medium);
771
+ box-shadow: var(--bn-shadow-medium);
772
+ color: var(--bn-colors-menu-text);
773
+ gap: 4px;
774
+ min-width: 145px;
775
+ padding: 2px;
776
+ }
777
+
778
+ .bn-mantine .bn-combobox-input .bn-combobox-icon,
779
+ .bn-mantine .bn-combobox-input .bn-combobox-right-section {
780
+ align-items: center;
781
+ display: flex;
782
+ justify-content: center;
783
+ }
784
+
785
+ .bn-mantine .bn-combobox-input .bn-combobox-error {
786
+ color: var(--bn-colors-highlights-red-background);
787
+ }
788
+
789
+ /* We need to get rid of the checked icon - you can set the icon prop to an
790
+ empty element (<></>), but even so Mantine leaves extra space for the icon, so
791
+ we just don't display it in CSS instead. */
792
+ .bn-mantine .bn-badge .mantine-Chip-iconWrapper {
793
+ display: none;
794
+ }