Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
1790 lines (1553 loc) · 51.3 KB
/
Copy pathstyles.css
File metadata and controls
1790 lines (1553 loc) · 51.3 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
/* Task Wheel — all colour comes from the theme's own variables, so the wheel
follows light and dark without a second palette of its own (kaderdocument
§3.5). The per-node colour arrives from the layout as `--tw-colour`; this
file decides how that colour is used, never which colour it is. */
.task-wheel-view {
display: flex;
flex-direction: column;
gap: var(--size-4-3);
padding: var(--size-4-3);
overflow-y: auto;
/* A phone puts its own bar over the bottom of the pane, and the last line
here — the key and how to work the wheel — sat behind it. Obsidian
publishes the room it needs; on desktop the variable is zero and this
costs nothing. */
padding-bottom: calc(
var(--size-4-3) + var(--safe-area-inset-bottom, 0px) + var(--tw-bottom-bar, 0px)
);
}
/* Obsidian's own mobile navigation bar sits inside the pane, so leave room for
it on top of the safe area — but never more room than a bar can be.
Android reports the keyboard as a bottom inset, and the pane has *already*
shrunk by that much. Measured on the owner's phone (1 sep 2026), the moment
the rename box took focus:
pane 89+803 · pad-bottom 32px · safe-area 14.86px ← no keyboard
pane 89+424 · pad-bottom 378.7px · safe-area 378.67px ← keyboard up
The pane lost 379px to the keyboard and then held back another 379 inside
it, which left about forty-five pixels for the wheel and put the rest of the
band on screen as empty space. The keyboard was counted twice.
So the reservation is capped. Four and a half ems covers Obsidian's own bar
plus any gesture bar underneath it; an inset larger than that is not a bar,
it is a keyboard, and the pane has dealt with it already. Note the
specificity: the measurement says something with two class selectors is
setting this padding on mobile, so a rule of ours with one would never have
been asked. */
.is-mobile .task-wheel-view {
--tw-bottom-bar: 3em;
padding-bottom: min(
calc(
var(--size-4-3) + var(--safe-area-inset-bottom, 0px) +
var(--tw-bottom-bar, 0px)
),
4.5em
);
}
/* And while you are typing, none of it.
The cap above left a band of its own — four and a half ems of room held back
for a bar that is not on screen, because the keyboard is standing where it
would be (eigenaar, 2 sep 2026: *"beter maar nog niet echt weg"*). The
reservation exists so Obsidian's bottom bar does not cover the last line;
with a text field in focus there is no bottom bar to duck. */
.is-mobile .task-wheel-view.is-typing {
padding-bottom: var(--size-4-3);
}
/* Nothing in this column may be squeezed. A flex item shrinks below its own
content by default, and in a pane too short for everything that puts the
card's text on top of the wheel — which is exactly what happened on the
first Android test. */
.task-wheel-view > * {
flex: 0 0 auto;
}
/* The wheel takes whatever the others leave, and the card floats inside it. */
.task-wheel-stage {
position: relative;
flex: 1 1 auto;
min-height: 14em;
}
/* Text for a screen reader and for nothing else.
Not `display: none` and not `visibility: hidden` — both take the element out
of the accessibility tree as well, which would throw away the very thing
this is for. A one-pixel box that clips what does not fit is the standard way
to be read but not seen. It exists because the wheel's description used to be
an `aria-label`, and Obsidian renders those as hover tooltips (BC_E3_S89).
The usual recipe adds `clip-path: inset(50%)` as a second lock, and that is
what stood here until Obsidian's plugin linter pointed out that `clip-path`
is only partly supported at the app version it checks against (1 sep 2026).
It is not needed: one pixel, `overflow: hidden` and text that may not wrap
already leave nothing to see. The deprecated `clip` is not worth reaching for
either — it would trade a lint warning for a property on its way out. */
.task-wheel-sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
white-space: nowrap;
border: 0;
}
.task-wheel-canvas {
position: absolute;
inset: 0;
}
/* ------------------------------------------------------------------ */
/* the filter panel */
/* ------------------------------------------------------------------ */
/* Top left of the wheel, out of the reading wedge's way, and closed until
asked for. Only the panel itself takes the pointer; the rest of that corner
still turns the wheel. */
/*
* The top-left corner of the wheel: the filter panel, and under it the way one
* step wider. A column, so the button moves down when the panel opens instead
* of being covered by it (BC_E3_S37, aanvulling 22 aug 2026).
*/
.task-wheel-corner {
position: absolute;
top: 0;
left: 0;
z-index: 1;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--size-2-2);
max-width: min(80%, 17em);
pointer-events: none;
}
.task-wheel-controls {
max-width: 100%;
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
background: var(--background-secondary);
pointer-events: auto;
}
/* What this wheel is about, in the pane itself.
Obsidian's own title bar says it too, but only sometimes: it asks
`getDisplayText()` on its own schedule and does not ask again, so a wheel
opened over a note kept "Task wheel" over it. This line is ours, so it
cannot go stale — and it is the tap that opens the note (BC_E3_S25). It sits
opposite the filter, which owns the other top corner. */
.task-wheel-scope {
position: absolute;
top: 0;
right: 0;
z-index: 1;
display: flex;
align-items: center;
gap: var(--size-2-2);
max-width: min(55%, 14em);
padding: var(--size-2-2) var(--size-2-3);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
box-shadow: none;
background: var(--background-secondary);
color: var(--text-muted);
font-size: var(--font-ui-smaller);
cursor: pointer;
pointer-events: auto;
}
.task-wheel-scope:hover {
color: var(--text-normal);
}
.task-wheel-scope-icon {
display: inline-flex;
flex: 0 0 auto;
}
.task-wheel-scope-icon .svg-icon {
width: 1em;
height: 1em;
}
/* A long note name gives way rather than pushing the box across the wheel. */
.task-wheel-scope-name {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.task-wheel-controls-head {
display: flex;
align-items: center;
gap: var(--size-2-2);
width: 100%;
padding: var(--size-2-2) var(--size-2-3);
border: none;
box-shadow: none;
background: transparent;
color: var(--text-muted);
font-size: var(--font-ui-smaller);
cursor: pointer;
}
.task-wheel-controls.is-open .task-wheel-controls-head {
color: var(--text-normal);
border-bottom: 1px solid var(--background-modifier-border);
border-radius: 0;
}
.task-wheel-controls-icon {
display: inline-flex;
}
.task-wheel-controls-icon .svg-icon {
width: 1em;
height: 1em;
}
/* What the closed panel still has to say: a filter is running, and this much
is being kept out of the round. */
.task-wheel-controls-badge {
margin-left: auto;
padding: 0 var(--size-2-2);
border-radius: var(--radius-s);
background: color-mix(in oklab, var(--text-accent) 18%, transparent);
color: var(--text-accent);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
/* What this wheel is about, when a blikveld — not the filter — is what makes it
narrow. Muted: it reports, it does not act (BC_E3_S149). */
.task-wheel-controls-scope {
margin-left: auto;
color: var(--text-muted);
text-align: right;
}
.task-wheel-controls-body {
display: flex;
flex-direction: column;
gap: var(--size-2-2);
padding: var(--size-2-3);
}
.task-wheel-controls-row {
display: flex;
align-items: center;
gap: var(--size-2-2);
font-size: var(--font-ui-smaller);
}
.task-wheel-controls-label {
flex: 0 0 5.5em;
color: var(--text-muted);
}
.task-wheel-controls-row select,
.task-wheel-controls-row input {
flex: 1 1 auto;
min-width: 0;
font-size: var(--font-ui-smaller);
height: auto;
padding: var(--size-2-1) var(--size-2-2);
}
.task-wheel-controls-clear {
align-self: flex-start;
font-size: var(--font-ui-smaller);
padding: var(--size-2-1) var(--size-2-3);
cursor: pointer;
}
/* ------------------------------------------------------------------ */
/* the reading card */
/* ------------------------------------------------------------------ */
/* The card floats over the wheel, low down, where a square drawing in a tall
pane leaves room to spare. Two rules keep it out of the way:
Its size never changes. A panel that grows and shrinks over a drawing keeps
uncovering and re-covering the thing you are reading, which is worse than one
that sits still and clips its text.
It is see-through to the hand: a drag that starts on the card still turns the
wheel, and only the fold button takes a tap of its own. */
.task-wheel-card {
position: absolute;
left: 50%;
bottom: 0;
transform: translateX(-50%);
width: min(88%, 26em);
/* Room for four lines of a task's name above the trail and the action row.
It was 9,6em, which held two — and the framework document promises the
opposite: "de vaste kaart bij de leeswig schrijft de taak in focus
volledig uit, zodat die niet wordt afgekapt" (§4, besluit 13 aug 2026).
Raising it does not touch the rule this block is built on: what may not
change is the size *while you are reading*, and a taller card is still a
still card (BC_E3_S122). */
height: 12.4em;
/* Binds only in a pane too short to be useful anyway — landscape on a phone.
The text gives way there, never the action row. */
max-height: 72%;
overflow: hidden;
pointer-events: none;
display: flex;
flex-direction: column;
gap: var(--size-2-1);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
background: var(--background-secondary);
padding: var(--size-2-3) var(--size-4-3);
}
/* On a phone the card is most of what you read, and 88% of a narrow screen
throws away two margins of width to show wheel that the card is standing in
front of anyway (eigenaar, 3 sep 2026). Full width within the safe zone, so
the words get the room instead. Still one fixed size — a breakpoint is not an
animation (BC_E3_S122). */
.is-mobile .task-wheel-card {
left: var(--size-4-2);
right: var(--size-4-2);
width: auto;
transform: none;
}
/* Say when the words did not fit.
The card clips rather than grows, which is the right trade for a panel that
sits over the drawing — but a clip nobody can see is the small version of the
half-truth harde eis §3.3 forbids. The class is set by the card when it
measures its own text as taller than the room it has. */
.task-wheel-card-body.is-clipped::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 1.5em;
pointer-events: none;
background: linear-gradient(
to bottom,
transparent,
var(--background-secondary)
);
}
/* The text may run out of room; the button below it may not. */
.task-wheel-card-body {
position: relative;
flex: 1 1 auto;
min-height: 0;
overflow: hidden;
/* Room for the two nudge buttons pinned over the card's edges. They overlay
the card rather than sit in a row of their own, so the text has to be told
to keep clear of them — otherwise a long title runs straight under a
chevron. */
padding: 0 2.6em;
}
/* One item on, one item back, without turning.
Pinned to the card's own left and right edges and centred against the text,
so they read as "where the wheel goes next" rather than as two more things to
do to this task. Deliberately not in the action row: that row is already full
at eight to ten buttons on a phone, and these are not actions on the task.
The walk they make is the flat one — the same order turning makes, the one
that cannot skip anything. */
.task-wheel-nudge {
position: absolute;
/* A button gets its own font-size from the browser, not from the card. Left
alone, the em below would be measured against 13px while the action row's
is measured against the card's 16px, and the two would not line up. */
font-size: inherit;
top: var(--size-2-3);
/* Down to the top of the action row and no further: a tall target beside the
text that never covers a button. The row is 2.5em with the card's gap and
its own bottom padding under it, so that is exactly what is reserved. */
bottom: calc(2.5em + var(--size-2-1) + var(--size-2-3));
width: 2.4em;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
border: none;
box-shadow: none;
background: transparent;
/* Same footing as the action icons: a control, not decoration, so it clears
the 3:1 that non-text contrast asks for on a light theme too. */
color: var(--text-muted);
cursor: pointer;
pointer-events: auto;
border-radius: var(--radius-s);
}
.task-wheel-nudge.is-back {
left: var(--size-2-2);
}
.task-wheel-nudge.is-forward {
right: var(--size-2-2);
}
.task-wheel-nudge:hover,
.task-wheel-nudge:focus-visible {
background: var(--background-modifier-hover);
color: var(--text-normal);
box-shadow: none;
}
.task-wheel-nudge .svg-icon {
width: 1.2em;
height: 1.2em;
}
/* Always there, whether or not it holds a button — a row that comes and goes
would resize the card, which is the thing this card promises not to do. */
.task-wheel-card-foot {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: var(--size-2-2);
/* As tall as the buttons it holds, and no taller. The card's frame is fixed,
so this row's height is part of the budget rather than something it may
take from the text. Never wrapping, for the same reason: a second row
would push the row out of a frame that is not allowed to grow. */
min-height: 2.5em;
flex-wrap: nowrap;
}
/* One line, never two: the trail places the item, and a path that wraps costs
the title the room it needs to be read. */
.task-wheel-card-trail {
display: flex;
align-items: center;
gap: var(--size-2-2);
font-size: var(--font-ui-smaller);
color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
}
.task-wheel-card-step {
overflow: hidden;
text-overflow: ellipsis;
}
.task-wheel-card-swatch {
width: 0.7em;
height: 0.7em;
border-radius: 50%;
background: var(--tw-colour, var(--text-muted));
flex: 0 0 auto;
}
.task-wheel-card-sep {
color: var(--text-faint);
}
.task-wheel-card-title {
margin: var(--size-2-1) 0 0;
font-size: var(--font-ui-medium);
line-height: var(--line-height-tight);
color: var(--text-normal);
overflow-wrap: anywhere;
/* The card holds a fixed frame, so the title gets a fixed share of it. Two
lines carry any real task; beyond that the wheel is the place to look,
not a panel that has eaten the drawing. */
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
/* Only in a wheel over one note: the title is a thing you can change. It has
to take a tap of its own, since the rest of the card is see-through to the
hand and a drag that starts here still turns the wheel. */
/* The whole task, on demand (BC_E3_S90).
An overlay over the card's reading matter rather than a taller card: the
card holds one size at every stop so the drawing underneath never jumps, and
growing it would break exactly that. It covers the trail, the chips and the
source line — which are all about *this* task, so nothing is lost that the
reader is not looking at — and stops short of the action row, which stays
where it was. Long enough to need more than this and it scrolls. */
.task-wheel-card-title.is-open {
position: absolute;
inset: 0;
z-index: 2;
margin: 0;
padding: var(--size-2-2) var(--size-4-2) 1.7em;
overflow-y: auto;
background: var(--background-primary);
border-radius: var(--radius-m);
pointer-events: auto;
/* Undo the clamp — every line, however many there are. */
display: block;
-webkit-line-clamp: none;
}
/* The way in and out of that. Quiet, and pinned rather than in the flow: it is
a way to read more, not an action on the task, and a control that moved when
the text under it moved would be one more thing jumping about. */
.task-wheel-card-more {
position: absolute;
right: 2.6em;
bottom: 0;
z-index: 3;
margin: 0;
/* Obsidian gives a button a 44 px tap target and a filled pill on mobile,
which is right for a button standing on its own and wrong for a line of
text inside a fixed frame — it came out as a grey slab across the middle
of the card (eigenaar, 1 sep 2026, schermafbeelding). The same trap the
action row had to be talked out of; the cure is the same. This is a word,
not a control: the whole card is already the tap target for reading. */
min-height: 0;
height: auto;
padding: 0;
background: none;
box-shadow: none;
border: none;
border-radius: 0;
-webkit-appearance: none;
appearance: none;
color: var(--text-muted);
font-size: var(--font-ui-smaller);
line-height: 1.4;
white-space: nowrap;
text-decoration: underline;
cursor: pointer;
pointer-events: auto;
}
.task-wheel-card-more:hover {
color: var(--text-normal);
}
/* A title with nothing behind it still takes its own tap, so that it can say
why — the card is see-through to the hand, and without this the tap landed on
the drawing underneath (BC_E3_S118). No hand cursor: there is nothing to
open, and promising otherwise is the same lie in a different place. */
.task-wheel-card-title.is-refusing {
pointer-events: auto;
cursor: default;
}
.task-wheel-card-title.is-editable {
pointer-events: auto;
cursor: text;
border-radius: var(--radius-s);
}
.task-wheel-card-title.is-editable:hover {
background: var(--background-modifier-hover);
}
/* The rename box takes the card's whole reading area, as an overlay.
It used to take exactly the room the title had — two lines — so that opening
it could not move the drawing underneath. That reasoning still holds and the
overlay keeps it: the card does not change size, so nothing moves. What it
drops is the *reason* for staying at two lines, which was never the drawing
but a copy of the title's clamp. Typing is the one moment on this card where
more room is worth more than a tidy layout, and on a phone the keyboard has
already taken half the screen (eigenaar, 1 sep 2026). Same trick as the
unfolded title, one layer higher. */
.task-wheel-card-rename {
position: absolute;
inset: 0;
z-index: 4;
pointer-events: auto;
width: 100%;
margin: 0;
padding: var(--size-2-2) var(--size-4-2);
resize: none;
font-family: inherit;
font-size: var(--font-ui-medium);
line-height: var(--line-height-tight);
color: var(--text-normal);
background: var(--background-primary);
border: 1px solid var(--background-modifier-border-focus);
border-radius: var(--radius-m);
}
/* While it is open, the way to unfold the title is noise: the box already
shows every word, and it would sit on top of what is being typed. */
.task-wheel-card-body.is-renaming .task-wheel-card-more {
display: none;
}
/* A link inside a task's words. It takes the tap it is given — the card under
it turns the wheel and the title around it opens the rename box, and both
would be the wrong answer to a tap on a link. Colour comes from the theme's
own link variables, so it looks like every other link in the vault. */
.task-wheel-card-link {
pointer-events: auto;
cursor: pointer;
text-decoration: none;
}
.task-wheel-card-link:hover {
text-decoration: underline;
}
.task-wheel-card-chips {
display: flex;
gap: var(--size-2-2);
margin-top: var(--size-2-2);
overflow: hidden;
}
.task-wheel-chip {
font-size: var(--font-ui-smaller);
color: var(--text-muted);
background: var(--background-modifier-hover);
border-radius: var(--radius-s);
padding: 0 var(--size-2-2);
white-space: nowrap;
}
/* Tinted rather than filled: the chip has to stay readable against whatever
the theme puts behind it, and a saturated hue with text on top does not. */
.task-wheel-chip.is-priority {
color: var(--text-normal);
background: color-mix(in oklab, var(--tw-colour, transparent) 22%, transparent);
box-shadow: inset 0 0 0 1px
color-mix(in oklab, var(--tw-colour, transparent) 45%, transparent);
}
.task-wheel-chip.is-tag {
color: var(--text-accent);
}
/* The one chip that is about now rather than about later. */
.task-wheel-chip.is-in-progress {
color: var(--text-normal);
box-shadow: inset 0 0 0 1px var(--text-accent);
}
.task-wheel-chip.is-cancelled {
color: var(--text-faint);
text-decoration: line-through;
}
.task-wheel-card-count {
margin: var(--size-2-2) 0 0;
font-size: var(--font-ui-smaller);
color: var(--text-muted);
}
.task-wheel-card-stump,
.task-wheel-card-source {
margin: var(--size-2-2) 0 0;
font-size: var(--font-ui-smaller);
color: var(--text-faint);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* The review actions: icons, quiet, evenly spaced. Quiet because they are not
what the eye should land on — the wheel is — and icons because six labelled
buttons do not fit across a phone, while the card holds a fixed frame. The
name lives on as the tooltip and the accessible label. */
.task-wheel-action {
display: inline-flex;
align-items: center;
justify-content: center;
/* One size on every platform. Obsidian gives buttons a 44 px tap target on
mobile, which is right for a button standing on its own and wrong inside
a fixed frame — it silently ate the row's room and cut the icons in half
on the owner's phone. This is a comfortable target that both platforms
agree on. */
min-height: 0;
/* Comfortable at 2.5em, and allowed to give some of that back when there
are eight of them on a phone: shrinking a little beats a row that runs
off the card. The floor is what a finger can still land on. */
flex: 0 1 2.5em;
width: 2.5em;
min-width: 2em;
height: 2.5em;
padding: 0;
border: none;
box-shadow: none;
background: transparent;
/* Muted rather than faint: these are controls, and a control has to clear
the 3:1 that non-text contrast asks for. Faint managed 3.6:1 on a dark
theme and only 2.85:1 on a light one, where it read as decoration
(measured 17 aug 2026). */
color: var(--text-muted);
cursor: pointer;
pointer-events: auto;
border-radius: var(--radius-s);
}
/* A status the task already carries: the button now takes it off again, and it
has to look like something that is switched on rather than something that is
merely available. */
.task-wheel-action.is-on {
color: var(--text-accent);
background: var(--background-modifier-hover);
}
.task-wheel-action:hover,
.task-wheel-action:focus-visible {
background: var(--background-modifier-hover);
color: var(--text-normal);
box-shadow: none;
}
.task-wheel-action .svg-icon {
width: 1.05em;
height: 1.05em;
}
/* A heavier line, at the same quiet grey (eigenaar, 28 aug 2026: the row was
"minder duidelijk" on a light theme).
The colour is deliberately left where it is. These are drawn icons, not
filled ones, and at about a sixteenth of an inch a hairline in mid-grey
reads weaker than the very same grey in a solid shape — so weight is as
real a control here as hue, and it is the one that does not cost the row
its quiet. That quiet is a decision, not an oversight: the eye is meant to
land on the wheel, and the colour was already lifted once for this reason
(faint to muted, 17 aug 2026, when faint measured 2,85:1 on a light theme
against 3,6:1 on a dark one).
Written against the theme's own icon stroke rather than as a flat number,
so a theme that draws its icons heavier keeps the difference it chose. */
.task-wheel-action .svg-icon,
.task-wheel-nudge .svg-icon {
stroke-width: calc(var(--icon-stroke, 1.75px) + 0.5px);
}
/* Every icon sits in a span of its own — see `src/view/icon.ts` for why. The
span carries no size of its own, so the icon keeps the box it always had;
it is a flex box only so it centres the icon exactly as the button did when
the icon hung in it directly. */
.task-wheel-action-icon,
.task-wheel-nudge-icon {
display: flex;
align-items: center;
justify-content: center;
}
.task-wheel-card-empty {
margin: 0;
font-size: var(--font-ui-small);
color: var(--text-muted);
}
/* No tasks at all: the message takes the card's place in the middle. */
.task-wheel-empty {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: min(80%, 24em);
text-align: center;
font-size: var(--font-ui-small);
color: var(--text-muted);
}
.task-wheel-empty p {
margin: 0 0 var(--size-2-2);
}
.task-wheel-empty-hint {
font-size: var(--font-ui-smaller);
color: var(--text-faint);
}
/* What the filter is leaving out. Deliberately not faint: this is the line
that keeps the wheel honest about a round being a round of a selection. */
.task-wheel-filter {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: var(--size-2-2);
margin-bottom: var(--size-2-3);
font-size: var(--font-ui-smaller);
}
.task-wheel-filter-label {
color: var(--text-accent);
font-weight: var(--font-semibold);
}
.task-wheel-filter-rule {
color: var(--text-normal);
}
.task-wheel-filter-count {
color: var(--text-muted);
font-variant-numeric: tabular-nums;
}
/* The half of "left out" that no rule of the reader's explains, so it may not
read as more of the same number. Warmer than muted, still not a warning:
nothing is broken, the wheel simply does not know (BC_E3_S183). */
.task-wheel-filter-blind {
color: var(--text-warning);
font-variant-numeric: tabular-nums;
}
/* The track the reading wedge has already run along this round. Faint on
purpose: it is a memory of where you have been, not a thing to look at. */
.task-wheel-sweep path {
fill: none;
stroke: var(--text-accent);
stroke-width: 2.5;
stroke-linecap: round;
opacity: 0.28;
}
/* ------------------------------------------------------------------ */
/* the wheel */
/* ------------------------------------------------------------------ */
.task-wheel-canvas {
display: flex;
justify-content: center;
border-radius: var(--radius-m);
/* The whole canvas is the handle: there is no grip to aim for. */
cursor: grab;
/* The element that owns the gesture has to say so. Without this the pane
behind it claims a touch as a scroll and the wheel never sees the moves —
which is what happened on the first owner test on a phone. */
touch-action: none;
overscroll-behavior: contain;
}
.task-wheel-canvas.is-empty {
cursor: default;
}
.task-wheel-canvas:active {
cursor: grabbing;
}
.task-wheel-canvas:focus {
outline: none;
}
.task-wheel-canvas:focus-visible {
outline: 2px solid var(--interactive-accent);
outline-offset: 2px;
}
.task-wheel-svg {
display: block;
/* Fill the box the pane leaves, in both directions. The SVG's own
`preserveAspectRatio` keeps the wheel round inside it, so the drawing is
as large as the room allows and follows a resize with no measuring and no
listener. */
width: 100%;
height: 100%;
/* The wheel handles its own drag, swipe and pinch gestures. */
touch-action: none;
}
.task-wheel-rings circle {
fill: none;
stroke: var(--background-modifier-border);
stroke-width: 0.5;
}
.task-wheel-budget {
fill: none;
stroke: var(--tw-colour, var(--background-modifier-border));
stroke-width: 3.5;
}
.task-wheel-seam {
stroke: var(--background-modifier-border);
stroke-width: 0.5;
opacity: 0.55;
}
/* Presence is the fisheye's second channel: how strongly a node is drawn,
falling away with its distance from the focus. It never reaches zero — the
far side of the wheel becomes a silhouette, not a blank (kaderdocument §5). */
.task-wheel-branches path,
.task-wheel-node {
opacity: var(--tw-presence, 1);
transition: opacity 180ms ease-out;
}
/* Fading works differently on the two themes, because fading is compositing
towards the background and the backgrounds are opposite. At the silhouette
floor a dot keeps 3.2:1 against a dark pane and only 1.9:1 against a white
one, where the warm hues all but vanish — and a node that cannot be seen at
all stops answering "is there something here?", which is the one thing the
far side of the wheel is still for (§3.3, measured 17 aug 2026).
So the floor is lifted on a light theme rather than the palette changed: the
colour still comes from the theme, only the fade stops earlier. It does not
reach parity and cannot — the theme's own light orange is 2.9:1 on white at
full strength, so 2.9 is the ceiling and 0.72 takes most of what there is.
Lifting further would flatten the fisheye for a fraction of a point. */
.theme-light .task-wheel-branches path,
.theme-light .task-wheel-node {
opacity: max(var(--tw-presence, 1), 0.72);
}
@media (prefers-reduced-motion: reduce) {
.task-wheel-branches path,
.task-wheel-node {
transition: none;
}
}
.task-wheel-branches path {
fill: none;
stroke: var(--tw-colour, var(--background-modifier-border));
stroke-width: 1.1;
stroke-linecap: round;
}
.task-wheel-node circle {
fill: var(--tw-colour, var(--text-muted));
stroke: var(--background-primary);
stroke-width: 0.6;
}
.task-wheel-node.is-tick line {
stroke: var(--tw-colour, var(--text-muted));
stroke-width: 1.8;
stroke-linecap: round;
}
/* A stump: the branch is still here, its contents are not shown. The dashed
edge says "there is more behind this"; the +N in the label says how much. */
.task-wheel-node.is-stump circle {
stroke: var(--tw-colour, var(--text-muted));
stroke-width: 1.2;
stroke-dasharray: 1.5 1.5;
}
/* Folded on purpose, rather than because the rings ran out. */
.task-wheel-node.is-collapsed circle {
fill: var(--background-primary);
stroke: var(--tw-colour, var(--text-muted));
stroke-width: 1.8;
stroke-dasharray: none;
}
/* Started work: `- [/]`. A ring, not a colour — the fill carries priority and
keeps carrying it, so both can be read at once. The ring is the same hue as
the dot so it reads as one mark rather than two. */
.task-wheel-node.is-in-progress circle {
stroke: var(--tw-colour, var(--text-muted));
stroke-width: 1.6;
stroke-dasharray: none;
}
/* Cancelled work: `- [-]`. Only ever drawn when completed work is being shown,
and then it should look as finished as it is. */
.task-wheel-node.is-cancelled circle {
fill: var(--background-primary);
stroke: var(--text-faint);
stroke-width: 1;
stroke-dasharray: 1 1.5;
}
/* The tap target: what a finger actually hits, since the dots out on the
crowded rings are a couple of pixels across. It is drawn as a circle like
any other, so it has to come after every rule that paints one — a stump, a
folded branch and started work all add a stroke, and a painted tap target
turns the wheel into a field of finger-sized balls. */
.task-wheel-node circle.task-wheel-hit {
fill: none;
stroke: none;
pointer-events: all;
}
.task-wheel-node.is-focus {
opacity: 1;
}
.task-wheel-focus-ring {
fill: none;
stroke: var(--text-accent);
stroke-width: 1.6;
}
.task-wheel-focus-ring.is-idle {
display: none;
}
.task-wheel-label {
fill: var(--text-normal);
font-size: 10px;
dominant-baseline: middle;
/* A halo in the page colour, so a label crossing a ring or a branch stays
readable in both themes without a box behind it. */