-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
3119 lines (2684 loc) · 66.9 KB
/
Copy pathstyles.css
File metadata and controls
3119 lines (2684 loc) · 66.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Extraboard — board view styles. Uses Obsidian theme variables so light and
dark themes both work. All classes are prefixed `eb-`. */
.eb-root {
position: relative;
height: 100%;
overflow: hidden;
}
.eb-empty {
padding: 2em;
color: var(--text-muted);
text-align: center;
}
/* --- the filter builder (filters-and-sorting.md §4) ----------------------- */
.eb-filter-modal {
--eb-filter-indent: 16px;
}
.eb-filter-modal .modal-content {
max-height: 70vh;
overflow-y: auto;
}
.eb-filter-tabs {
display: flex;
align-items: center;
gap: var(--size-4-2, 8px);
margin-bottom: var(--size-4-3, 12px);
border-bottom: 1px solid var(--background-modifier-border);
}
.eb-filter-tabs > button {
display: inline-flex;
align-items: center;
gap: 4px;
background: none;
border: none;
border-bottom: 2px solid transparent;
border-radius: 0;
box-shadow: none;
color: var(--text-muted);
cursor: pointer;
}
.eb-filter-tabs > button.is-active {
color: var(--text-normal);
border-bottom-color: var(--interactive-accent);
}
.eb-filter-count {
padding: 0 5px;
background: var(--background-modifier-border);
border-radius: 8px;
font-size: var(--font-ui-smaller, 0.8em);
}
/* The top-level operator belongs to the whole tree, so it sits in the corner
above it rather than in a row (§4.1). */
.eb-filter-root-op {
display: inline-flex;
align-items: center;
gap: var(--size-4-2, 8px);
margin-inline-start: auto;
padding-bottom: 4px;
color: var(--text-muted);
font-size: var(--font-ui-smaller, 0.8em);
}
.eb-filter-group {
display: flex;
flex-direction: column;
gap: var(--size-4-1, 4px);
}
.eb-filter-group:not(.is-root) {
padding: var(--size-4-2, 8px);
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s, 4px);
}
.eb-filter-group-head {
display: flex;
align-items: center;
gap: var(--size-4-2, 8px);
}
.eb-filter-children {
display: flex;
flex-direction: column;
gap: var(--size-4-1, 4px);
min-height: 24px;
padding-inline-start: var(--eb-filter-indent);
}
.eb-filter-condition,
.eb-sort-rule {
display: flex;
align-items: center;
gap: var(--size-4-1, 4px);
flex-wrap: wrap;
}
.eb-filter-condition select,
.eb-filter-condition input,
.eb-sort-rule select {
min-width: 0;
font-size: var(--font-ui-smaller, 0.9em);
}
.eb-filter-field {
flex: 1 1 120px;
}
.eb-filter-op {
flex: 0 1 auto;
}
.eb-filter-value {
flex: 1 1 120px;
}
.eb-filter-and {
color: var(--text-muted);
font-size: var(--font-ui-smaller, 0.8em);
}
/* The one grab zone of a row, so its fields keep their own gestures. */
.eb-filter-grip {
display: inline-flex;
align-items: center;
flex: 0 0 auto;
color: var(--text-faint);
cursor: grab;
}
.eb-filter-grip .svg-icon {
width: 14px;
height: 14px;
}
.eb-filter-grip:active {
cursor: grabbing;
}
.eb-filter-empty {
padding: var(--size-4-1, 4px) 0;
color: var(--text-muted);
font-size: var(--font-ui-smaller, 0.8em);
}
.eb-filter-add {
display: flex;
gap: var(--size-4-2, 8px);
padding-top: var(--size-4-1, 4px);
}
.eb-filter-add button {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: var(--font-ui-smaller, 0.8em);
box-shadow: none;
}
.eb-sort-list {
display: flex;
flex-direction: column;
gap: var(--size-4-1, 4px);
}
.eb-sort-dir {
display: inline-flex;
gap: 2px;
}
.eb-sort-dir button {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 6px;
font-size: var(--font-ui-smaller, 0.8em);
box-shadow: none;
}
.eb-sort-dir button.is-active {
background: var(--interactive-accent);
color: var(--text-on-accent);
}
/* A phone has no room for a row of dropdowns side by side. */
.is-phone .eb-filter-condition select,
.is-phone .eb-filter-condition input,
.is-phone .eb-sort-rule select {
flex: 1 1 100%;
}
/* --- the date-property picker (calendar-view.md §6.2) --------------------- */
.eb-date-property-list {
display: flex;
flex-direction: column;
gap: var(--size-4-1, 4px);
margin-top: var(--size-4-3, 12px);
}
.eb-date-property-choice {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--size-4-2, 8px);
width: 100%;
text-align: left;
cursor: pointer;
}
.eb-date-property-value {
color: var(--text-muted);
font-size: var(--font-ui-smaller, 0.8em);
white-space: nowrap;
}
.eb-date-property-choice.mod-cta .eb-date-property-value {
color: inherit;
}
/* --- quick view settings (views.md §5) ------------------------------------ */
/* A panel, not a menu: every row is a toggle, and a menu would close on the
first one. It is positioned inside the board root from the header button's
measured rectangle, so an offset workspace pane cannot shift it downward. */
.eb-view-options {
position: absolute;
z-index: var(--layer-menu, 60);
width: 240px;
max-width: calc(100% - 16px);
max-height: 70vh;
padding: var(--size-4-2, 8px);
overflow-y: auto;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m, 8px);
box-shadow: var(--shadow-s);
}
.eb-view-options-head {
padding: var(--size-4-2, 8px) var(--size-4-2, 8px) var(--size-4-1, 4px);
color: var(--text-muted);
font-size: var(--font-ui-smaller, 0.8em);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.eb-view-options-head:first-child {
padding-top: var(--size-4-1, 4px);
}
.eb-view-options-row {
display: flex;
align-items: center;
gap: var(--size-4-2, 8px);
padding: var(--size-4-1, 4px) var(--size-4-2, 8px);
border-radius: var(--radius-s, 4px);
cursor: pointer;
}
.eb-view-options-row:hover {
background: var(--background-modifier-hover);
}
.eb-view-options-row.is-disabled {
opacity: 0.5;
cursor: default;
}
.eb-view-options-row span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.eb-view-options-choice {
display: flex;
gap: var(--size-4-1, 4px);
padding: var(--size-4-1, 4px) var(--size-4-2, 8px);
}
.eb-view-options-choice button {
flex: 1 1 0;
padding: 2px 6px;
font-size: var(--font-ui-smaller, 0.8em);
box-shadow: none;
}
.eb-view-options-choice button.is-active {
background: var(--interactive-accent);
color: var(--text-on-accent);
}
.eb-view-options-radio-group {
display: flex;
flex-direction: column;
}
.eb-view-options-radio span {
white-space: normal;
}
/* On a phone the header button it would hang from is in the ⋯ menu, so the
panel rises from the bottom instead — the shape a touch UI expects
(mobile.md §4). */
body.is-mobile .eb-view-options {
position: fixed;
top: auto !important;
right: 0 !important;
bottom: 0;
left: 0;
width: auto;
max-width: none;
max-height: 60vh;
border-radius: var(--radius-l, 12px) var(--radius-l, 12px) 0 0;
padding-bottom: calc(var(--size-4-4, 16px) + env(safe-area-inset-bottom, 0px));
}
/* Horizontal, scrollable row of stacks. */
.eb-board {
display: flex;
gap: var(--size-4-3, 12px);
align-items: flex-start;
height: 100%;
padding: var(--size-4-3, 12px);
overflow-x: auto;
overflow-y: hidden;
}
/* Keep the desktop scrollbar below the stack cards rather than against them. */
body:not(.is-mobile) .eb-board {
padding-bottom: calc(var(--size-4-3, 12px) + 8px);
}
.eb-stack {
display: flex;
flex-direction: column;
flex: 0 0 auto;
width: 272px;
max-width: 85vw;
max-height: 100%;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m, 8px);
}
/* Layout invariant: nothing inside a stack may widen it (mobile.md §2).
A flex item's automatic minimum size is its content's intrinsic minimum, so
any descendant with one — the embedded CodeMirror editor above all, under
mobile theme metrics — pushes the fixed-width stack open from the inside.
Every flex/grid link from the stack down to an editor therefore carries
`min-width: 0`, which is what turns "grow the box" into "shrink the content".
A new nested component must be added here, not patched around. */
.eb-stack,
.eb-stack-body,
.eb-list,
.eb-section,
.eb-section-body,
.eb-list-row,
.eb-item,
.eb-card,
.eb-card-head,
.eb-card-title,
.eb-card-props,
.eb-card-tags,
.eb-card-foot,
.eb-card-editor,
.eb-card-editor-props,
.eb-card-field,
.eb-badge-row,
.eb-checklist-row,
.eb-divider-row {
min-width: 0;
}
/* ...and a mounted editor is additionally bounded, because CodeMirror sizes
its scroller from the content rather than from the box it was given. */
.eb-card-editor,
.eb-card-editor .eb-card-field,
.eb-card-editor .cm-editor,
.eb-card-editor .cm-scroller,
.eb-card-editor .cm-content,
.eb-editor {
max-width: 100%;
}
.eb-stack-header {
display: flex;
align-items: center;
gap: 4px;
padding: 6px 8px;
font-weight: var(--font-semibold, 600);
border-bottom: 1px solid var(--background-modifier-border);
}
/* The stack's drag zone. */
.eb-stack-grip {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 16px;
height: 24px;
margin-left: -2px;
color: var(--text-faint);
border-radius: var(--radius-s, 4px);
cursor: grab;
}
.eb-stack-grip:hover {
color: var(--text-muted);
background: var(--background-modifier-hover);
}
.eb-stack-grip:active {
cursor: grabbing;
}
.eb-stack-grip .svg-icon {
width: 14px;
height: 14px;
}
/* A stack name wraps to at most two lines, then ellipses (§2). One line cut a
name short far too eagerly at 272px; letting it grow without a bound would
let a pasted title push the cards off the screen. `-webkit-line-clamp` draws
the ellipsis itself, so `text-overflow` has no part here. */
.eb-stack-name {
flex: 1 1 auto;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
overflow: hidden;
/* A single unbroken word is the case a name is likeliest to hit the limit
with, and it must break rather than widen the fixed-width stack. */
overflow-wrap: anywhere;
cursor: text;
}
/* Collapsed stacks shrink to a vertical spine. */
.eb-stack.is-collapsed {
position: relative;
width: auto;
min-width: 0;
transition:
transform 140ms ease-out,
box-shadow 140ms ease-out;
}
.eb-stack.is-collapsed .eb-stack-header {
flex-direction: column;
align-items: center;
max-height: 100%;
border-bottom: none;
}
.eb-stack.is-collapsed .eb-stack-grip {
margin-left: 0;
width: 24px;
height: 16px;
}
/* A collapsed stack is a vertical spine: its name runs down one line and is cut
by height, so the two-line clamp above is undone rather than rotated. */
.eb-stack.is-collapsed .eb-stack-name {
display: block;
-webkit-line-clamp: none;
line-clamp: none;
overflow-wrap: normal;
white-space: nowrap;
text-overflow: ellipsis;
writing-mode: vertical-rl;
max-height: 60vh;
}
/* Sized like a pill and centred as a flex box: the default line box would let
digits sit slightly above the middle of the 24px icon buttons beside it. */
.eb-stack-count {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
box-sizing: border-box;
min-width: 20px;
height: 20px;
padding: 0 6px;
font-size: var(--font-smaller, 0.8em);
font-weight: var(--font-normal, 400);
line-height: 1;
color: var(--text-muted);
background: var(--background-modifier-hover);
border-radius: var(--radius-s, 4px);
}
/* "Completes cards": the only sign on the board that a stack rewrites what
lands in it (stack-completion-and-divider-colors.md §3.3). */
.eb-stack-completes {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
color: var(--text-muted);
}
/* `Icon` renders its own, unclassed `span` here — an inline box whose height
follows the font's line-height, not the 16px icon inside it. Centering
*that* box still leaves the icon riding its baseline near the top, so the
inner span needs the same flex treatment as the outer one. */
.eb-stack-completes > span {
display: inline-flex;
align-items: center;
}
.eb-stack-completes .svg-icon {
width: 16px;
height: 16px;
}
.eb-chevron {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
color: var(--text-muted);
transition: transform 120ms ease;
}
.eb-chevron .svg-icon {
width: 16px;
height: 16px;
}
.eb-chevron.is-collapsed {
transform: rotate(-90deg);
}
/* The add-card affordance sits above the cards; new cards land at the top. */
.eb-stack-compose {
padding: 8px 10px 0;
}
.eb-stack-body {
display: flex;
flex-direction: column;
gap: 8px;
padding: 8px 10px 10px;
/* Keep an empty stack a usable drop target. */
min-height: 24px;
overflow-y: auto;
}
/* A collapsed stack keeps an empty Sortable list mounted as a drop layer.
It covers the whole spine only while a card is in flight, so the stack's
regular click targets remain untouched at every other time. */
.eb-stack.is-collapsed .eb-stack-body {
position: absolute;
inset: 0;
z-index: 2;
min-height: 0;
padding: 0;
overflow: hidden;
pointer-events: none;
border-radius: inherit;
transition: transform 140ms ease-out;
}
body.eb-dragging-card .eb-stack.is-collapsed .eb-stack-body {
pointer-events: auto;
}
/* Sortable inserts the original card into the destination while it hovers.
Lift the whole visible stack, then counter-translate its full-spine drop
layer with the same timing so the hit area stays still at the edges. */
body.eb-dragging-card .eb-stack.is-collapsed:has(.eb-stack-body > .eb-card) {
transform: translateY(-4px);
box-shadow: var(--shadow-l, 0 8px 24px rgba(0, 0, 0, 0.18));
}
body.eb-dragging-card
.eb-stack.is-collapsed:has(.eb-stack-body > .eb-card)
.eb-stack-body {
transform: translateY(4px);
}
.eb-stack.is-collapsed .eb-stack-body > .eb-item {
opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
.eb-stack.is-collapsed,
.eb-stack.is-collapsed .eb-stack-body {
transition: none;
}
body.eb-dragging-card .eb-stack.is-collapsed:has(.eb-stack-body > .eb-card),
body.eb-dragging-card
.eb-stack.is-collapsed:has(.eb-stack-body > .eb-card)
.eb-stack-body {
transform: none;
}
}
/* Cards */
.eb-card {
position: relative;
/* Own stacking context, so the color tint stays behind the card content. */
isolation: isolate;
background: var(--background-primary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s, 6px);
padding: 8px 10px;
box-shadow: var(--shadow-s, 0 1px 2px rgba(0, 0, 0, 0.08));
cursor: pointer;
}
/* The board's single `color` property: a full-strength left stripe... */
.eb-card.is-colored {
border-left: 4px solid var(--eb-card-color);
padding-left: 7px;
}
/* ...plus, with `fillCardWithColor`, a tint composited over the theme
background so card text keeps its contrast in light and dark themes. */
.eb-card.is-filled::before {
content: '';
position: absolute;
inset: 0;
z-index: -1;
background: var(--eb-card-color);
opacity: 0.14;
border-radius: inherit;
pointer-events: none;
}
.eb-card-head {
display: flex;
align-items: flex-start;
gap: 4px;
}
/* The card menu sits in the top-right corner (kanban-view.md §5.3). */
.eb-card-menu {
width: 20px;
height: 20px;
margin: -1px -4px 0 0;
}
.eb-card-menu .svg-icon {
width: 14px;
height: 14px;
}
/* "Complete card" (kanban-view.md §5.3), the green counterpart to the red
`is-warning` Obsidian gives destructive items. Same shape as the theme's own
rule — title and icon both — so it reads as one of the menu's items and not
as decoration. */
.menu-item.eb-menu-success .menu-item-title,
.menu-item.eb-menu-success .menu-item-icon {
color: var(--text-success, var(--color-green));
}
/* Flush with the card's padding: nothing indents the checkbox. */
.eb-card-check {
flex: 0 0 auto;
margin: 3px 2px 0 0;
margin-inline-start: 0;
cursor: pointer;
}
.eb-card.is-done .eb-card-title {
color: var(--text-muted);
text-decoration: line-through;
}
.eb-card-title {
flex: 1 1 auto;
color: var(--text-normal);
line-height: 1.35;
word-break: break-word;
}
.eb-placeholder {
color: var(--text-faint);
font-style: italic;
}
/* The title's content link is a real internal link; the theme styles it, the
board only makes sure the card's own cursor does not override it (§1.1). */
.eb-card-title .internal-link {
cursor: pointer;
}
/* A title is one line of *inline* Markdown. The renderer can still emit block
markup for a hand-written title, so the card flattens it: no block spacing,
no heading scale, and nothing that can outgrow the tile. */
.eb-card-title p,
.eb-card-title h1,
.eb-card-title h2,
.eb-card-title h3,
.eb-card-title h4,
.eb-card-title h5,
.eb-card-title h6 {
display: inline;
margin: 0;
padding: 0;
font-size: inherit;
font-weight: inherit;
line-height: inherit;
border: none;
}
.eb-card-title img,
.eb-card-title .internal-embed {
max-width: 100%;
height: auto;
}
.eb-card-title pre,
.eb-card-title blockquote {
margin: 0;
padding: 0;
background: none;
border: none;
}
.eb-card-props,
.eb-card-tags {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
}
.eb-card-props {
margin-top: 6px;
}
/* Tags on the left, the checklist indicator pinned bottom-right (§5.5). */
.eb-card-foot {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 6px;
margin-top: 6px;
}
.eb-card-foot .eb-card-tags {
flex: 1 1 auto;
min-width: 0;
}
.eb-progress {
display: inline-flex;
align-items: center;
flex: 0 0 auto;
padding: 2px 4px;
background: none;
border: none;
border-radius: 10px;
box-shadow: none;
cursor: pointer;
}
.eb-chip {
display: inline-flex;
align-items: center;
padding: 1px 7px;
font-size: var(--font-smaller, 0.8em);
line-height: 1.5;
color: var(--text-muted);
border-radius: 10px;
white-space: nowrap;
}
.eb-progress:hover .eb-chip {
color: var(--text-normal);
background: var(--background-modifier-hover);
}
.eb-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 1px 7px;
font-size: var(--font-smaller, 0.8em);
line-height: 1.5;
color: var(--text-normal);
background: var(--background-modifier-hover);
border-radius: 10px;
white-space: nowrap;
}
.eb-badge-muted {
color: var(--text-muted);
}
/* A badge's text, so a long value ellipsizes instead of overflowing its
container: `text-overflow` needs the text's own box, not the flex chip. */
.eb-badge-text {
overflow: hidden;
min-width: 0;
white-space: nowrap;
text-overflow: ellipsis;
}
.eb-badge-icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
line-height: 0;
color: var(--text-faint);
}
.eb-badge-icon svg {
display: block;
width: 12px;
height: 12px;
}
/* Every icon that shares a button with a label. The host is a plain inline
span, so without this it carries the line box's leading and the glyph sits
above the centreline of whatever flex row it is in. Keep the flex on the
host — not on the SVG itself, which stops Obsidian's icon painting on
mobile. */
.eb-button-icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
line-height: 0;
}
.eb-button-icon .svg-icon {
display: block;
}
/* The recurrence chip is the widest badge there is (a whole sentence), so it is
the one that has to yield to the card's width. */
.eb-badge-recurrence {
max-width: 100%;
min-width: 0;
}
.eb-tag {
display: inline-flex;
padding: 1px 7px;
font-size: var(--font-smaller, 0.8em);
color: var(--text-accent);
background: var(--background-modifier-hover);
border-radius: 10px;
white-space: nowrap;
text-decoration: none;
cursor: pointer;
}
.eb-tag:hover,
.eb-tag:focus-visible {
text-decoration: none;
filter: brightness(1.1);
box-shadow: 0 0 0 1px var(--background-modifier-border-hover, var(--background-modifier-border));
}
.eb-swatch {
display: inline-block;
width: 14px;
height: 14px;
border-radius: 50%;
border: 1px solid var(--background-modifier-border);
vertical-align: middle;
}
/* Progress ring */
.eb-ring {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
}
.eb-ring-track {
stroke: var(--background-modifier-border);
}
.eb-ring-fill {
stroke: var(--interactive-accent);
}
.eb-ring-label {
position: absolute;
font-size: 8px;
color: var(--text-muted);
}
/* Dividers */
.eb-divider-row {
display: flex;
align-items: center;
gap: 4px;
margin: 2px 0;
cursor: grab;
}
.eb-divider-label {
flex: 0 0 auto;
font-size: var(--font-smaller, 0.8em);
font-weight: var(--font-semibold, 600);
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.03em;
cursor: text;
}
.eb-divider-line {
flex: 1 1 auto;
height: 0;
border-top: 1px dashed var(--background-modifier-border);
}
/* A colored divider wears its own color, so its group reads as a band rather
than as a coincidence of card stripes (§4.2). */
.eb-divider-row.is-colored .eb-divider-label {
color: var(--eb-divider-color);
}
.eb-divider-row.is-colored .eb-divider-line {
border-top-color: var(--eb-divider-color);
opacity: 0.5;
}
/* Editing */
.eb-editor {
width: 100%;
/* Autosized from the content by InlineEditor. */
height: var(--eb-editor-height, auto);
min-height: 2em;
padding: 6px 8px;
font-family: inherit;
font-size: inherit;
line-height: 1.35;
color: var(--text-normal);
background: var(--background-primary);
border: 1px solid var(--background-modifier-border-focus, var(--interactive-accent));
border-radius: var(--radius-s, 6px);
resize: none;
overflow: hidden;
}
.eb-card.is-editing {
padding: 0;
border: none;
box-shadow: none;
background: none;
}
/* The inline card editor: a Markdown field plus its property badges (§6.6). */
.eb-card-editor {
display: flex;
flex-direction: column;
gap: 6px;
padding: 6px;
background: var(--background-primary);
border: 1px solid var(--background-modifier-border-focus, var(--interactive-accent));
border-radius: var(--radius-s, 6px);
cursor: auto;
}
/* Obsidian's embedded editor brings its own chrome; the card only bounds it. */
.eb-card-field {
min-height: 1.6em;
}
.eb-card-editor .eb-card-field .cm-editor {
background: none;
}
.eb-card-editor .eb-card-field .cm-scroller {
padding: 0;
overflow-x: hidden;
}
.eb-card-editor .eb-card-field .cm-line {
padding-inline: 2px;
}
.eb-card-editor .eb-editor {
border: none;
padding: 2px;
}
.eb-card-editor-props {
display: flex;