forked from zhaohongxuan/journal-partner
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
2789 lines (2710 loc) · 75.7 KB
/
Copy pathstyles.css
File metadata and controls
2789 lines (2710 loc) · 75.7 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
/* ── Spark Memo ──────────────────────────────────────────────────────────── */
/*
Timestamp badge – rendered both in the editor (CM6 mark decoration)
and in reading view (post-processed <span>).
Colors are driven by CSS custom properties so they update instantly
when the user changes them in Settings, without requiring a reload.
*/
.jp-timestamp {
display: inline-block;
color: var(--jp-ts-color, #7c3aed);
background: var(--jp-ts-bg, #ede9fe);
/* Monospace keeps time digits aligned */
font-family: var(
--font-monospace,
"Cascadia Code",
"Fira Code",
monospace
);
font-size: 0.76em;
font-weight: 700;
letter-spacing: 0.04em;
line-height: 1.7;
/* Pill shape */
padding: 2px 9px;
border-radius: 99px;
/* Spacing before the journal text */
margin-right: 6px;
vertical-align: middle;
white-space: nowrap;
/* Subtle depth */
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.07),
inset 0 0 0 1px rgba(0, 0, 0, 0.06);
/* Smooth color transitions when settings change */
transition:
color 0.2s ease,
background-color 0.2s ease;
}
/* ── Dark theme ──────────────────────────────────────────────────────────── */
.theme-dark .jp-timestamp {
box-shadow:
0 1px 4px rgba(0, 0, 0, 0.35),
inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* ── Reading view ─────────────────────────────────────────────────────────── */
/* Non-interactive cursor in the rendered view */
.markdown-reading-view .jp-timestamp {
cursor: default;
-webkit-user-select: none;
user-select: none;
}
/* Very subtle hover feedback */
.markdown-reading-view .jp-timestamp:hover {
opacity: 0.82;
transition: opacity 0.15s ease;
}
/* ── Editor (source / live-preview) ─────────────────────────────────────── */
/* Keep the native text cursor so the user can click around */
.cm-editor .jp-timestamp {
cursor: text;
}
/* ── Quick-capture sidebar view ─────────────────────────────────────────── */
.jp-capture-root {
--jp-tl-line: var(--jp-ts-bg, #ede9fe);
--jp-tl-dot: var(--jp-ts-color, #7c3aed);
--jp-tl-dot-ring: color-mix(in srgb, var(--jp-tl-dot) 35%, transparent);
--jp-pane-pad: 12px;
display: flex;
flex-direction: column;
gap: 12px;
padding: var(--jp-pane-pad);
height: 100%;
min-height: 0;
overflow: hidden;
background: var(--background-primary);
}
/* Only the timeline list scrolls; the input card (and tab / search / location
bars above it) stay pinned so the user always has the composer in view. */
.jp-timeline-scroll {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
/* overflow-y:auto forces overflow-x to clip too. The day-header dot has a
2px outer ring that would otherwise get clipped on the left edge, so we
nudge the scroll box 4px into the root's left padding. */
padding-left: 4px;
margin-left: -4px;
/* Scroll still works via trackpad/wheel — just hide the visible scrollbar. */
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* old Edge/IE */
}
/* Mobile keyboard fix. When the software keyboard opens, Obsidian resizes the
app so the leaf already ends exactly at the top of the keyboard — and then
*also* pads `.view-content` with a bottom inset the height of the keyboard
(measured: 372px on iPhone), the usual trick for views whose content scrolls
as a whole. Our root IS that `.view-content`, and it is a fixed-height flex
column, so the inset is double compensation: of its 388px only 4px were left
for content, `.jp-pane-capture` correctly resolved to 0, and the timeline
collapsed with it. Drop the inset back to our own padding; nothing can be
hidden behind the keyboard here, because the leaf stops above it.
`!important` is required — Obsidian sets the inset as an inline style.
Zero rather than the usual pane padding: with the keyboard up every point
counts, and a scrolling list running to the edge of the pane is the norm on
mobile. The timeline supplies its own breathing room at the bottom. */
.is-mobile .jp-capture-root {
padding-bottom: 0 !important;
}
.is-mobile .jp-timeline-scroll {
padding-bottom: 8px;
}
/* Day header stays pinned to the top of the scroll area while its entries
scroll underneath — the user always sees which day they're looking at,
and the prev/calendar/next controls stay reachable.
Both classes are written together on purpose: `.jp-timeline-entry` further
down sets `position: relative` at the same specificity, and — being later in
the file — silently won, which killed the sticky behaviour entirely. */
.jp-timeline-entry.jp-timeline-entry--header {
position: sticky;
top: 0;
z-index: 2;
background: var(--background-primary);
padding-top: 4px;
padding-bottom: 4px;
}
/* The rail (`.jp-timeline-day::before`) is drawn from the day block's top, and
isn't sticky — so it kept running up past the header dot, all the way to the
top of the scroll area. Mask just the sliver above the dot's centre (dot is
top:8px, 14px tall → centre at 15px) so the rail appears to start at the dot
and never above it. Everything below the centre is left untouched, keeping
the rail continuous down the day. Painted before the dot in DOM order, so the
dot still draws on top. */
.jp-timeline-entry.jp-timeline-entry--header::before {
content: '';
position: absolute;
top: 0;
left: -24px;
width: 24px;
height: 15px;
background: var(--background-primary);
}
.jp-timeline-scroll::-webkit-scrollbar {
display: none; /* Chromium (Obsidian's Electron shell) */
}
/* Toolbar */
.jp-capture-toolbar {
display: flex;
gap: 8px;
padding: 0 4px;
}
.jp-capture-toolbar-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
padding: 0;
border: none;
background: transparent;
color: var(--text-muted);
border-radius: 6px;
cursor: pointer;
transition: background-color 0.15s ease, color 0.15s ease;
}
.jp-capture-toolbar-btn:hover {
background: var(--background-modifier-hover);
color: var(--text-normal);
}
/* Input card */
.jp-capture-card {
background: var(--background-primary);
border: 1px solid var(--background-modifier-border);
border-radius: 12px;
padding: 14px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.jp-capture-card:focus-within {
border-color: var(--background-modifier-border-hover);
}
/* iOS WebView clips the top-left corner of a <textarea> placeholder's first
glyph when both padding-top and padding-left are near 0. A small pad on
all sides keeps "What's happening?" from getting its W corner cut off,
without changing the desktop layout. */
.is-mobile .jp-capture-input {
padding: 4px 4px 2px 6px;
}
.jp-capture-input {
width: 100%;
min-height: 60px;
max-height: 240px;
resize: none;
border: none !important;
outline: none !important;
box-shadow: none !important;
background: transparent;
color: var(--text-normal);
font-family: inherit;
font-size: 14px;
line-height: 1.55;
padding: 0;
box-sizing: border-box;
}
.jp-capture-input::placeholder {
color: var(--text-faint);
}
.jp-capture-input {
scrollbar-width: thin;
scrollbar-color: var(--background-modifier-border) transparent;
}
.jp-capture-input::-webkit-scrollbar {
width: 4px;
}
.jp-capture-input::-webkit-scrollbar-track {
background: transparent;
}
.jp-capture-input::-webkit-scrollbar-thumb {
background-color: var(--background-modifier-border);
border-radius: 4px;
}
.jp-capture-input::-webkit-scrollbar-thumb:hover {
background-color: var(--background-modifier-border-hover);
}
.jp-capture-input-wrapper {
position: relative;
}
.jp-tag-suggest {
position: absolute;
z-index: 50;
min-width: 140px;
max-width: 260px;
max-height: 200px;
overflow-y: auto;
background: var(--background-primary);
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
box-shadow: var(--shadow-s);
padding: 4px;
}
.jp-tag-suggest--hidden {
display: none;
}
.jp-tag-suggest-item {
padding: 4px 8px;
border-radius: 4px;
font-size: 13px;
color: var(--text-normal);
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.jp-tag-suggest-item--active,
.jp-tag-suggest-item:hover {
background: var(--background-modifier-hover);
}
.jp-tag-suggest-item-parent {
color: var(--text-faint);
}
.jp-tag-suggest-item-leaf {
color: var(--text-normal);
font-weight: 600;
}
.jp-capture-button-row {
display: inline-flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 4px;
padding: 0;
}
.jp-capture-plus-btn,
.jp-capture-tag-btn,
.jp-capture-mention-btn,
.jp-capture-geo-btn {
background: color-mix(in srgb, var(--jp-tl-dot) 8%, var(--background-primary)) !important;
border: 1px solid color-mix(in srgb, var(--jp-tl-dot) 18%, transparent) !important;
outline: none !important;
box-shadow: none !important;
color: color-mix(in srgb, var(--jp-tl-dot) 70%, var(--text-muted)) !important;
cursor: pointer;
box-sizing: border-box !important;
width: 30px !important;
height: 30px !important;
min-width: 30px !important;
min-height: 30px !important;
max-width: 30px !important;
max-height: 30px !important;
padding: 0 !important;
border-radius: 50% !important;
display: inline-flex !important;
align-items: center;
justify-content: center;
vertical-align: middle;
transition: color 0.15s ease, background-color 0.15s ease;
flex-shrink: 0 !important;
flex-grow: 0 !important;
-webkit-appearance: none !important;
appearance: none !important;
}
.jp-capture-plus-btn:hover,
.jp-capture-tag-btn:hover,
.jp-capture-mention-btn:hover,
.jp-capture-geo-btn:hover {
color: var(--jp-tl-dot) !important;
background-color: color-mix(in srgb, var(--jp-tl-dot) 14%, transparent) !important;
}
.jp-capture-geo-btn.is-disabled,
.jp-capture-geo-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
pointer-events: none;
}
.jp-capture-geo-btn.is-loading {
cursor: wait;
position: relative;
}
.jp-capture-geo-btn.is-loading::before {
content: '';
position: absolute;
inset: -4px;
border-radius: 50%;
background: conic-gradient(from 0deg, transparent 0deg, transparent 250deg, var(--jp-tl-dot) 360deg);
mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
animation: jp-geo-spin 0.9s linear infinite;
pointer-events: none;
}
@keyframes jp-geo-spin {
to { transform: rotate(360deg); }
}
.jp-capture-plus-btn svg,
.jp-capture-tag-btn svg,
.jp-capture-mention-btn svg,
.jp-capture-geo-btn svg {
width: 18px !important;
height: 18px !important;
min-width: 18px !important;
min-height: 18px !important;
flex-shrink: 0 !important;
display: inline-block !important;
color: inherit;
fill: none;
stroke: currentColor;
stroke-width: 2;
}
.jp-capture-geo-btn svg {
width: 15px !important;
height: 15px !important;
min-width: 15px !important;
min-height: 15px !important;
}
.jp-capture-tag-btn,
.jp-capture-mention-btn,
.jp-capture-geo-btn {
font-size: 15px;
font-weight: 600;
line-height: 1;
}
.jp-capture-left-group {
display: inline-flex;
align-items: center;
gap: 6px;
}
/* Pending-image strip sits above the textarea, pushing it down — thumbnails
read like attachment previews rather than inline icon badges. */
.jp-capture-attachments {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin-bottom: 10px;
}
.jp-capture-attachments--empty {
display: none;
margin-bottom: 0;
}
/* Pending-image row: a plain horizontal strip regardless of count — the
2×2 grid look is reserved for how multiple images render in the
timeline once submitted, not this preview. */
.jp-capture-image-grid {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.jp-capture-attachment-thumb {
position: relative;
width: 56px;
height: 56px;
flex-shrink: 0;
}
.jp-capture-attachment-thumb-img {
width: 100%;
height: 100%;
border-radius: 10px;
overflow: hidden;
border: 1px solid color-mix(in srgb, var(--jp-tl-dot) 18%, transparent);
cursor: zoom-in;
}
.jp-capture-attachment-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.jp-capture-attachment-remove {
position: absolute;
top: -6px;
right: -6px;
box-sizing: border-box !important;
flex-shrink: 0 !important;
width: 20px !important;
height: 20px !important;
min-width: 20px !important;
min-height: 20px !important;
max-width: 20px !important;
max-height: 20px !important;
padding: 0 !important;
border: none !important;
outline: none !important;
-webkit-appearance: none !important;
appearance: none !important;
border-radius: 50% !important;
background: rgba(0, 0, 0, 0.65) !important;
color: white !important;
display: flex !important;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 0 0 1px var(--background-primary);
}
.jp-capture-attachment-remove:hover {
background: rgba(0, 0, 0, 0.85) !important;
}
.jp-capture-attachment-remove svg {
width: 11px !important;
height: 11px !important;
stroke: currentColor;
stroke-width: 3;
}
/* Pending-recording card: mirrors the image thumbnail slot but shows a mic
icon + duration instead of a preview, since audio has no visual frame. */
.jp-capture-attachment-audio {
position: relative;
display: inline-flex;
align-items: center;
gap: 6px;
height: 56px;
padding: 0 14px;
border-radius: 10px;
background: color-mix(in srgb, var(--jp-tl-dot) 10%, var(--background-primary));
border: 1px solid color-mix(in srgb, var(--jp-tl-dot) 18%, transparent);
color: var(--jp-tl-dot);
flex-shrink: 0;
}
.jp-capture-attachment-audio-icon {
display: inline-flex;
align-items: center;
}
.jp-capture-attachment-audio-icon svg {
width: 15px !important;
height: 15px !important;
}
.jp-capture-attachment-audio-duration {
font-size: 12px;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
/* Pending-file card: shown in the composer's attachment strip for
non-image, non-audio files. Same silhouette as the audio card so the row
stays visually consistent, but wider to fit the file name and size. */
.jp-capture-attachment-file {
position: relative;
display: inline-flex;
align-items: center;
gap: 8px;
min-width: 0;
max-width: 260px;
height: 56px;
padding: 0 34px 0 12px;
border-radius: 10px;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
color: var(--text-normal);
cursor: pointer;
flex-shrink: 0;
}
.jp-capture-attachment-file:hover {
background: var(--background-modifier-hover);
}
.jp-capture-attachment-file-icon {
display: inline-flex;
align-items: center;
color: var(--jp-tl-dot);
flex-shrink: 0;
}
.jp-capture-attachment-file-icon svg {
width: 20px !important;
height: 20px !important;
}
.jp-capture-attachment-file-meta {
display: flex;
flex-direction: column;
min-width: 0;
gap: 2px;
}
.jp-capture-attachment-file-name {
font-size: 13px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.jp-capture-attachment-file-size {
font-size: 11px;
color: var(--text-muted);
font-variant-numeric: tabular-nums;
}
/* Timeline file card: replaces the raw `![[file.pdf]]` embed in rendered
bubbles. Slightly larger + block-level so it lays out on its own line
inside the memo body. */
.jp-timeline-file-card {
display: inline-flex;
align-items: center;
gap: 10px;
max-width: 100%;
padding: 10px 14px;
margin: 4px 0;
border-radius: 8px;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
color: var(--text-normal);
text-decoration: none;
cursor: pointer;
}
.jp-timeline-file-card:hover {
background: var(--background-modifier-hover);
text-decoration: none;
}
.jp-timeline-file-card-icon {
display: inline-flex;
align-items: center;
color: var(--jp-tl-dot);
flex-shrink: 0;
}
.jp-timeline-file-card-icon svg {
width: 22px !important;
height: 22px !important;
}
.jp-timeline-file-card-meta {
display: flex;
flex-direction: column;
min-width: 0;
gap: 2px;
}
.jp-timeline-file-card-name {
font-size: 13px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 260px;
}
.jp-timeline-file-card-size {
font-size: 11px;
color: var(--text-muted);
font-variant-numeric: tabular-nums;
}
/* Capture-time override pill: shown next to the image/mic buttons once the
user opts into an image's capture time instead of "now". */
.jp-capture-time-pill {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
border-radius: 999px;
background: color-mix(in srgb, var(--jp-tl-dot) 12%, var(--background-primary));
border: 1px solid color-mix(in srgb, var(--jp-tl-dot) 26%, transparent);
color: var(--jp-tl-dot);
font-size: 12px;
font-weight: 600;
white-space: nowrap;
}
.jp-capture-time-pill--hidden,
.jp-location-pill--hidden {
display: none;
}
/* Top-of-card pill row — sits above the attachments/textarea and holds the
editing / capture-time / location / metadata-hint pills side by side.
Collapses (no bottom spacing) when every child pill is hidden. */
.jp-capture-top-pill-row {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 8px;
}
.jp-capture-top-pill-row:not(:has(> *:not(.jp-capture-time-pill--hidden):not(.jp-location-pill--hidden))) {
display: none;
}
/* Location chip next to the timeline timestamp — same pill styling, but
rendered as a clickable <a href="maps://..."> rather than a <div>. */
.jp-location-chip {
margin-left: 6px;
text-decoration: none !important;
cursor: pointer;
}
.jp-capture-time-pill-icon {
display: inline-flex;
align-items: center;
}
.jp-capture-time-pill-icon svg {
width: 12px !important;
height: 12px !important;
}
.jp-capture-time-pill-clear {
display: inline-flex !important;
align-items: center;
justify-content: center;
box-sizing: border-box !important;
flex-shrink: 0 !important;
flex-grow: 0 !important;
width: 14px !important;
height: 14px !important;
min-width: 14px !important;
min-height: 14px !important;
max-width: 14px !important;
max-height: 14px !important;
padding: 0 !important;
-webkit-appearance: none !important;
appearance: none !important;
border: none !important;
outline: none !important;
box-shadow: none !important;
background: transparent !important;
color: inherit !important;
cursor: pointer;
opacity: 0.7;
}
.jp-capture-time-pill-clear:hover {
opacity: 1;
}
.jp-capture-time-pill-clear svg {
width: 10px !important;
height: 10px !important;
stroke-width: 3;
}
/* "Apply photo info?" hint pill — its label re-opens the confirm modal. */
.jp-metadata-hint-text {
cursor: pointer;
}
.jp-metadata-hint-text:hover {
text-decoration: underline;
}
@keyframes jp-recording-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* Live recording bar: waveform + duration + status */
.jp-recording-bar {
--jp-recording-stroke: var(--jp-tl-dot, #7c3aed);
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 8px;
padding: 10px;
border-radius: 12px;
background: var(--background-secondary);
transition: opacity 0.25s ease, transform 0.25s ease;
transform-origin: top center;
}
/* One-shot fade + slide-down when the bar enters the DOM. Class is added
after `display:''` is set and removed on hide so it can replay next time. */
.jp-recording-bar.jp-bar-entering {
animation: jp-recording-bar-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes jp-recording-bar-in {
0% { opacity: 0; transform: translateY(-6px) scaleY(0.92); }
100% { opacity: 1; transform: translateY(0) scaleY(1); }
}
/* Top row: waveform + time/status */
.jp-recording-bar > :nth-child(1) {
/* waveform + meta sit in a flex row */
}
.jp-recording-waveform {
flex: 1;
height: 34px;
display: block;
min-width: 0;
}
.jp-recording-meta {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 2px;
flex-shrink: 0;
line-height: 1.1;
}
.jp-recording-time {
font-variant-numeric: tabular-nums;
font-size: 13px;
font-weight: 600;
color: var(--text-normal);
}
/* Hidden while actively recording — the timer + waveform already say
enough. Only shown once transcription starts, where it's the sole cue
that something is still happening (the timer freezes at that point). */
.jp-recording-status {
display: none;
font-size: 11px;
color: var(--text-muted);
}
.jp-recording-bar.is-transcribing .jp-recording-status {
display: block;
}
/* Waveform + meta live in a flex row; stop button sits centered below. */
.jp-recording-bar .jp-recording-waveform,
.jp-recording-bar .jp-recording-meta {
/* placed via the row wrapper created at runtime */
}
.jp-recording-wave-row {
display: flex;
align-items: center;
gap: 10px;
}
.jp-recording-stop {
align-self: center;
box-sizing: border-box !important;
flex-shrink: 0 !important;
flex-grow: 0 !important;
width: 32px !important;
height: 32px !important;
min-width: 32px !important;
max-width: 32px !important;
min-height: 32px !important;
max-height: 32px !important;
padding: 0 !important;
-webkit-appearance: none !important;
appearance: none !important;
border: none;
border-radius: 50% !important;
background: var(--text-error);
color: var(--text-on-accent, #fff);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 2px 6px color-mix(in srgb, var(--text-error) 40%, transparent);
animation: jp-recording-pulse 1.2s ease-in-out infinite;
transition: transform 0.12s ease, opacity 0.2s ease;
}
.jp-recording-stop:hover {
transform: scale(1.06);
}
.jp-recording-stop:active {
transform: scale(0.94);
}
.jp-recording-stop svg {
width: 14px !important;
height: 14px !important;
display: block;
fill: currentColor;
stroke: none;
}
/* Transcribing state: shown after the user clicks stop but before the final
text lands. RecBar stays visible with a slow breathing effect on the
waveform row + status text. The stop button is hidden (no longer needed),
the icon group + NOTE button stay hidden too (we're still working). */
.jp-recording-bar.is-transcribing {
background: color-mix(in srgb, var(--background-secondary) 70%, var(--background-primary) 30%);
}
/* Repeats !important to override the base rule's pinned min/max-height,
which exists so Obsidian's mobile `button` styles can't resize the
button. Without it the collapse would never take effect. */
.jp-recording-bar.is-transcribing .jp-recording-stop {
opacity: 0;
pointer-events: none;
min-height: 0 !important;
max-height: 0 !important;
margin: 0;
padding: 0 !important;
border: 0;
overflow: hidden;
}
.jp-recording-bar.is-transcribing .jp-recording-wave-row {
animation: jp-transcribing-breathe 1.8s ease-in-out infinite;
transform-origin: center;
}
.jp-recording-bar.is-transcribing .jp-recording-status {
color: var(--text-accent);
}
@keyframes jp-transcribing-breathe {
0%, 100% { opacity: 0.55; }
50% { opacity: 1; }
}
.jp-capture-actions {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 10px;
}
/* Circular icon submit button — filled/accent when there's content to send,
flat/muted when the input is empty. */
.jp-capture-submit {
box-sizing: border-box !important;
width: 34px !important;
height: 34px !important;
min-width: 34px !important;
min-height: 34px !important;
max-width: 34px !important;
max-height: 34px !important;
padding: 0 !important;
flex-shrink: 0 !important;
flex-grow: 0 !important;
background: var(--jp-tl-dot) !important;
color: var(--text-on-accent, #fff) !important;
border: none !important;
outline: none !important;
box-shadow: none !important;
border-radius: 50% !important;
display: inline-flex !important;
align-items: center;
justify-content: center;
cursor: pointer;
-webkit-appearance: none !important;
appearance: none !important;
transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.jp-capture-submit svg {
width: 16px !important;
height: 16px !important;
min-width: 16px !important;
min-height: 16px !important;
flex-shrink: 0 !important;
display: inline-block !important;
}
.jp-capture-submit:hover:not(:disabled) {
background: color-mix(in srgb, var(--jp-tl-dot) 85%, white) !important;
box-shadow: 0 1px 4px color-mix(in srgb, var(--jp-tl-dot) 40%, transparent) !important;
}
.jp-capture-submit:active {
transform: translateY(1px);
}
.jp-capture-submit--disabled,
.jp-capture-submit:disabled {
background: color-mix(in srgb, var(--text-faint) 25%, var(--background-primary)) !important;
color: var(--text-faint) !important;
cursor: not-allowed;
box-shadow: none !important;
}
.jp-capture-submit--loading svg {
animation: jp-capture-submit-spin 0.8s linear infinite;
}
@keyframes jp-capture-submit-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* Empty state */
.jp-capture-empty {
padding: 24px 12px;
text-align: center;
color: var(--text-muted);
font-size: 13px;
line-height: 1.6;
}
/* Timeline */
.jp-timeline {
position: relative;
}
.jp-timeline-entry {
position: relative;
margin-bottom: 12px;
}
.jp-timeline-entry:last-child {
margin-bottom: 0;
}
/* Freshly-written entry: brief pulse so the eye lands on it after submit.
Applied by renderDayContent when the row matches `pendingHighlight`. */
.jp-timeline-entry--just-added .jp-timeline-bubble {
animation: jp-timeline-entry-flash 2.2s ease-out 1;
}
.jp-timeline-entry--just-added .jp-timeline-dot {
animation: jp-timeline-dot-flash 2.2s ease-out 1;
}
@keyframes jp-timeline-entry-flash {
0% {
background: color-mix(in srgb, var(--jp-tl-dot) 22%, var(--background-primary));
box-shadow: 0 0 0 2px color-mix(in srgb, var(--jp-tl-dot) 45%, transparent);
transform: translateY(-2px);
}
60% {
background: color-mix(in srgb, var(--jp-tl-dot) 10%, var(--background-primary));
box-shadow: 0 0 0 1px color-mix(in srgb, var(--jp-tl-dot) 20%, transparent);
transform: translateY(0);
}
100% {
background: inherit;
box-shadow: none;
transform: translateY(0);
}
}
@keyframes jp-timeline-dot-flash {
0%, 40% {
box-shadow: 0 0 0 6px color-mix(in srgb, var(--jp-tl-dot) 35%, transparent);
}
100% {
box-shadow: 0 0 0 1px var(--jp-tl-dot-ring);
}
}
.jp-timeline-dot {
position: absolute;
left: -22px;
top: 6px;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--background-primary);
border: 2px solid var(--jp-tl-dot);
box-sizing: border-box;
}
.jp-timeline-dot--latest {
width: 12px;
height: 12px;
left: -23px;
top: 5px;
background: var(--jp-tl-dot);
border: 3px solid var(--background-primary);
box-shadow: 0 0 0 1px var(--jp-tl-dot-ring);
}
/* Timeline entry: dot + connector + timestamp pill on the same baseline,
then a content bubble that hangs off below the timestamp. */
.jp-timeline-entry-head {
position: relative;
display: flex;
align-items: center;
min-height: 22px;
margin-bottom: 10px;
}
/* Connector line from the timeline dot to the timestamp pill */
.jp-timeline-entry-head::before {
content: '';
position: absolute;
left: -12px;
top: 50%;
width: 12px;
height: 2px;
background: var(--jp-tl-line);
border-radius: 2px;
transform: translateY(-50%);
}
.jp-timeline-entry-head .jp-timestamp {
position: relative;
margin-right: 0;
}
/* Straight vertical tail dropping from the bottom-center of the timestamp
pill down to the bubble's top edge. */
.jp-timeline-entry-head .jp-timestamp::after {
content: '';
position: absolute;
left: 50%;
top: 100%;
width: 2px;
height: 10px;
background: var(--jp-tl-line);
transform: translateX(-50%);
pointer-events: none;