Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
1960 lines (1775 loc) · 56.8 KB
/
Copy pathstyles.css
File metadata and controls
1960 lines (1775 loc) · 56.8 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
/* LLM Wiki Plugin Styles */
/* Number input field width for settings */
.llm-wiki-number-input {
width: 100px;
}
/* 查询模态框样式 */
.llm-wiki-query-textarea {
width: 100%;
/* #756: the composer grows with the content. `field-sizing: content` is
Chromium 123+, Safari 26.2+, Baseline 2026 — Obsidian runs on Electron
(Chromium) so it is available. No JavaScript fallback: the plugin does
not run on Gecko, and the scrollHeight pattern costs a layout read on
every keystroke for a capability the browser has had since 2024.
`lh` is the line-height unit, so the three-line default tracks the
user's font rather than a pixel count that assumes one. */
field-sizing: content;
min-height: 3lh;
max-height: 20lh;
/* Room for the send button, which sits inside the field's bottom-right
* corner. `padding-inline-end` is 44px because the button is 32px plus its
* 8px inset plus a 4px gap — a textarea whose text runs under the button
* looks like a layout bug at the end of a long line. */
padding: 8px;
padding-inline-end: 44px;
/* The composer's own corner is the button's; the field only needs to be a
* canvas. */
padding-bottom: 10px;
font-family: var(--font-text);
font-size: 14px;
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
background: var(--background-primary);
color: var(--text-normal);
resize: none;
}
.llm-wiki-answer-modal {
max-height: 60vh;
overflow-y: auto;
padding: 10px;
font-family: var(--font-text);
line-height: 1.6;
}
/* Advanced LLM settings — collapsed by default, expanded when .llm-wiki-advanced-expanded is added */
.llm-wiki-advanced-settings {
display: none;
padding-inline-start: 16px;
border-inline-start: 2px solid var(--background-modifier-border);
margin-inline-start: 8px;
}
.llm-wiki-settings .llm-wiki-advanced-expanded {
display: block;
}
/* Cursor hint on the heading that toggles the advanced section */
.llm-wiki-settings .llm-wiki-advanced-toggle {
cursor: pointer;
}
/* 设置面板样式 */
.llm-wiki-settings .setting-item {
border-bottom: 1px solid var(--background-modifier-border);
padding: 12px 0;
}
.llm-wiki-settings .setting-item:last-child {
border-bottom: none;
}
/* 命令面板提示 */
.llm-wiki-notice {
padding: 10px 15px;
background: var(--background-modifier-success);
color: var(--text-on-accent);
border-radius: var(--radius-s);
margin: 10px 0;
}
/* Query View (right-docked side panel) */
.llm-wiki-query-view {
display: flex;
flex-direction: column;
height: 100%;
padding: 0;
overflow: hidden;
}
.llm-wiki-query-content {
height: 100%;
}
.llm-wiki-query-container {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.llm-wiki-query-header {
background: var(--background-secondary);
color: var(--text-normal);
padding: 10px 12px;
font-weight: 600;
font-size: 15px;
border-bottom: 1px solid var(--background-modifier-border);
flex-shrink: 0;
}
.llm-wiki-query-hint {
background: var(--background-secondary);
padding: 6px 12px;
font-size: 12px;
color: var(--text-muted);
border-bottom: 1px solid var(--background-modifier-border);
flex-shrink: 0;
}
.llm-wiki-query-history {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 12px 50px 12px 12px;
background: var(--background-primary);
}
.llm-wiki-query-input-container {
border-top: 1px solid var(--background-modifier-border);
padding: 12px;
background: var(--background-primary);
flex-shrink: 0;
}
/* The field and its button are one object, so they share one box. */
.llm-wiki-query-composer {
position: relative;
display: flex;
}
/* A round 32px button inside the field's bottom-right corner.
*
* `position: absolute` against `.llm-wiki-query-composer` rather than a flex
* row, because the button has to sit on top of the field's padding, not beside
* it — that overlap is what makes the input read as one control. The field's
* `padding-inline-end` reserves the space, so nothing is ever hidden.
*
* `inset-inline-end` and not `right`: in a right-to-left document the field's
* text starts at the right edge, so a physically-right button would sit on top
* of the first character. */
.llm-wiki-query-send-btn,
.llm-wiki-query-stop-btn {
position: absolute;
inset-block-end: 8px;
inset-inline-end: 8px;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
cursor: pointer;
border: none;
box-shadow: none;
border-radius: 50%;
background: var(--interactive-accent);
color: var(--text-on-accent);
}
.llm-wiki-query-send-btn:hover:not(:disabled) {
background: var(--interactive-accent-hover);
}
.llm-wiki-query-send-btn:disabled {
background: var(--background-modifier-border);
color: var(--text-faint);
cursor: not-allowed;
}
/* Stopping is not sending: the same position, a different colour and glyph, so
* the change is visible without reading. */
.llm-wiki-query-stop-btn {
background: var(--text-error);
}
.llm-wiki-query-stop-btn:hover {
filter: brightness(1.08);
}
.llm-wiki-query-send-btn:focus-visible,
.llm-wiki-query-stop-btn:focus-visible {
outline: 2px solid var(--interactive-accent);
outline-offset: 2px;
}
/* `currentColor` is what lets one glyph serve both modes. */
.llm-wiki-composer-glyph {
display: block;
}
/* History actions are ghost buttons: no fill, no border, muted text. They act
* on the conversation, not on the text in the box, and giving them the same
* weight as Send made three peers out of one primary action and two
* housekeeping ones. */
.llm-wiki-query-history-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
margin-top: 6px;
}
.llm-wiki-query-ghost-btn {
background: none;
border: none;
box-shadow: none;
padding: 4px 8px;
cursor: pointer;
color: var(--text-muted);
font-size: var(--font-ui-smaller);
border-radius: var(--radius-s);
white-space: normal;
text-align: start;
}
.llm-wiki-query-ghost-btn:hover {
background: var(--background-modifier-hover);
color: var(--text-normal);
}
.llm-wiki-query-count {
margin-top: 8px;
font-size: 11px;
color: var(--text-faint);
}
.llm-wiki-query-message-wrapper {
margin-bottom: 24px;
display: block;
position: relative;
}
.llm-wiki-query-message-label {
font-weight: 600;
font-size: 13px;
margin-bottom: 6px;
color: var(--text-muted);
}
.llm-wiki-query-message-body {
font-size: 14px;
line-height: 1.6;
user-select: text;
}
/* Markdown element styles — mirror Obsidian's native rendering */
.llm-wiki-query-message-body table {
border-collapse: collapse;
width: 100%;
margin: 12px 0;
}
.llm-wiki-query-message-body th,
.llm-wiki-query-message-body td {
border: 1px solid var(--table-border-color, var(--background-modifier-border));
padding: 6px 13px;
text-align: left;
}
.llm-wiki-query-message-body th {
background-color: var(--table-header-background, var(--background-secondary));
font-weight: 600;
}
.llm-wiki-query-message-body tr:nth-child(even) {
background-color: var(--table-row-alt-background, var(--background-secondary-alt));
}
.llm-wiki-query-message-body pre {
background: var(--code-background, var(--background-secondary));
padding: 12px 16px;
border-radius: var(--radius-s);
overflow-x: auto;
margin: 12px 0;
}
.llm-wiki-query-message-body code {
font-family: var(--font-monospace);
font-size: 0.9em;
padding: 0.1em 0.3em;
border-radius: var(--radius-s);
background: var(--code-background, var(--background-secondary));
}
.llm-wiki-query-message-body pre > code {
padding: 0;
background: none;
}
.llm-wiki-query-message-body blockquote {
border-inline-start: 3px solid var(--blockquote-border-color, var(--interactive-accent));
margin: 12px 0;
padding: 4px 16px;
color: var(--text-muted);
}
.llm-wiki-query-message-body ul,
.llm-wiki-query-message-body ol {
padding-inline-start: 24px;
}
.llm-wiki-query-message-body h1,
.llm-wiki-query-message-body h2,
.llm-wiki-query-message-body h3,
.llm-wiki-query-message-body h4 {
margin-top: 16px;
margin-bottom: 8px;
}
.llm-wiki-query-message-body hr {
border: none;
border-top: 1px solid var(--background-modifier-border);
margin: 16px 0;
}
/* Copy button */
.llm-wiki-query-copy-btn {
position: absolute;
top: 0;
right: 0;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
padding: 2px 8px;
font-size: 12px;
cursor: pointer;
opacity: 0;
transition: opacity 0.15s;
color: var(--text-muted);
}
.llm-wiki-query-message-wrapper:hover .llm-wiki-query-copy-btn,
.llm-wiki-query-response-live .llm-wiki-query-copy-btn {
opacity: 1;
}
.llm-wiki-query-copy-btn:hover {
color: var(--text-normal);
background: var(--background-modifier-hover);
}
/* Retrieval-arm label (persistent after response) */
.llm-wiki-query-retrieval-label {
margin-top: 6px;
padding: 2px 8px;
font-size: 11px;
color: var(--text-muted);
font-family: var(--font-monospace);
opacity: 0.85;
border-top: 1px solid var(--background-modifier-border-hover);
padding-top: 6px;
}
.llm-wiki-query-retrieval-label-clickable {
cursor: pointer;
}
.llm-wiki-query-retrieval-label-clickable:hover {
opacity: 1;
color: var(--text-normal);
}
.llm-wiki-query-retrieval-detail {
display: none;
margin-top: 4px;
padding: 6px 10px;
background: var(--background-secondary);
border-radius: var(--radius-s);
font-size: 11px;
color: var(--text-normal);
font-family: var(--font-monospace);
border-inline-start: 2px solid var(--interactive-accent);
}
.llm-wiki-query-retrieval-detail-open {
display: block;
}
.llm-wiki-query-retrieval-page {
padding: 2px 0;
line-height: 1.5;
}
.llm-wiki-query-message-user {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.llm-wiki-query-message-user .llm-wiki-query-message-label {
text-align: right;
}
.llm-wiki-query-message-user .llm-wiki-query-message-body {
background: var(--interactive-accent);
color: var(--text-on-accent, var(--text-normal));
padding: 12px 16px;
/* A speech bubble: three round corners and a tight one at the tail. Expressed
* with the theme's radii so a theme that squares its corners squares this too,
* instead of leaving one 18px bubble behind. */
border-radius: var(--radius-l) var(--radius-l) var(--radius-s) var(--radius-l);
max-width: 80%;
}
/* v1.23.2 (#221 Variant 2): vertical turn indicator on the right edge.
v1.25.11 PATCH follow-up v6: windowed dot stack.
The indicator is a WINDOW inside the history container — not a
full-height strip. top/bottom are percentages of the history
container's clientHeight (resolved to px in JS via
ResizeObserver on historyContainer — see turn-indicator.ts).
Dots in the indicator render in document order with a 14px
pitch (6px dot + 8px gap). Because the indicator participates
in history container's overflow scroll, dots roll past the
window edges as the user scrolls, which gives the ChatGPT/
Grok "where am I in the conversation" feel.
The window is ASYMMETRIC by design: bottom margin > top margin.
The history container's bottom half visually co-exists with the
input container below it, so the latest (most-read) turn lives
near the bottom. The empirical sweet spot the user discovered
(top:200px, bottom:400px on a ~600px viewport ≈ top:33%,
bottom:67%) places the window in the upper portion of the chat
panel where it's most readable, leaving the lower portion free
for the latest turn.
v4's translateY machinery remains as defence-in-depth; the
primary fade/clip is now handled by the window itself.
*/
.llm-wiki-turn-indicator {
position: absolute;
right: 36px;
/* Top offset as a percentage of historyContainer.clientHeight.
JS writes the px value via ResizeObserver so the visible
window stays at 25% of viewport (top) regardless of panel
resize. Matches the user's empirical test value (top:200px
on a ~800px viewport ≈ 25%). */
top: 25%;
/* Bottom offset as a percentage of historyContainer.clientHeight.
JS writes the px value via ResizeObserver. With top:25% and
bottom:50%, the indicator box spans the upper 25% of the
history container's visible region — matches the user's
empirical test value (bottom:400px on a ~800px viewport ≈
50%). Window height = viewport - top - bottom = 25%. */
bottom: 50%;
width: 14px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
gap: 8px;
padding: 0;
background: transparent;
border: 0;
z-index: 5;
pointer-events: auto;
/* Indicator stretches from top:20% to bottom:70% (≈ upper third of
viewport, slightly enlarged from the v6 33/67 baseline to fit more
non-faded dots — user's empirical fine-tune). Dots that translate
past the top/bottom edges bleed out of the indicator (since
`overflow: visible` is restored for tooltip support). Tooltips on
the LEFT of each dot (`right: calc(100% + 8px)`) still overflow
into the chat panel because the indicator's parent
(`.llm-wiki-query-history`) does NOT clip its descendants. */
overflow: visible;
/* Defence-in-depth: v4 translateY machinery still works. JS sets
--llm-wiki-translate-y on the indicator; each wrapper inherits it
via `transform: translateY(var(--llm-wiki-translate-y))`. */
--llm-wiki-translate-y: 0px;
}
.llm-wiki-turn-dot-wrapper {
/* Each wrapper sits at its natural position (idx * DOT_PITCH), then
the whole stack is translated by the JS-computed offset so the
active dot lands at the indicator centre. */
transform: translateY(var(--llm-wiki-translate-y, 0px));
transition: transform 0.2s ease;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.llm-wiki-turn-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--text-faint);
cursor: pointer;
flex: 0 0 auto;
transition: background 0.15s ease, transform 0.15s ease, opacity 0.2s ease;
}
/* Fade zones — applied via JS (toggle .llm-wiki-turn-dot-faded /
-mid-fade / -full). Keeping the rules here (instead of inline
opacity) keeps theming centralised and clears the Obsidian review
bot's no-static-styles-assignment rule. */
.llm-wiki-turn-dot-faded {
opacity: 0;
pointer-events: none;
}
.llm-wiki-turn-dot-mid-fade {
opacity: 0.5;
}
.llm-wiki-turn-dot-full {
opacity: 1;
}
.llm-wiki-turn-dot:hover {
background: var(--text-muted);
transform: scale(1.25);
}
.llm-wiki-turn-dot-active {
background: var(--interactive-accent);
transform: scale(1.5);
}
/* Tooltip visible on hover, positioned to the left of the dot */
.llm-wiki-turn-dot-tooltip {
display: none;
position: absolute;
right: calc(100% + 8px);
top: 50%;
transform: translateY(-50%);
background: var(--background-secondary-alt, var(--background-secondary));
color: var(--text-normal);
padding: 4px 10px;
border-radius: var(--radius-m);
font-size: 12px;
line-height: 1.4;
white-space: nowrap;
max-width: 240px;
overflow: hidden;
text-overflow: ellipsis;
pointer-events: none;
z-index: 10;
border: 1px solid var(--background-modifier-border);
}
.llm-wiki-turn-dot-wrapper:hover .llm-wiki-turn-dot-tooltip {
display: block;
}
/* v1.20.0: collapsible thinking-block panel inside the assistant answer.
Renders above the visible markdown, default collapsed (ChatGPT-style). */
.llm-wiki-query-thinking-block {
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
margin: 0 0 12px 0;
padding: 6px 12px;
font-size: 0.85em;
}
.llm-wiki-query-thinking-block > summary {
cursor: pointer;
color: var(--text-muted);
user-select: none;
list-style: none;
padding: 4px 0;
}
.llm-wiki-query-thinking-block > summary::-webkit-details-marker {
display: none;
}
.llm-wiki-query-thinking-block > summary::before {
content: '▸ ';
display: inline-block;
transition: transform 0.15s ease;
margin-inline-end: 4px;
}
.llm-wiki-query-thinking-block[open] > summary::before {
content: '▾ ';
}
.llm-wiki-query-thinking-content {
background: var(--background-primary);
border-radius: var(--radius-s);
padding: 8px 10px;
margin: 6px 0 4px 0;
font-family: var(--font-monospace);
font-size: 0.9em;
line-height: 1.5;
white-space: pre-wrap;
word-break: break-word;
color: var(--text-muted);
max-height: 240px;
overflow-y: auto;
}
/* Live response (currently generating) */
.llm-wiki-query-response-live {
margin-bottom: 16px;
}
.llm-wiki-query-response-live .llm-wiki-query-message-label {
color: var(--interactive-accent);
}
.llm-wiki-query-status {
font-size: 12px;
color: var(--text-muted);
margin-top: 8px;
}
/* v1.23.0 P2: Streaming plain-text preview — shown during accumulation,
replaced by full MarkdownRenderer output on completion.
Matches .llm-wiki-query-message-body typography for seamless transition. */
.llm-wiki-query-stream-text {
white-space: pre-wrap;
word-break: break-word;
font-size: var(--font-text-size);
line-height: var(--line-height);
color: var(--text-normal);
padding: 0;
}
/* Suggest Save Modal (post-query feedback) */
.llm-wiki-suggest-save-modal {
padding: 20px;
}
.llm-wiki-suggest-save-modal h3 {
margin-bottom: 12px;
}
.llm-wiki-suggest-save-modal p {
margin-bottom: 20px;
color: var(--text-muted);
}
.llm-wiki-suggest-save-buttons {
display: flex;
gap: 12px;
justify-content: flex-end;
}
/* Settings panel UI elements */
.llm-wiki-ollama-hint {
color: var(--text-muted);
margin: 10px 0;
font-size: 13px;
}
.llm-wiki-connection-status {
margin: 12px 0;
font-weight: 500;
}
.llm-wiki-status-ready {
color: var(--color-green);
}
.llm-wiki-status-notready {
color: var(--color-orange);
}
.llm-wiki-status-row {
display: flex;
gap: 24px;
flex-wrap: wrap;
align-items: center;
margin-bottom: 12px;
}
.llm-wiki-plugin-info {
margin: 16px 0 8px;
font-size: 13px;
color: var(--text-muted);
}
/* Settings infoboxes — v1.25.11 PATCH follow-up.
---
Obsidian does NOT ship a `.notice.warning` modifier class for
settings panels — that convention only exists inside callout
markdown (`> [!warning]`). Plugins that need an inline warning box
in a settings panel must roll their own CSS, as Templater, Tasks,
and Dataview do.
Previous attempt used `var(--background-modifier-warning)`. Obsidian
1.13.x repurposed that token as a saturated brand-orange swatch
(it is now used for `.notice-warning` inside markdown callouts, not
for inline panels), which left the text illegible against the new
fill. We now use the stable `--background-secondary` token for the
fill (this token has not changed semantics since Obsidian 1.0) and
`--color-orange` for the border + a bold text accent. This is the
same pattern used by the Dataview and Tasks plugins.
The blue infobox follows the same approach with `--interactive-accent`
for the border. Both infoboxes are rendered as plain block elements
so they occupy the full text width of the settings container. */
.llm-wiki-blue-infobox {
background: var(--background-secondary);
border: 1px solid var(--interactive-accent);
border-inline-start: 4px solid var(--interactive-accent);
border-radius: var(--radius-m);
padding: 8px 14px;
margin-bottom: 12px;
font-size: 12px;
line-height: 1.5;
color: var(--text-normal);
font-weight: 500;
}
.llm-wiki-yellow-infobox {
background: var(--background-secondary);
border: 1px solid var(--color-orange);
border-inline-start: 4px solid var(--color-orange);
border-radius: var(--radius-m);
padding: 10px 14px;
margin-bottom: 16px;
font-size: 13px;
line-height: 1.5;
color: var(--text-normal);
}
.llm-wiki-section-hint {
color: var(--text-muted);
font-size: 13px;
margin: 0 0 8px 0;
}
/* Ingestion status bar */
.llm-wiki-status-bar-hidden {
display: none;
}
/* Issue #85 v2: Tag chip input (GitHub Issue Labels style) */
.llm-wiki-tag-container {
display: flex;
flex-wrap: wrap;
align-items: flex-start; /* chips top-aligned; input on its own row */
align-content: flex-start;
gap: 4px;
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
padding: 4px 6px;
min-height: 32px;
width: 100%;
background: var(--background-primary);
/* No left-padding from the input's border-box; chips start at padding-left. */
box-sizing: border-box;
}
.llm-wiki-tag-container:focus-within {
border-color: var(--interactive-accent);
}
.llm-wiki-tag-container--duplicate {
animation: llm-wiki-tag-shake 0.4s ease;
}
@keyframes llm-wiki-tag-shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-4px); border-color: var(--color-orange); }
75% { transform: translateX(4px); border-color: var(--color-orange); }
}
.llm-wiki-tag-chip {
display: inline-flex;
align-items: center;
gap: 4px;
background: var(--background-modifier-hover);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-l);
padding: 2px 8px;
font-size: 12px;
color: var(--text-normal);
font-family: var(--font-text);
}
.llm-wiki-tag-chip-remove {
cursor: pointer;
color: var(--text-muted);
background: transparent;
border: none;
padding: 0 2px;
font-size: 14px;
line-height: 1;
}
.llm-wiki-tag-chip-remove:hover {
color: var(--color-orange);
}
.llm-wiki-tag-input {
border: none;
outline: none;
/* Force the input onto its own row below the chips. flex-basis:100%
makes it span the full container width regardless of how many
chips exist; flex-shrink:1 lets it shrink when the container is
narrow (Obsidian narrow settings pane). */
flex: 0 0 100%;
order: 99; /* always last, after all chips */
min-height: 22px;
background: transparent;
color: var(--text-normal);
font-family: var(--font-text);
font-size: 13px;
}
.llm-wiki-tag-sr-live {
position: absolute;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
/* Issue #85 v4: Default-reference fallback tags. When the persisted
custom CSV is empty, the chip input materializes the default
vocabulary (e.g. person/organization/…) as fully-editable chips —
visually identical to user-added ones, with a × remove button.
They are an editable baseline, not a read-only preview. */
/* Operation History Panel: custom date range inputs */
.llm-wiki-custom-range {
display: none;
gap: 6px;
align-items: center;
}
/* Chain selector to override base display:none without the specificity hack.
Obsidian review bot flags inline specificity overrides; higher specificity
(2 classes) wins over the single-class base rule regardless of CSS load order. */
.llm-wiki-custom-range.llm-wiki-custom-range-visible {
display: flex;
}
/* Date input: calendar icon left-aligned, text right-aligned */
.llm-wiki-date-input {
padding: 4px 8px 4px 28px;
border-radius: var(--radius-s);
border: 1px solid var(--background-modifier-border);
min-width: 120px;
text-align: right;
}
/* Ensure calendar icon doesn't overlap text */
.llm-wiki-date-input::-webkit-calendar-picker-indicator {
position: absolute;
left: 8px;
cursor: pointer;
}
/* v1.22.0 #97: Schema diff Modal — IDE-style dual-pane preview. */
.llm-wiki-schema-diff-modal {
/* The Modal element itself is a child of the Obsidian modal container.
* We size the inner content here, but Obsidian constrains the
* .modal-container max-width. We override the container so the
* diff has enough horizontal space for two side-by-side panes. */
min-width: 720px;
}
/* Obsidian's default modal width is too narrow for a side-by-side
* diff. We target the modal-container via the .llm-wiki-schema-diff-modal
* class added to BOTH modalEl (outer .modal) and contentEl (inner content)
* in onOpen. Direct class selector avoids :has() (Obsidian review warning:
* :has causes broad selector invalidation → perf cost). */
.modal.llm-wiki-schema-diff-modal {
width: min(90vw, 1100px);
}
.llm-wiki-schema-diff-panes {
display: flex;
gap: 8px;
max-height: 50vh;
overflow: auto;
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
/* Outer container scrolls. The background lives here so the
* scrolled-into-view rows are filled all the way down (not just
* the first 50vh worth, leaving grey gaps when content is short).
* The pane-level background is set to "transparent" so it does
* not double-fill on top of the outer. */
background: var(--background-secondary);
}
.llm-wiki-schema-diff-pane {
flex: 1;
font-family: var(--font-monospace);
font-size: 12px;
line-height: 1.4;
padding: 8px;
/* Transparent so the outer's background shows through. The
* .llm-wiki-schema-diff-row-highlight overlay paints red on
* individual rows. */
background: transparent;
}
.llm-wiki-schema-diff-row {
display: flex;
align-items: flex-start;
}
.llm-wiki-schema-diff-row-del {
/* Red-tinted background + red left border for the LEFT column
* (line removed from current schema). Text inherits pane color
* so contrast is preserved in both light and dark themes. */
background: rgba(var(--color-red-rgb, 255, 0, 0), 0.12);
border-inline-start: 3px solid var(--text-error);
}
.llm-wiki-schema-diff-row-add {
/* Green-tinted background + green left border for the RIGHT column
* (line added by the LLM). Text inherits pane color. */
background: rgba(var(--color-green-rgb, 0, 255, 0), 0.12);
border-inline-start: 3px solid var(--text-success);
}
.llm-wiki-schema-diff-gutter {
flex: 0 0 40px;
color: var(--text-faint);
text-align: right;
padding-inline-end: 8px;
user-select: none;
}
.llm-wiki-schema-diff-content {
flex: 1;
white-space: pre-wrap;
word-break: break-all;
}
/* Content highlight — left column (del) gets a red-toned background tint,
* right column (add) gets a green-toned background tint. Text color is
* inherited from the parent (no override — keeps contrast readable in
* both light and dark themes). */
/* Left column: deletion (line removed from current schema) */
.llm-wiki-schema-diff-pane-left .llm-wiki-schema-diff-content-highlight {
background: rgba(var(--color-red-rgb, 255, 0, 0), 0.08);
}
/* Right column: addition (line added by the LLM) */
.llm-wiki-schema-diff-pane-right .llm-wiki-schema-diff-content-highlight {
background: rgba(var(--color-green-rgb, 0, 255, 0), 0.08);
}
.llm-wiki-schema-diff-summary {
color: var(--text-muted);
margin: 0 0 8px 0;
}
/* v1.22.0 #97: LLM's rationale — shown before the diff in BOTH empty
* and has-changes mode so the user can read the "why" before deciding. */
.llm-wiki-schema-diff-rationale {
border-inline-start: 3px solid var(--text-accent);
background: var(--background-secondary);
padding: 10px 12px;
border-radius: var(--radius-s);
margin: 0 0 12px 0;
}
.llm-wiki-schema-diff-rationale-text {
margin: 0;
color: var(--text-normal);
white-space: pre-wrap;
font-size: 0.9em;
}
.llm-wiki-schema-diff-regen-section {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--background-modifier-border);
}
.llm-wiki-schema-diff-regen-label {
margin: 0 0 4px 0;
font-weight: bold;
}
.llm-wiki-schema-diff-regen-textarea {
width: 100%;
min-height: 50px;
font-family: inherit;
font-size: 12px;
}
.llm-wiki-schema-diff-btn-row {
display: flex;
gap: 8px;
justify-content: flex-end;
margin-top: 12px;
}
.llm-wiki-schema-diff-empty-banner {
background: var(--background-modifier-border);
border-inline-start: 3px solid var(--text-accent);
padding: 10px 12px;
border-radius: var(--radius-s);
margin: 0 0 12px 0;
}
.llm-wiki-schema-diff-empty-title {
font-weight: bold;
margin: 0 0 4px 0;
}