Repository navigation
Expand file tree
/
Copy paththeme.css
More file actions
2512 lines (2217 loc) · 93.7 KB
/
Copy paththeme.css
File metadata and controls
2512 lines (2217 loc) · 93.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
/* ============================================================================
* Liquid — a Liquid Glass theme for Obsidian
* v1.1.1 — 2026-04-29
*
* No external network requests. The theme uses local-or-system fonts only
* (Inter / JetBrains Mono first in the stack if installed, SF / Segoe UI /
* Cascadia as system fallbacks). Drop the matching font snippet from the
* README "Swap the typeface" section if you want to override.
*
* ────────────────────────────────────────────────────────────────────────
* Internal iteration log (kept for reference, not a public changelog):
*
* v1.1.35 — 2026-04-29 (Liquid +polish #35: tabs simplified — removed the
* "weird light" (catchlight + side hairlines that were creating
* edge artifacts on hover). Softened the squared bottom by
* switching from top-only-rounded to all-corners-rounded at
* radius-s (6px). Hover = tint + 1px accent foot. Active = tint
* + soft blur + 2px accent foot. Pure, no extra visual noise.)
*
* v1.1.36 — 2026-04-29 (audit P3 cleanup: rolled up token drift. New tokens
* in :root — accent-fill-soft/mid/strong (10/16/22%),
* accent-ring-soft/mid/strong (18/22/45%), accent-foot (30%),
* focus-ring (55%), tag-fill/ring/fill-hover (14/18/20%),
* shadow-thumb/soft/ring (30/18/10% black-tint), scrim (40%).
* Replaced literal hsla in tabs, file-explorer active row, chrome
* icons, suggestion items, callouts, tags, frontmatter pills,
* search focus, focus rings, modal scrim, toggle thumb shadows.
* One source of truth per intensity.)
*
* v1.1.37 — 2026-04-29 (next-actions sweep — colorize + clarify + harden:
* (1) syntax highlighting palette for Prism + CodeMirror —
* forest-friendly: comment muted gray, keyword coral,
* string sage, number amber, function cyan, class purple,
* tag coral, attr gold, punctuation muted;
* (2) --text-highlight-bg set to warm amber (40% dark / 30% light);
* (3) light-mode glass tuned — tint opacity 0.62→0.78, highlight
* 0.55→0.30, shadow opacities bumped for elevation;
* (4) hover popovers (wikilink preview) now glass cards;
* (5) drag indicator + drop targets get accent glass treatment;
* (6) empty states styled (faint, italic, centered);
* (7) ellipsis truncation policy on tree items / tab titles /
* frontmatter values;
* (8) CodeMirror selection forced to --text-selection;
* (9) Inter + JetBrains Mono first in --font-text / --font-monospace
* stacks; system fallbacks for users without those fonts
* installed locally. No external @import — Obsidian theme
* guidelines forbid external network requests.)
*
* For full effect, enable: Settings → Appearance → Translucent window.
* Without translucent window, glass renders as semi-opaque floating cards
* over the editor canvas (still good, just not blurred over wallpaper).
*
* Design principles:
* 1. Forest green accent (hue 146°) — refined saturation, no highlighter feel
* 2. Tight-but-breathable density (28-30px row height in file tree)
* 3. Single source of truth for spacing + glass (CSS variables)
* 4. macOS-respectful — don't paint over traffic lights, lean into vibrancy
* 5. Honest hierarchy: active > hover > default; quiet by default
* 6. Glass IS the system (Tahoe variant) — backdrop blur + saturate as the
* canonical chrome material. NOT decoration; applied uniformly to every
* floating panel. (Other AI tells still banned: no gradient text,
* no card grids, no big-number metrics, no side-stripes >1px.)
* 7. Real motion: 120-200ms ease-out (no overshoot, no elastic)
* 8. Absolute-positioned chevrons (Ono-Sendai pattern) so files+folders
* share the same padding without per-row-type overrides
* 9. Tinted neutrals only — never pure #fff or #000
* 10. WCAG AA contrast on all interactive accents (≥4.5:1 with white text)
* 11. Generous corner radii (continuous corners feel) — 14-18px on panels,
* 10-12px on cards, 6-8px on buttons. Tahoe geometry.
* 12. Inner top-edge highlight + outer drop shadow on every floating panel —
* the catchlight + elevation pair that makes glass read as a layer.
*
* Folder structure:
* 1. CSS variables (light + dark + glass tokens)
* 2. Base typography
* 3. Title bar + window chrome
* 4. Tab bar (floating glass)
* 5. Sidebar / ribbon icons (translucent strip)
* 6. File explorer (Ono-Sendai pattern)
* 7. Sidebar panels (glass cards: search, bookmarks, graph filter sections)
* 8. Toggles (Liquid pill)
* 9. Buttons (Liquid CTA + glass secondary)
* 10. Markdown content (headings, code, tables, blockquotes, callouts — glass)
* 11. Frontmatter properties (glass card)
* 12. Tags + tasks (Liquid pills)
* 13. Selection + caret
* 14. Status bar + vault switcher (translucent)
* 15. Modals + popovers + tooltips (strong glass + vibrancy)
* 16. Graph view (color groups)
* 17. Polish surfaces (a-h):
* a. Scrollbars (thin, macOS-style)
* b. Resize handles (invisible until hover)
* c. Notice toasts (glass capsule)
* d. Vault switcher (Liquid capsule)
* e. Tables (glass header + refined dividers)
* f. Internal embeds / transclusions (glass card)
* g. bimbiOS property values (Liquid pill)
* h. List markers
* 18. Sidebars + .is-translucent enhancements
* 19. Print
* 20. Reduced motion + reduced transparency
* ============================================================================ */
/* ============================================================================
* 1. CSS variables
* ============================================================================ */
:root {
/* Spacing tokens — Tahoe geometry: continuous-feeling corners */
--bb-radius-xs: 4px;
--bb-radius-s: 6px;
--bb-radius-m: 10px;
--bb-radius-l: 16px;
--bb-radius-xl: 22px;
/* Forest green accent — hue 146° */
--bb-accent-h: 146;
/* Density */
--bb-row-padding-y: 5px;
--bb-row-padding-x: 10px;
--bb-row-padding-l-with-chevron: 18px;
/* Motion */
--bb-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
--bb-duration-fast: 120ms;
--bb-duration-base: 180ms;
--bb-duration-slow: 260ms;
/* Glass — Tahoe Liquid material.
* Strength sized for the surface: light blur on inline pills, strong on modals. */
--bb-glass-blur-soft: 12px;
--bb-glass-blur-base: 24px;
--bb-glass-blur-strong: 40px;
--bb-glass-saturate: 180%;
/* Active-state accent intensities — single source of truth for pills,
* focus rings, file-active rows, callout fills, etc. */
--bb-accent-fill-soft: hsla(var(--bb-accent-h), 55%, 50%, 0.10); /* hover hint */
--bb-accent-fill-mid: hsla(var(--bb-accent-h), 55%, 50%, 0.16); /* active pill bg */
--bb-accent-fill-strong: hsla(var(--bb-accent-h), 55%, 50%, 0.22); /* active hover bg */
--bb-accent-ring-soft: hsla(var(--bb-accent-h), 55%, 50%, 0.18); /* subtle accent ring */
--bb-accent-ring-mid: hsla(var(--bb-accent-h), 55%, 50%, 0.22); /* active pill ring */
--bb-accent-ring-strong: hsla(var(--bb-accent-h), 55%, 50%, 0.45); /* focus ring */
--bb-accent-foot: hsla(var(--bb-accent-h), 50%, 50%, 0.30); /* tab hover foot */
--bb-focus-ring: hsla(var(--bb-accent-h), 55%, 50%, 0.55); /* keyboard focus */
--bb-tag-fill: hsla(var(--bb-accent-h), 55%, 50%, 0.14);
--bb-tag-ring: hsla(var(--bb-accent-h), 55%, 50%, 0.18);
--bb-tag-fill-hover: hsla(var(--bb-accent-h), 55%, 50%, 0.20);
/* Shadow primitives — single source of truth for thumb / button drop shadows */
--bb-shadow-thumb: hsla(220, 15%, 5%, 0.30);
--bb-shadow-thumb-soft: hsla(220, 15%, 5%, 0.18);
--bb-shadow-thumb-ring: hsla(220, 15%, 5%, 0.10);
--bb-scrim: hsla(220, 15%, 5%, 0.40); /* modal backdrop tint */
}
/* ── Light mode ───────────────────────────────────────────── */
.theme-light {
/* Backgrounds — slight warm tint, never pure white */
--background-primary: hsl(40, 25%, 99%);
--background-primary-alt: hsl(40, 20%, 96%);
--background-secondary: hsl(40, 18%, 96%);
--background-secondary-alt: hsl(40, 14%, 92%);
/* Borders — neutral, never accent */
--background-modifier-border: hsla(0, 0%, 0%, 0.10);
--background-modifier-border-hover: hsla(0, 0%, 0%, 0.16);
--background-modifier-border-focus: hsla(var(--bb-accent-h), 50%, 40%, 0.40); /* soft, not vivid */
--background-modifier-hover: hsla(0, 0%, 0%, 0.05);
--background-modifier-active-hover: hsla(var(--bb-accent-h), 50%, 38%, 0.10);
/* Text */
--text-normal: hsl(220, 15%, 18%);
--text-muted: hsl(220, 10%, 45%);
--text-faint: hsl(220, 8%, 60%);
--text-on-accent: hsl(146, 30%, 98%); /* tinted near-white, not pure #fff */
/* Accent palette — refined, NOT vivid */
--color-accent: hsl(var(--bb-accent-h), 55%, 38%);
--color-accent-hsl: var(--bb-accent-h), 55%, 38%;
--interactive-accent: hsl(var(--bb-accent-h), 55%, 38%);
--interactive-accent-hover: hsl(var(--bb-accent-h), 60%, 32%);
--text-accent: hsl(var(--bb-accent-h), 60%, 32%);
--text-accent-hover: hsl(var(--bb-accent-h), 65%, 26%);
/* Accent washes */
--bb-accent-soft: hsla(var(--bb-accent-h), 55%, 38%, 0.08);
--bb-accent-mid: hsla(var(--bb-accent-h), 55%, 38%, 0.18);
--bb-accent-base: hsl(var(--bb-accent-h), 55%, 38%);
--bb-accent-tint: hsl(var(--bb-accent-h), 50%, 50%);
/* Code */
--code-background: hsl(40, 18%, 95%);
--code-normal: hsl(220, 15%, 18%);
/* Caret + selection */
--caret-color: var(--bb-accent-base);
--text-selection: hsla(var(--bb-accent-h), 55%, 50%, 0.30);
/* Highlight — warm amber, soft */
--text-highlight-bg: hsla(40, 75%, 60%, 0.40);
/* Glass — light material (tuned 2026-04-29 audit: bumped tint opacity
* 0.62 → 0.78, dropped highlight 0.55 → 0.30 to avoid over-blanching) */
--bb-glass-tint: hsla(40, 30%, 99%, 0.78);
--bb-glass-tint-strong: hsla(40, 30%, 99%, 0.90);
--bb-glass-tint-soft: hsla(40, 25%, 98%, 0.62);
--bb-glass-highlight: hsla(0, 0%, 100%, 0.30);
--bb-glass-edge: hsla(0, 0%, 0%, 0.08);
--bb-glass-shadow: 0 1px 2px hsla(220, 15%, 20%, 0.08),
0 8px 24px hsla(220, 15%, 20%, 0.12),
0 24px 48px hsla(220, 15%, 20%, 0.10);
--bb-glass-shadow-lift: 0 2px 4px hsla(220, 15%, 20%, 0.12),
0 16px 40px hsla(220, 15%, 20%, 0.18),
0 40px 80px hsla(220, 15%, 20%, 0.14);
/* Syntax highlighting palette (light mode) — forest-green-friendly,
* tinted neutrals + warm accents for visual differentiation */
--bb-syntax-comment: hsl(220, 8%, 50%);
--bb-syntax-keyword: hsl(15, 70%, 40%); /* warm coral — keyword/builtin/operator */
--bb-syntax-string: hsl(146, 60%, 30%); /* sage — strings/regex/attr-value */
--bb-syntax-number: hsl(35, 75%, 35%); /* amber — numbers/booleans */
--bb-syntax-function: hsl(190, 55%, 35%); /* cyan — functions */
--bb-syntax-class: hsl(280, 45%, 40%); /* purple — class names/types */
--bb-syntax-tag: hsl(15, 65%, 40%); /* coral — HTML tags */
--bb-syntax-attr: hsl(35, 65%, 38%); /* gold — attr names */
--bb-syntax-property: hsl(190, 55%, 35%); /* CSS properties */
--bb-syntax-selector: hsl(280, 45%, 40%); /* CSS selectors */
--bb-syntax-punctuation: hsl(220, 10%, 45%);
}
/* ── Dark mode ────────────────────────────────────────────── */
.theme-dark {
/* Backgrounds — slight blue-green tint, never pure black */
--background-primary: hsl(220, 12%, 11%);
--background-primary-alt: hsl(220, 10%, 14%);
--background-secondary: hsl(220, 12%, 9%);
--background-secondary-alt: hsl(220, 10%, 7%);
/* Borders */
--background-modifier-border: hsla(0, 0%, 100%, 0.08);
--background-modifier-border-hover: hsla(0, 0%, 100%, 0.14);
--background-modifier-border-focus: hsla(var(--bb-accent-h), 50%, 55%, 0.45); /* soft, not vivid */
--background-modifier-hover: hsla(0, 0%, 100%, 0.05);
--background-modifier-active-hover: hsla(var(--bb-accent-h), 50%, 55%, 0.16);
/* Text */
--text-normal: hsl(220, 10%, 88%);
--text-muted: hsl(220, 8%, 60%);
--text-faint: hsl(220, 6%, 45%);
--text-on-accent: hsl(146, 30%, 98%); /* tinted near-white, not pure #fff */
/* Accent palette — calibrated for ≥4.5:1 contrast on white text */
--color-accent: hsl(var(--bb-accent-h), 55%, 42%);
--color-accent-hsl: var(--bb-accent-h), 55%, 42%;
--interactive-accent: hsl(var(--bb-accent-h), 55%, 42%);
--interactive-accent-hover: hsl(var(--bb-accent-h), 60%, 50%);
--text-accent: hsl(var(--bb-accent-h), 50%, 60%); /* lighter — on dark bg, not white */
--text-accent-hover: hsl(var(--bb-accent-h), 55%, 70%);
/* Accent washes — keep base in lockstep with --interactive-accent for consistency */
--bb-accent-soft: hsla(var(--bb-accent-h), 55%, 50%, 0.10);
--bb-accent-mid: hsla(var(--bb-accent-h), 55%, 50%, 0.20);
--bb-accent-base: hsl(var(--bb-accent-h), 55%, 42%);
--bb-accent-tint: hsl(var(--bb-accent-h), 50%, 60%);
/* Code */
--code-background: hsla(0, 0%, 100%, 0.04);
--code-normal: hsl(220, 10%, 88%);
/* Caret + selection */
--caret-color: hsl(var(--bb-accent-h), 50%, 60%);
--text-selection: hsla(var(--bb-accent-h), 50%, 50%, 0.30);
/* Highlight — warm amber, soft */
--text-highlight-bg: hsla(40, 70%, 55%, 0.30);
/* Glass — dark material */
--bb-glass-tint: hsla(220, 14%, 13%, 0.62);
--bb-glass-tint-strong: hsla(220, 14%, 13%, 0.78);
--bb-glass-tint-soft: hsla(220, 12%, 14%, 0.45);
--bb-glass-highlight: hsla(0, 0%, 100%, 0.08);
--bb-glass-edge: hsla(0, 0%, 100%, 0.05);
--bb-glass-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.30),
0 8px 24px hsla(0, 0%, 0%, 0.40),
0 24px 48px hsla(0, 0%, 0%, 0.30);
--bb-glass-shadow-lift: 0 2px 4px hsla(0, 0%, 0%, 0.40),
0 16px 40px hsla(0, 0%, 0%, 0.55),
0 40px 80px hsla(0, 0%, 0%, 0.40);
/* Syntax highlighting palette (dark mode) — calmer lightness so code
* doesn't shout. Same hue family as light mode for cross-mode consistency. */
--bb-syntax-comment: hsl(220, 8%, 50%);
--bb-syntax-keyword: hsl(15, 60%, 65%); /* warm coral */
--bb-syntax-string: hsl(146, 45%, 60%); /* sage */
--bb-syntax-number: hsl(35, 65%, 65%); /* amber */
--bb-syntax-function: hsl(190, 50%, 65%); /* cyan */
--bb-syntax-class: hsl(280, 40%, 70%); /* purple */
--bb-syntax-tag: hsl(15, 55%, 65%);
--bb-syntax-attr: hsl(35, 55%, 70%);
--bb-syntax-property: hsl(190, 50%, 65%);
--bb-syntax-selector: hsl(280, 40%, 70%);
--bb-syntax-punctuation: hsl(220, 8%, 60%);
}
/* Kill the cascade trap: NEVER let hover/focus borders inherit accent */
body {
--accent-border-width: 0px;
}
/* ============================================================================
* 2. Base typography
* ============================================================================ */
body {
--font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
--font-monospace: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Monaco', monospace;
font-family: var(--font-text);
font-size: 14px;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ============================================================================
* 3. Title bar + window chrome — macOS-respectful
* ============================================================================ */
.titlebar,
.titlebar-button-container,
.titlebar-button,
.titlebar-inner,
.window-controls,
.window-controls-button {
border: none !important;
outline: none !important;
box-shadow: none !important;
background: transparent !important;
}
/* Title bar nav arrows */
.titlebar .clickable-icon {
border: none !important;
outline: none !important;
}
/* ============================================================================
* 4. Tab bar
* ============================================================================ */
.workspace-tab-header-container {
border: none !important;
background: transparent !important;
padding: 6px 6px 0 6px;
}
/* Tab — softly rounded all corners (less squared, more refined).
* Box-shadow inset bottom stripes follow the radius cleanly. */
.workspace-tab-header {
border: none !important;
outline: none !important;
border-radius: var(--bb-radius-s) !important;
background: transparent !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
box-shadow: none !important;
padding: 0 14px;
height: 32px;
margin: 0 2px 0 0;
transition: background var(--bb-duration-base) var(--bb-ease),
box-shadow var(--bb-duration-base) var(--bb-ease);
}
/* Hover: just a soft tint — no catchlight, no side hairlines, no weird
* edge lighting. Bottom 1px accent foot to preview activation. */
.workspace-tab-header:not(.is-active):hover {
background: var(--bb-glass-tint-soft) !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
box-shadow:
inset 0 -1px 0 0 var(--bb-accent-foot) !important;
}
/* Active tab — clean glass + 2px accent bottom stripe.
* No top catchlight, no side hairlines (simpler, less visual noise). */
.workspace-tab-header.is-active {
background: var(--bb-glass-tint) !important;
backdrop-filter: blur(var(--bb-glass-blur-soft)) saturate(150%);
-webkit-backdrop-filter: blur(var(--bb-glass-blur-soft)) saturate(150%);
box-shadow:
inset 0 -2px 0 0 var(--bb-accent-base) !important;
}
/* Active tab title gets a subtle accent dot inside, replaces the stripe */
.workspace-tab-header.is-active .workspace-tab-header-inner-title {
color: var(--text-normal);
font-weight: 500;
}
/* Close X — hidden by default; revealed only when the parent tab is hovered or
* active. Round shape, subtle hover bg, no catchlight (don't fight the tab). */
.workspace-tab-header-inner-close-button {
border: none !important;
outline: none !important;
opacity: 0 !important;
width: 18px !important;
height: 18px !important;
border-radius: 999px !important;
background: transparent !important;
box-shadow: none !important;
transition: background var(--bb-duration-fast) var(--bb-ease),
opacity var(--bb-duration-fast) var(--bb-ease);
}
/* Default: invisible AND non-interactive (so it doesn't even reserve hit area) */
.workspace-tab-header:not(:hover):not(.is-active) .workspace-tab-header-inner-close-button {
opacity: 0 !important;
pointer-events: none !important;
visibility: hidden !important;
}
.workspace-tab-header:hover .workspace-tab-header-inner-close-button,
.workspace-tab-header.is-active .workspace-tab-header-inner-close-button {
opacity: 0.55 !important;
visibility: visible !important;
pointer-events: auto !important;
}
.workspace-tab-header-inner-close-button:hover {
opacity: 1 !important;
background: hsla(0, 0%, 100%, 0.10) !important;
color: var(--text-normal) !important;
box-shadow: none !important;
}
.theme-light .workspace-tab-header-inner-close-button:hover {
background: hsla(0, 0%, 0%, 0.08) !important;
}
/* Tab title color — readable on hover, full strength on active.
* Inactive tabs only mute slightly; hovered tabs go full text-normal. */
.workspace-tab-header:not(.is-active) .workspace-tab-header-inner-title {
color: var(--text-muted);
transition: color var(--bb-duration-fast) var(--bb-ease);
}
.workspace-tab-header:not(.is-active):hover .workspace-tab-header-inner-title {
color: var(--text-normal);
}
.workspace-tab-header.is-active .workspace-tab-header-inner-title {
color: var(--text-normal);
}
/* Kill the vertical divider between tabs — doesn't fit the floating pill aesthetic */
.workspace-tab-header,
.workspace-tab-header::before,
.workspace-tab-header::after {
border-right: none !important;
border-left: none !important;
}
.workspace-tab-header-container-inner > .workspace-tab-header + .workspace-tab-header {
border-left: none !important;
margin-left: 2px !important;
}
.workspace-tab-header-new-tab,
.mod-new-tab-button {
border: none !important;
outline: none !important;
}
/* ============================================================================
* 5. Sidebar / ribbon icons
* ============================================================================ */
/* Ribbon — translucent vertical strip with vibrancy */
.workspace-ribbon {
background: var(--bb-glass-tint-soft) !important;
backdrop-filter: blur(var(--bb-glass-blur-base)) saturate(var(--bb-glass-saturate));
-webkit-backdrop-filter: blur(var(--bb-glass-blur-base)) saturate(var(--bb-glass-saturate));
border: none !important;
box-shadow: inset -1px 0 0 var(--bb-glass-edge) !important;
}
.workspace-ribbon .side-dock-ribbon-action,
.clickable-icon,
.view-action,
.workspace-drawer-vault-switcher,
.status-bar-item .clickable-icon {
border: none !important;
outline: none !important;
box-shadow: none !important;
background-color: transparent;
border-radius: var(--bb-radius-m);
transition: background var(--bb-duration-fast) var(--bb-ease),
color var(--bb-duration-fast) var(--bb-ease);
}
.clickable-icon:hover,
.workspace-ribbon .side-dock-ribbon-action:hover,
.view-action:hover,
.workspace-drawer-vault-switcher:hover {
background: var(--bb-glass-tint-soft) !important;
box-shadow: inset 0 1px 0 var(--bb-glass-highlight) !important;
}
/* Real keyboard focus only */
.clickable-icon:focus-visible,
.view-action:focus-visible,
.workspace-ribbon .side-dock-ribbon-action:focus-visible {
outline: 2px solid var(--bb-focus-ring) !important;
outline-offset: 1px !important;
}
/* Active state (selected sidebar tab) — Liquid accent pill */
.workspace-ribbon .side-dock-ribbon-action.is-active,
.clickable-icon.is-active {
background: var(--bb-accent-fill-mid) !important;
color: var(--text-accent) !important;
box-shadow:
inset 0 1px 0 hsla(0, 0%, 100%, 0.10),
inset 0 0 0 1px var(--bb-accent-ring-mid) !important;
}
.workspace-ribbon .side-dock-ribbon-action.is-active:hover,
.clickable-icon.is-active:hover {
background: var(--bb-accent-fill-strong) !important;
}
/* ============================================================================
* 6. File explorer — Ono-Sendai pattern (absolute chevron)
*
* Why this works:
* - Files AND folders share padding-left: 32px
* - Chevron is position:absolute at left:9px → occupies x=9..23
* - Text starts at x=32 → 9px buffer to chevron
* - No flex flow conflicts → no metric drift between files vs folders
* ============================================================================ */
.workspace-leaf-content[data-type="file-explorer"] .nav-file-title,
.workspace-leaf-content[data-type="file-explorer"] .nav-folder-title,
.workspace-leaf-content[data-type="file-explorer"] .tree-item-self.nav-file-title,
.workspace-leaf-content[data-type="file-explorer"] .tree-item-self.nav-folder-title {
padding: var(--bb-row-padding-y) var(--bb-row-padding-x) var(--bb-row-padding-y) var(--bb-row-padding-l-with-chevron) !important;
padding-inline-start: var(--bb-row-padding-l-with-chevron) !important;
font-size: 13px !important;
line-height: 1.5 !important;
position: relative !important;
border-radius: var(--bb-radius-s) !important;
}
/* Chevron — absolute-positioned in the row's left padding zone.
* Tightened to fit the new Obsidian inline padding-inline-start: 18px
* on top-level folders (was 32). Chevron at left:2, width:12 occupies
* x=2-14, leaving 4px gap to text at x=18. */
.workspace-leaf-content[data-type="file-explorer"] .nav-folder-collapse-indicator {
position: absolute !important;
left: 2px !important;
top: 50% !important;
transform: translateY(-50%) !important;
width: 12px !important;
height: 12px !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
margin: 0 !important;
padding: 0 !important;
color: var(--text-muted) !important;
}
.workspace-leaf-content[data-type="file-explorer"] .nav-folder.is-collapsed .nav-folder-collapse-indicator {
transform: translateY(-50%) rotate(-90deg) !important;
}
.workspace-leaf-content[data-type="file-explorer"] .nav-folder-collapse-indicator svg {
width: 10px !important;
height: 10px !important;
margin: 0 !important;
}
/* Reset any pseudo-elements */
.workspace-leaf-content[data-type="file-explorer"] .nav-file-title::before,
.workspace-leaf-content[data-type="file-explorer"] .nav-file-title::after,
.workspace-leaf-content[data-type="file-explorer"] .nav-folder-title::before,
.workspace-leaf-content[data-type="file-explorer"] .nav-folder-title::after {
content: none !important;
display: none !important;
}
/* Row-to-row spacing */
.workspace-leaf-content[data-type="file-explorer"] .nav-file,
.workspace-leaf-content[data-type="file-explorer"] .nav-folder {
margin: 0 !important;
}
.workspace-leaf-content[data-type="file-explorer"] .tree-item-self {
min-height: unset !important;
}
/* Hover — soft glass tint (no full blur — perf on a long file list) */
.workspace-leaf-content[data-type="file-explorer"] .tree-item-self:hover {
background: var(--bb-glass-tint-soft) !important;
box-shadow: inset 0 1px 0 var(--bb-glass-highlight) !important;
}
/* Active (selected file) — vibrant accent glass with inner catchlight + ring */
.workspace-leaf-content[data-type="file-explorer"] .tree-item-self.is-active {
background: var(--bb-accent-fill-mid) !important;
box-shadow:
inset 0 1px 0 hsla(0, 0%, 100%, 0.12),
inset 0 0 0 1px var(--bb-accent-ring-mid) !important;
color: var(--text-normal) !important;
}
.workspace-leaf-content[data-type="file-explorer"] .tree-item-self.is-active .nav-file-title-content,
.workspace-leaf-content[data-type="file-explorer"] .tree-item-self.is-active .nav-folder-title-content {
color: var(--text-accent) !important;
font-weight: 600;
}
/* Typographic hierarchy: folders BOLD, files lighter + slightly muted.
* Adds clear distinction between containers (folders) and content (files)
* without relying on icon space. */
.workspace-leaf-content[data-type="file-explorer"] .nav-folder-title-content {
font-weight: 600;
color: var(--text-normal);
}
.workspace-leaf-content[data-type="file-explorer"] .nav-file-title-content {
font-weight: 400;
color: var(--text-muted);
}
/* On hover, lift the file color to text-normal so the eye can read it
* before clicking */
.workspace-leaf-content[data-type="file-explorer"] .tree-item-self:hover .nav-file-title-content {
color: var(--text-normal);
}
/* Nested children — indent + subtle guide line */
.workspace-leaf-content[data-type="file-explorer"] .nav-folder-children {
padding-inline-start: 10px !important;
margin-inline-start: 6px !important;
border-inline-start: 1px solid var(--background-modifier-border) !important;
}
/* ============================================================================
* 7. Sidebar panels — search, bookmarks, graph filter sections
* ============================================================================ */
/* Search input — Liquid glass capsule */
.search-input-container {
border: none !important;
outline: none !important;
border-radius: var(--bb-radius-l) !important;
background: var(--bb-glass-tint-soft) !important;
backdrop-filter: blur(var(--bb-glass-blur-soft)) saturate(var(--bb-glass-saturate));
-webkit-backdrop-filter: blur(var(--bb-glass-blur-soft)) saturate(var(--bb-glass-saturate));
box-shadow:
inset 0 1px 0 var(--bb-glass-highlight),
inset 0 0 0 1px var(--bb-glass-edge) !important;
transition: box-shadow var(--bb-duration-base) var(--bb-ease),
background var(--bb-duration-base) var(--bb-ease);
}
/* Subtle Tahoe-style focus: thin accent ring that follows the radius, no native outline */
.search-input-container:focus-within {
background: var(--bb-glass-tint) !important;
outline: none !important;
box-shadow:
inset 0 1px 0 var(--bb-glass-highlight),
inset 0 0 0 1.5px var(--bb-focus-ring) !important;
}
/* Kill all native and Obsidian-default outlines on the input itself —
* the container's box-shadow is the only focus indicator. */
.search-input-container input,
.search-input-container input:focus,
.search-input-container input:focus-visible,
.search-input-container input:active {
border: none !important;
outline: none !important;
box-shadow: none !important;
background: transparent !important;
}
.search-input-container input {
border: none !important;
outline: none !important;
background: transparent !important;
}
/* Graph filter — ONE outer glass panel containing flat section rows.
* (Previously both .graph-controls AND .graph-control-section got the glass
* treatment, creating nested cards with doubled top-edge lines — visible
* especially in light mode. Now only the outer wrapper is a card.) */
.graph-controls {
border: none !important;
outline: none !important;
background: var(--bb-glass-tint) !important;
backdrop-filter: blur(var(--bb-glass-blur-base)) saturate(var(--bb-glass-saturate));
-webkit-backdrop-filter: blur(var(--bb-glass-blur-base)) saturate(var(--bb-glass-saturate));
border-radius: var(--bb-radius-l) !important;
box-shadow:
inset 0 1px 0 var(--bb-glass-highlight),
inset 0 0 0 1px var(--bb-glass-edge),
var(--bb-glass-shadow) !important;
margin: 8px !important;
overflow: hidden;
}
/* Section — flat structural wrapper, NOT a card. Shrinks to its visible
* child (header). Padding + min-height stripped because Obsidian's defaults
* leave a phantom bottom gap below the header when the children container
* is collapsed/empty. */
.graph-control-section {
display: flex !important;
flex-direction: column !important;
background: transparent !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
border: none !important;
border-radius: 0 !important;
box-shadow: none !important;
margin: 0 !important;
padding: 0 !important;
min-height: 0 !important;
height: auto !important;
overflow: visible !important;
}
/* Some Obsidian builds wrap header + children in an inner .tree-item;
* flatten that too so the section truly shrinks to its label row. */
.graph-control-section > .tree-item,
.graph-controls > .tree-item {
margin: 0 !important;
padding: 0 !important;
min-height: 0 !important;
height: auto !important;
background: transparent !important;
border: none !important;
}
/* NOTE: Don't override .graph-controls' position — Obsidian uses position:absolute
* on it to float the panel over the graph canvas. Overriding to relative collapses
* the panel into normal flow and it disappears. */
/* Section header — uniform 32px row. max-height locks against any inherited
* Obsidian padding that would otherwise stretch the row. Selector dropped
* the `>` combinator so it matches whether or not the row sits behind an
* intermediate .tree-item wrapper. */
.graph-controls .tree-item-self,
.graph-control-section .tree-item-self {
position: relative !important;
display: flex !important;
align-items: center !important;
height: 32px !important;
min-height: 32px !important;
max-height: 32px !important;
padding: 0 14px 0 30px !important;
padding-inline-start: 30px !important;
color: var(--text-normal) !important;
background: transparent !important;
border: none !important;
border-radius: 0 !important;
font-weight: 600;
font-size: 13px;
line-height: 1;
flex: 0 0 auto !important;
}
/* Section divider: 1px line as ::before, inset 12px from each edge so it
* doesn't extend to the rounded panel edges. First child has no divider. */
.graph-controls .tree-item-self::before,
.graph-control-section .tree-item-self::before {
content: "";
position: absolute;
top: 0;
left: 12px;
right: 12px;
height: 1px;
background: var(--bb-glass-edge);
pointer-events: none;
}
.graph-control-section:first-child .tree-item-self::before,
.graph-controls > div:first-child .tree-item-self::before,
.graph-controls > .graph-control-section:first-of-type .tree-item-self::before {
display: none;
}
/* Expanded section content — modest horizontal insets, tight vertical
* rhythm, small bottom padding so the divider above the next section sits
* close to the last setting row. */
.graph-controls .tree-item-children,
.graph-control-section .tree-item-children {
margin: 0 !important;
padding: 4px 14px 14px 14px !important;
min-height: 0 !important;
}
/* Setting rows inside a graph section — flat, no separators, 10px row gap. */
.graph-controls .setting-item,
.graph-control-section .setting-item {
padding: 5px 0 !important;
margin: 0 !important;
border-top: none !important;
border-bottom: none !important;
min-height: 0 !important;
}
.graph-controls .setting-item:last-child,
.graph-control-section .setting-item:last-child {
padding-bottom: 0 !important;
}
.graph-controls .setting-item:first-child,
.graph-control-section .setting-item:first-child {
padding-top: 4px !important;
}
/* Search-input within a section sits between the header and the first
* toggle row. Tight margins keep it visually anchored to the section. */
.graph-controls .search-input-container,
.graph-control-section .search-input-container {
margin: 4px 0 6px 0 !important;
}
.graph-controls .tree-item-children:empty,
.graph-control-section .tree-item-children:empty,
.graph-controls .is-collapsed > .tree-item-children,
.graph-control-section.is-collapsed > .tree-item-children,
.graph-control-section .tree-item.is-collapsed > .tree-item-children,
.graph-control-section .tree-item-self.is-collapsed ~ .tree-item-children,
.graph-control-section.is-collapsed .setting-item,
.graph-controls .is-collapsed .setting-item {
display: none !important;
height: 0 !important;
min-height: 0 !important;
padding: 0 !important;
margin: 0 !important;
}
/* Belt-and-braces: any element inside a graph-control-section that's
* structurally empty (no children at all) loses display so it can never
* contribute to section height. Excludes interactive leaves. */
.graph-control-section > *:empty:not(.tree-item-self):not(input):not(button):not(svg) {
display: none !important;
}
/* Section hover: subtle glass-soft tint, not solid */
.graph-controls .tree-item-self:hover,
.graph-control-section .tree-item-self:hover {
background: var(--bb-glass-tint-soft) !important;
}
/* Chevron — absolute-positioned in the 30px label-start zone, vertically
* centered against the fixed 32px row height. Pure top:50% / translateY(-50%)
* works correctly now because the row height is integer-pixel exact. */
.graph-controls .tree-item-self .collapse-icon,
.graph-control-section .tree-item-self .collapse-icon,
.graph-controls .tree-item-self .tree-item-icon,
.graph-control-section .tree-item-self .tree-item-icon {
position: absolute !important;
left: 12px !important;
top: 50% !important;
transform: translateY(-50%) !important;
width: 12px !important;
height: 12px !important;
flex-shrink: 0 !important;
margin: 0 !important;
padding: 0 !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
color: var(--text-muted) !important;
opacity: 0.75;
transition: opacity var(--bb-duration-fast) var(--bb-ease),
color var(--bb-duration-fast) var(--bb-ease),
transform var(--bb-duration-fast) var(--bb-ease);
}
/* Collapsed state — rotate to point right, preserve vertical centering */
.graph-controls .tree-item.is-collapsed .tree-item-self .collapse-icon,
.graph-controls .tree-item.is-collapsed .tree-item-self .tree-item-icon,
.graph-control-section.is-collapsed .tree-item-self .collapse-icon,
.graph-control-section.is-collapsed .tree-item-self .tree-item-icon,
.graph-controls .tree-item-self.is-collapsed .collapse-icon,
.graph-controls .tree-item-self.is-collapsed .tree-item-icon,
.graph-control-section .tree-item-self.is-collapsed .collapse-icon,
.graph-control-section .tree-item-self.is-collapsed .tree-item-icon {
transform: translateY(-50%) rotate(-90deg) !important;
}
.graph-controls .tree-item-self:hover .collapse-icon,
.graph-controls .tree-item-self:hover .tree-item-icon,
.graph-control-section .tree-item-self:hover .collapse-icon,
.graph-control-section .tree-item-self:hover .tree-item-icon {
opacity: 1;
color: var(--text-normal) !important;
}
.graph-controls .tree-item-self .collapse-icon svg,
.graph-control-section .tree-item-self .collapse-icon svg,
.graph-controls .tree-item-self .tree-item-icon svg,
.graph-control-section .tree-item-self .tree-item-icon svg {
width: 12px !important;
height: 12px !important;
margin: 0 !important;
display: block !important;
}
.graph-controls .tree-item-self .tree-item-inner,
.graph-control-section .tree-item-self .tree-item-inner {
flex: 1 !important;
min-width: 0 !important;
line-height: 1 !important;
display: flex !important;
align-items: center !important;
height: 100% !important;
}
/* Graph control buttons (refresh, close) — render in their natural DOM flow at the
* top of the panel. Just space them out and give them clean hover affordance. */
.graph-controls-button {
padding: 4px !important;
margin-left: 4px !important;
width: 22px !important;
height: 22px !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
color: var(--text-muted) !important;
border: none !important;
outline: none !important;
border-radius: var(--bb-radius-s) !important;
background: transparent !important;
box-shadow: none !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
transition: background var(--bb-duration-fast) var(--bb-ease),
color var(--bb-duration-fast) var(--bb-ease);
}
.graph-controls-button:hover {
color: var(--text-normal) !important;
background: var(--background-modifier-hover) !important;
}
/* Bookmarks pane — COLORS ONLY. No layout, no widths, no positions, no flex.
* Obsidian's default layout works; previous attempts at restructuring caused
* centered text and overlapping icons. Only style what's already laid out. */
/* Children container: indent + 1px guide line at x=12 (margin-left: 12px). */
.workspace-leaf-content[data-type="bookmarks"] .tree-item-children {
padding-inline-start: 10px !important;
margin-inline-start: 12px !important;
margin-left: 12px !important;
border-inline-start: 1px solid var(--background-modifier-border) !important;
}
/* Force bookmark group rows to have these exact margin/padding values.
* Conditional transforms compensate for whichever inline value Obsidian
* chooses, all converging on visual position 0 (panel left edge). */
.tree-item-self.bookmark.mod-collapsible.is-clickable {
margin-inline-start: 0 !important;
padding-inline-start: 24px !important;
}
/* Coverage matrix: every Obsidian-set inline value → visual at x=0 */
.tree-item-self.bookmark.mod-collapsible.is-clickable[style*="margin-inline-start: 0px"] {
transform: translateX(0) !important;
}
.tree-item-self.bookmark.mod-collapsible.is-clickable[style*="margin-inline-start: -2px"] {
transform: translateX(2px) !important;
}
.tree-item-self.bookmark.mod-collapsible.is-clickable[style*="margin-inline-start: -4px"] {
transform: translateX(4px) !important;
}
.tree-item-self.bookmark.mod-collapsible.is-clickable[style*="margin-inline-start: 16px"] {
transform: translateX(-16px) !important;
}
/* Shift the bookmarks pane's floated nav-header 24px to the left.
* Can't use transform — the float-up rule has transform:none !important.
* Instead, bump the `right:` offset by 24px (50 → 74) so the absolutely-
* positioned nav-header anchors further from the panel's right edge. */
body div.workspace-split.mod-left-split div.workspace-leaf-content[data-type="bookmarks"] > div.nav-header,
body div.workspace-split.mod-right-split div.workspace-leaf-content[data-type="bookmarks"] > div.nav-header {
right: 74px !important;
}