-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathstyles.css
More file actions
9293 lines (8121 loc) · 273 KB
/
styles.css
File metadata and controls
9293 lines (8121 loc) · 273 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
/*
Notebook Navigator - Plugin for Obsidian
Copyright (c) 2025-2026 Johan Sanneblad
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
=========================================================================
GENERATED FILE - DO NOT EDIT styles.css
=========================================================================
Edit the CSS sources instead:
- src/styles/index.css (import order + per-file descriptions)
- src/styles/sections/*
Generated by: scripts/build-styles.mjs
*/
/* Source: src/styles/sections/core-variables.css */
/* ========================================================================
CSS Variables - Defined at body level for Style Settings compatibility
======================================================================== */
/* Utility class for text that should only be exposed to assistive tech */
.nn-visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/**
* Hidden element used to resolve CSS variable colors to computed RGBA values.
* Positioned offscreen and invisible to avoid layout impact while allowing getComputedStyle access.
*/
.nn-color-resolver {
position: absolute;
width: 0;
height: 0;
opacity: 0;
pointer-events: none;
visibility: hidden;
z-index: -1;
margin: 0;
padding: 0;
color: var(--nn-color-resolver-value, transparent);
background-color: var(--nn-color-resolver-value, transparent);
}
body {
/* ========================================================================
Padding Variables for Items and Containers
======================================================================== */
/* Container/Scroller padding */
--nn-scroller-padding: 10px; /* Horizontal padding for scroll containers */
/* Navigation item padding */
--nn-nav-item-padding-horizontal: 8px; /* Horizontal padding for navigation items */
/* File item padding */
--nn-file-item-padding-horizontal: 12px; /* Horizontal padding for file items and date headers */
--nn-file-row-gap: 4px; /* Gap between columns inside a file row */
--nn-file-icon-size: 16px; /* Leading icon size for file rows and pinned headers */
--nn-file-icon-slot-width: var(--nn-file-icon-size); /* Leading icon slot width */
--nn-file-icon-slot-gap: 6px; /* Space between leading icon slot and text (matches pinned header) */
--nn-file-name-size-mobile: var(--nn-file-name-size); /* Mobile font size override */
--nn-file-small-size-mobile: var(--nn-file-small-size); /* Mobile small font override */
--nn-file-padding-vertical-mobile: var(--nn-file-padding-vertical); /* Mobile padding per side */
--nn-file-padding-total-mobile: var(--nn-file-padding-total); /* Mobile total padding */
--nn-file-icon-size-mobile: var(--nn-file-icon-size); /* Mobile icon size */
--nn-file-icon-slot-width-mobile: var(--nn-file-icon-slot-width); /* Mobile icon slot width */
/* ========================================================================
Fixed Height Variables for Pixel-Perfect Rendering
======================================================================== */
/* File item heights - fixed pixel values to prevent fractional rendering */
--nn-file-title-line-height: 20px; /* Height of file title text */
--nn-file-padding-vertical: 8px; /* 8px */
--nn-file-padding-vertical-compact: 4px; /* Desktop compact mode padding */
--nn-file-padding-vertical-compact-mobile: 8px; /* Mobile compact mode padding */
--nn-file-padding-total: calc(var(--nn-file-padding-vertical) * 2); /* Total vertical padding (top + bottom) */
--nn-file-single-text-line-height: 19px; /* Height for single-line text (metadata, date, or single preview) */
--nn-file-multiline-text-line-height: 18px; /* Height for multi-line preview text */
--nn-file-title-line-height-mobile: 21px; /* Mobile title text height */
--nn-file-single-text-line-height-mobile: 20px; /* Mobile single-line text height */
--nn-file-multiline-text-line-height-mobile: 19px; /* Mobile preview text height */
--nn-feature-image-min-size: 42px; /* Minimum size for feature images */
--nn-feature-image-max-size: 64px; /* Maximum size for feature images */
/* Font sizes - fixed pixel values to prevent scaling with Obsidian font size */
--nn-file-name-size: 14px; /* Fixed 14px */
--nn-file-small-size: 13px; /* Fixed 13px */
--nn-compact-font-size: 13px; /* Compact mode desktop font size */
--nn-compact-font-size-mobile: 15px; /* Compact mode mobile font size */
/* Date header heights and padding */
--nn-date-header-height: 35px; /* First header */
--nn-date-header-height-subsequent: 50px; /* Headers with margin */
--nn-date-header-padding-top: 24px; /* Top padding for subsequent headers */
--nn-date-header-padding-bottom: 6px; /* Bottom padding for subsequent headers */
--nn-date-header-height-mobile: var(--nn-date-header-height);
--nn-date-header-height-subsequent-mobile: var(--nn-date-header-height-subsequent);
--nn-date-header-padding-top-mobile: var(--nn-date-header-padding-top);
--nn-date-header-padding-bottom-mobile: var(--nn-date-header-padding-bottom);
/* Navigation item heights - fixed pixel values to prevent fractional rendering */
--nn-nav-line-height: 18px; /* Fixed line height for folder/tag names */
--nn-navitem-count-font-size: 11px; /* Desktop count font size */
--nn-navitem-count-font-size-mobile: 13px; /* Mobile count font size */
/* Note: The following are dynamically set by JavaScript based on user settings:
--nn-setting-nav-item-height
--nn-setting-nav-item-height-mobile
--nn-setting-nav-font-size
--nn-setting-nav-font-size-mobile
--nn-setting-nav-indent
*/
/* Navigation icon size */
--nn-nav-icon-size: 16px; /* Fixed icon size */
/* List title area */
--nn-list-title-padding-block: 8px; /* Vertical padding around list title */
--nn-list-title-font-size: 16px; /* Desktop list title text size */
--nn-file-tag-row-height-base: 22px;
--nn-file-tag-row-gap-base: 4px;
--nn-file-tag-row-height: var(--nn-file-tag-row-height-base);
--nn-file-tag-row-gap: var(--nn-file-tag-row-gap-base);
/* ========================================================================
Header Font Sizes
======================================================================== */
/* Header font sizes */
--nn-desktop-header-font-size: 13px; /* Fixed desktop header font size */
--nn-mobile-header-font-size: 17px; /* Fixed mobile header font size */
--nn-root-reorder-hint-font-size: var(--font-ui-smaller);
--nn-root-reorder-hint-font-size-mobile: var(--font-ui-small);
/* ========================================================================
Pane Width Constraints
======================================================================== */
/* Minimum widths for panes */
--nn-navigation-pane-min-width: 150px; /* Minimum width for navigation pane */
--nn-list-pane-min-width: 150px; /* Minimum width for list pane */
--nn-navigation-pane-min-height: 160px; /* Minimum height for navigation pane (vertical split) */
--nn-list-pane-min-height: 250px; /* Minimum height for list pane (vertical split) */
/* ========================================================================
Notebook Navigator Theme Variables
======================================================================== */
/* -- Theme Foreground -- */
--nn-theme-foreground: var(--text-normal);
--nn-theme-foreground-muted: color-mix(in srgb, var(--nn-theme-foreground) 70%, transparent);
--nn-theme-foreground-faded: color-mix(in srgb, var(--nn-theme-foreground) 50%, transparent);
--nn-theme-foreground-faint: color-mix(in srgb, var(--nn-theme-foreground) 10%, transparent);
/* -- Navigation Pane -- */
--nn-theme-nav-bg: var(--background-secondary);
--nn-theme-nav-separator-color: var(--nn-theme-foreground);
--nn-theme-nav-separator-background: linear-gradient(
90deg,
transparent 0%,
var(--nn-theme-nav-separator-color) 15%,
var(--nn-theme-nav-separator-color) 85%,
transparent 100%
);
--nn-theme-nav-separator-height: 1px;
--nn-theme-nav-separator-opacity: 0.3;
--nn-theme-pinned-shortcut-shadow-color: rgba(0, 0, 0, 0.03);
/* -- Navigation Calendar -- */
--nn-theme-calendar-header-color: var(--nn-theme-foreground);
--nn-theme-calendar-weekday-color: var(--nn-theme-foreground-muted);
--nn-theme-calendar-week-color: var(--nn-theme-foreground-muted);
--nn-theme-calendar-day-in-month-color: var(--nn-theme-foreground);
--nn-theme-calendar-day-outside-month-color: var(--nn-theme-foreground-faded);
--nn-theme-calendar-weekend-bg: color-mix(in srgb, var(--nn-theme-foreground) 10%, transparent);
--nn-theme-calendar-hover-bg: var(--background-modifier-hover);
--nn-theme-calendar-day-has-note-bg: var(--nn-theme-foreground-faded);
--nn-theme-calendar-day-has-unfinished-task-color: var(--nn-theme-calendar-day-has-note-bg);
--nn-theme-calendar-day-has-feature-image-color: white;
--nn-theme-calendar-day-today-color: var(--nn-theme-calendar-day-in-month-color);
--nn-theme-calendar-day-today-bg: var(--text-selection);
--nn-theme-calendar-day-active-border-color: var(--nn-theme-foreground-faded);
/* -- Folder & Tag Items -- */
--nn-theme-navitem-chevron-color: var(--nn-theme-foreground-muted);
--nn-theme-navitem-icon-color: var(--nn-theme-foreground-muted);
--nn-theme-navitem-name-color: var(--nn-theme-foreground);
--nn-theme-navitem-file-name-color: var(--nn-theme-navitem-name-color);
--nn-theme-navitem-count-color: var(--nn-theme-foreground-muted);
--nn-theme-navitem-count-bg: transparent;
--nn-theme-navitem-count-border-radius: 8px;
--nn-theme-navitem-border-radius: 4px;
--nn-theme-navitem-border-width: 0px;
--nn-theme-navitem-count-border-width: 0px;
--nn-theme-navitem-custom-border-color: transparent;
--nn-theme-navitem-hover-border-color: transparent;
--nn-theme-navitem-selected-border-color: transparent;
--nn-theme-navitem-selected-inactive-border-color: var(--nn-theme-navitem-selected-border-color);
--nn-theme-navitem-count-border-color: transparent;
--nn-theme-navitem-selected-count-border-color: var(--nn-theme-navitem-count-border-color);
--nn-theme-navitem-selected-inactive-count-border-color: var(--nn-theme-navitem-selected-count-border-color);
--nn-theme-navitem-hover-bg: var(--background-modifier-hover);
--nn-theme-navitem-selected-bg: var(--text-selection);
--nn-theme-navitem-selected-chevron-color: var(--nn-theme-navitem-chevron-color);
--nn-theme-navitem-selected-icon-color: var(--nn-theme-navitem-icon-color);
--nn-theme-navitem-selected-name-color: var(--nn-theme-navitem-name-color);
--nn-theme-navitem-selected-count-color: var(--nn-theme-navitem-count-color);
--nn-theme-navitem-selected-count-bg: var(--nn-theme-navitem-count-bg);
--nn-theme-navitem-selected-inactive-bg: var(--background-modifier-hover);
--nn-theme-navitem-selected-inactive-name-color: var(--nn-theme-navitem-name-color);
--nn-theme-navitem-selected-inactive-chevron-color: var(--nn-theme-navitem-selected-chevron-color);
--nn-theme-navitem-selected-inactive-icon-color: var(--nn-theme-navitem-selected-icon-color);
--nn-theme-navitem-selected-inactive-count-color: var(--nn-theme-navitem-selected-count-color);
--nn-theme-navitem-selected-inactive-count-bg: var(--nn-theme-navitem-selected-count-bg);
--nn-theme-tag-positive-bg: #00800033;
--nn-theme-tag-negative-bg: #ff000033;
/* -- Navigation Item Text Styling -- */
--nn-theme-navitem-file-name-font-weight: 400;
--nn-theme-navitem-name-font-weight: 400;
--nn-theme-navitem-count-font-weight: 400;
--nn-theme-navitem-custom-color-file-name-font-weight: 600;
--nn-theme-navitem-custom-color-name-font-weight: 600;
--nn-theme-navitem-folder-note-name-font-weight: 400;
--nn-theme-navitem-folder-note-name-decoration: underline;
--nn-theme-navitem-folder-note-name-hover-decoration: underline;
/* -- Pane Divider -- */
--nn-theme-divider-border-color: var(--divider-color);
--nn-theme-divider-resize-handle-hover-bg: var(--interactive-accent);
/* -- List Pane (Files) -- */
--nn-theme-list-bg: var(--background-primary);
--nn-theme-list-header-icon-color: var(--nn-theme-foreground-muted);
--nn-theme-list-header-breadcrumb-color: var(--nn-theme-foreground-muted);
--nn-theme-list-header-breadcrumb-font-weight: 600;
--nn-theme-list-search-active-bg: var(--text-highlight-bg);
--nn-theme-list-search-border-color: var(--background-modifier-border);
--nn-theme-list-heading-color: var(--nn-theme-foreground-muted);
--nn-theme-list-heading-font-weight: 600;
--nn-theme-list-group-header-color: var(--nn-theme-foreground-muted);
--nn-theme-list-separator-color: var(--background-modifier-border);
/* -- File Items -- */
--nn-theme-file-name-color: var(--nn-theme-foreground);
--nn-theme-file-preview-color: var(--nn-theme-foreground-muted);
--nn-theme-file-task-icon-color: var(--nn-theme-navitem-icon-color);
--nn-theme-file-feature-border-radius: 4px;
--nn-theme-file-date-color: var(--nn-theme-foreground-faded);
--nn-theme-file-parent-color: var(--nn-theme-foreground-faded);
--nn-theme-file-tag-color: var(--nn-theme-foreground-faded);
--nn-theme-file-tag-border-color: color-mix(in srgb, var(--nn-theme-foreground) 30%, transparent);
--nn-theme-file-property-border-color: var(--nn-theme-file-tag-border-color);
--nn-theme-file-selected-tag-border-color: var(--nn-theme-file-tag-border-color);
--nn-theme-file-selected-property-border-color: var(--nn-theme-file-property-border-color);
--nn-theme-file-tag-custom-color-text-color: var(--nn-theme-navitem-name-color);
--nn-theme-file-tag-bg: transparent;
--nn-theme-file-property-color: var(--nn-theme-foreground-faded);
--nn-theme-file-property-bg: transparent;
--nn-theme-file-tag-border-radius: 10px;
--nn-theme-file-property-border-radius: 10px;
--nn-theme-file-border-radius: 8px;
--nn-theme-file-border-width: 0px;
--nn-theme-file-pill-border-width: 1px;
--nn-theme-file-selected-border-color: transparent;
--nn-theme-file-selected-inactive-border-color: var(--nn-theme-file-selected-border-color);
--nn-theme-file-selected-bg: var(--text-selection);
--nn-theme-file-selected-name-color: var(--nn-theme-file-name-color);
--nn-theme-file-selected-preview-color: var(--nn-theme-file-preview-color);
--nn-theme-file-selected-date-color: var(--nn-theme-foreground-muted);
--nn-theme-file-selected-parent-color: var(--nn-theme-foreground-muted);
--nn-theme-file-selected-tag-color: var(--nn-theme-foreground-muted);
--nn-theme-file-selected-tag-bg: var(--nn-theme-file-tag-bg);
--nn-theme-file-selected-property-color: var(--nn-theme-foreground-muted);
--nn-theme-file-selected-property-bg: var(--nn-theme-file-property-bg);
--nn-theme-file-selected-inactive-bg: var(--background-modifier-hover);
--nn-theme-file-selected-inactive-name-color: var(--nn-theme-file-selected-name-color);
--nn-theme-file-selected-inactive-preview-color: var(--nn-theme-file-selected-preview-color);
--nn-theme-file-selected-inactive-date-color: var(--nn-theme-file-selected-date-color);
--nn-theme-file-selected-inactive-parent-color: var(--nn-theme-file-selected-parent-color);
--nn-theme-file-selected-inactive-tag-color: var(--nn-theme-file-selected-tag-color);
--nn-theme-file-selected-inactive-tag-bg: var(--nn-theme-file-tag-bg);
--nn-theme-file-selected-inactive-property-color: var(--nn-theme-file-selected-property-color);
--nn-theme-file-selected-inactive-property-bg: var(--nn-theme-file-property-bg);
/* -- File Item Text Styling -- */
--nn-theme-list-group-header-font-weight: 600;
--nn-theme-file-name-font-weight: 600;
--nn-theme-file-compact-name-font-weight: 400;
--nn-theme-file-preview-font-weight: 400;
--nn-theme-file-date-font-weight: 400;
--nn-theme-file-parent-font-weight: 400;
--nn-theme-file-tag-font-weight: 400;
/* -- Quick Actions -- */
--nn-theme-quick-actions-bg: color-mix(in srgb, var(--background-primary) 95%, transparent);
--nn-theme-quick-actions-border: var(--background-modifier-border);
--nn-theme-quick-actions-border-radius: 4px;
--nn-theme-quick-actions-icon-color: var(--nn-theme-foreground-muted);
--nn-theme-quick-actions-icon-hover-color: var(--nn-theme-foreground);
--nn-theme-quick-actions-separator-color: var(--background-modifier-border);
/* -- Header Buttons -- */
--nn-theme-header-button-icon-color: var(--icon-color);
--nn-theme-header-button-hover-bg: var(--background-modifier-hover);
--nn-theme-header-button-active-bg: var(--background-modifier-hover);
--nn-theme-header-button-active-icon-color: var(--text-normal);
--nn-theme-header-button-disabled-icon-color: var(--icon-color);
/* -- Mobile Styles -- */
--nn-theme-mobile-bg: var(--mobile-sidebar-background);
--nn-theme-mobile-list-header-link-color: var(--link-color);
--nn-theme-mobile-list-header-breadcrumb-color: var(--nn-theme-foreground);
--nn-theme-mobile-list-header-breadcrumb-font-weight: 600;
--nn-theme-mobile-toolbar-bg: var(--background-secondary);
--nn-theme-mobile-toolbar-button-icon-color: var(--link-color);
--nn-theme-mobile-toolbar-button-active-bg: var(--background-modifier-hover);
--nn-theme-mobile-toolbar-button-active-icon-color: var(--link-color);
--nn-theme-mobile-toolbar-glass-bg: var(--background-primary);
/* -- File Separator -- */
--nn-separator-height: 1px;
}
.theme-dark {
--nn-theme-pinned-shortcut-shadow-color: rgba(0, 0, 0, 0.18);
}
/* Source: src/styles/sections/layout-base.css */
/* ========================================================================
Base Layout & Container Styles
======================================================================== */
/* Inline match highlight in file names while search is active */
.nn-search-highlight {
background-color: var(--nn-theme-list-search-active-bg);
color: inherit;
border-radius: 3px;
}
/* Resets Obsidian's default view-content padding for cleaner integration */
.view-content.notebook-navigator {
padding: 0;
border: none;
}
/* Main container - establishes the plugin's layout foundation */
.notebook-navigator {
height: 100%;
display: flex;
flex-direction: column;
background-color: var(--background-primary);
font-family: var(--font-interface);
}
.nn-svg-filters {
position: absolute;
width: 0;
height: 0;
pointer-events: none;
opacity: 0;
}
/* Removes focus outline on main container for cleaner appearance */
.notebook-navigator:focus {
outline: none;
}
/* Split container - creates the two-pane layout structure */
.nn-split-container {
display: flex;
height: 100%;
overflow: hidden;
position: relative;
--nn-pane-transition-duration: 0.15s;
--nn-pane-transition-timing: ease-in-out;
--nn-selected-file-bg-color: var(--nn-computed-file-selected-bg, var(--nn-theme-file-selected-bg));
--nn-selected-file-name-color: var(--nn-theme-file-selected-name-color);
--nn-selected-file-preview-color: var(--nn-theme-file-selected-preview-color);
--nn-selected-file-date-color: var(--nn-theme-file-selected-date-color);
--nn-selected-file-parent-color: var(--nn-theme-file-selected-parent-color);
--nn-selected-file-tag-color: var(--nn-theme-file-selected-tag-color);
--nn-selected-file-tag-bg: var(--nn-theme-file-selected-tag-bg);
--nn-selected-file-property-color: var(--nn-theme-file-selected-property-color);
--nn-selected-file-property-bg: var(--nn-theme-file-selected-property-bg);
--nn-selected-file-border-color: var(--nn-theme-file-selected-border-color);
--nn-selected-navitem-bg-color: var(--nn-computed-navitem-selected-bg, var(--nn-theme-navitem-selected-bg));
--nn-selected-navitem-name-color: var(--nn-theme-navitem-selected-name-color);
--nn-selected-navitem-chevron-color: var(--nn-theme-navitem-selected-chevron-color);
--nn-selected-navitem-icon-color: var(--nn-theme-navitem-selected-icon-color);
--nn-selected-navitem-count-color: var(--nn-theme-navitem-selected-count-color);
--nn-selected-navitem-count-bg: var(--nn-theme-navitem-selected-count-bg);
--nn-selected-navitem-border-color: var(--nn-theme-navitem-selected-border-color);
--nn-selected-navitem-count-border-color: var(--nn-theme-navitem-selected-count-border-color);
}
.nn-split-container:is([data-navigator-focused='false'], [data-focus-pane='navigation'], [data-focus-pane='search']) {
--nn-selected-file-bg-color: var(--nn-computed-file-selected-inactive-bg, var(--nn-theme-file-selected-inactive-bg));
--nn-selected-file-name-color: var(--nn-theme-file-selected-inactive-name-color);
--nn-selected-file-preview-color: var(--nn-theme-file-selected-inactive-preview-color);
--nn-selected-file-date-color: var(--nn-theme-file-selected-inactive-date-color);
--nn-selected-file-parent-color: var(--nn-theme-file-selected-inactive-parent-color);
--nn-selected-file-tag-color: var(--nn-theme-file-selected-inactive-tag-color);
--nn-selected-file-tag-bg: var(--nn-theme-file-selected-inactive-tag-bg);
--nn-selected-file-property-color: var(--nn-theme-file-selected-inactive-property-color);
--nn-selected-file-property-bg: var(--nn-theme-file-selected-inactive-property-bg);
--nn-selected-file-border-color: var(--nn-theme-file-selected-inactive-border-color);
}
.nn-split-container:is([data-navigator-focused='false'], [data-focus-pane='files'], [data-focus-pane='search']) {
--nn-selected-navitem-bg-color: var(--nn-computed-navitem-selected-inactive-bg, var(--nn-theme-navitem-selected-inactive-bg));
--nn-selected-navitem-name-color: var(--nn-theme-navitem-selected-inactive-name-color);
--nn-selected-navitem-chevron-color: var(--nn-theme-navitem-selected-inactive-chevron-color);
--nn-selected-navitem-icon-color: var(--nn-theme-navitem-selected-inactive-icon-color);
--nn-selected-navitem-count-color: var(--nn-theme-navitem-selected-inactive-count-color);
--nn-selected-navitem-count-bg: var(--nn-theme-navitem-selected-inactive-count-bg);
--nn-selected-navitem-border-color: var(--nn-theme-navitem-selected-inactive-border-color);
--nn-selected-navitem-count-border-color: var(--nn-theme-navitem-selected-inactive-count-border-color);
}
.nn-scale-wrapper {
width: 100%;
height: 100%;
overflow: hidden;
}
.nn-scale-wrapper > .nn-split-container {
width: 100%;
height: 100%;
transform-origin: top left;
}
.nn-scale-wrapper[data-ui-scale] > .nn-split-container {
width: calc(100% / var(--nn-ui-scale, 1));
height: calc(100% / var(--nn-ui-scale, 1));
transform: scale(var(--nn-ui-scale, 1));
}
/* Source: src/styles/sections/ui-update-notice.css */
/* ========================================================================
Update notice banner
======================================================================== */
.nn-update-banner {
position: absolute;
top: calc(var(--nn-date-header-height-mobile, var(--nn-date-header-height)) + 8px);
left: 50%;
transform: translate(-50%, 0);
z-index: 10;
min-width: 220px;
max-width: calc(100% - 32px);
background-color: var(--interactive-accent);
color: var(--text-on-accent);
padding: 12px 20px;
height: auto;
border-radius: 10px;
border: none;
cursor: pointer;
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
font: inherit;
text-align: left;
opacity: 1;
transition:
opacity 0.4s ease,
transform 0.4s ease;
}
.nn-split-container .nn-update-banner {
background: var(--interactive-accent);
border: none;
color: var(--text-on-accent);
padding: 12px 20px;
appearance: none;
}
.nn-update-banner:focus-visible {
outline: none;
box-shadow:
0 0 0 2px var(--background-primary),
0 0 0 4px var(--interactive-accent),
0 8px 18px rgba(0, 0, 0, 0.18);
}
.nn-update-banner.fade-out {
opacity: 0;
transform: translate(-50%, -18px);
}
.nn-update-banner__text {
display: flex;
flex-direction: column;
gap: 2px;
}
.nn-update-banner__label {
font-weight: 600;
font-size: 12px;
}
.nn-update-banner__instruction {
font-size: 11px;
color: var(--text-on-accent);
opacity: 0.9;
}
.nn-update-status {
margin-top: 6px;
font-weight: 600;
color: var(--color-red);
}
.nn-update-status.is-hidden {
display: none;
}
@media (max-width: 600px) {
.nn-update-banner {
left: 8px;
right: 8px;
transform: none;
max-width: none;
width: auto;
justify-content: center;
top: 8px;
}
.nn-update-banner__text {
align-items: center;
text-align: center;
}
.nn-update-banner.fade-out {
transform: translateY(-12px);
}
}
/* Source: src/styles/sections/ui-notices.css */
/* ========================================================================
Notices
======================================================================== */
.nn-cache-rebuild-notice {
display: flex;
flex-direction: column;
gap: 4px;
width: 100%;
box-sizing: border-box;
}
.nn-cache-rebuild-notice-container {
width: 100%;
box-sizing: border-box;
}
.nn-cache-rebuild-notice-message {
width: 100%;
min-width: 0;
flex: 1 1 auto;
box-sizing: border-box;
}
.nn-cache-rebuild-notice-title {
font-weight: 600;
line-height: 1.25;
}
.nn-cache-rebuild-notice-description {
font-size: 13px;
line-height: 1.25;
opacity: 0.85;
}
.nn-cache-rebuild-notice-progress-bar {
display: block;
width: 100%;
max-width: none;
height: 6px;
border-radius: 999px;
overflow: hidden;
}
.nn-cache-rebuild-notice-progress-bar::-webkit-progress-bar {
background-color: var(--background-modifier-border);
border-radius: 999px;
}
.nn-cache-rebuild-notice-progress-bar::-webkit-progress-value {
background-color: var(--interactive-accent);
border-radius: 999px;
}
@media (max-width: 600px) {
.nn-cache-rebuild-notice-description {
font-size: 14px;
}
}
/* Source: src/styles/sections/layout-panes.css */
/* ========================================================================
Pane Layout
======================================================================== */
/* Navigation pane - contains the folder tree navigation */
.nn-navigation-pane {
flex: 0 0 auto; /* Don't grow or shrink, use explicit width */
min-width: var(--nn-navigation-pane-min-width);
display: flex;
flex-direction: column;
overflow: hidden;
background-color: var(--nn-theme-nav-bg);
border-right: 1px solid var(--nn-theme-divider-border-color);
position: relative; /* Enables absolute positioning for resize handles */
/* Performance optimization for virtualized content */
contain: layout style;
}
/* Right pane - contains the file list */
.nn-list-pane {
flex: 1;
min-width: var(--nn-list-pane-min-width);
display: flex;
flex-direction: column;
overflow: hidden;
background-color: var(--nn-theme-list-bg);
position: relative; /* Enable absolute positioning for resize handle */
/* Performance optimization for virtualized content */
contain: layout style;
}
/* Override backgrounds when desktop background mode is set to primary or secondary */
/* Primary mode: use list background for navigation pane */
.nn-split-container.nn-desktop.nn-bg-primary {
--nn-theme-nav-bg: var(--nn-theme-list-bg);
}
/* Secondary mode: use navigation background for list pane */
.nn-split-container.nn-desktop.nn-bg-secondary {
--nn-theme-list-bg: var(--nn-theme-nav-bg);
}
/* Mobile pane backgrounds follow --nn-theme-mobile-bg */
.nn-split-container.nn-mobile {
--nn-theme-nav-bg: var(--nn-theme-mobile-bg);
--nn-theme-list-bg: var(--nn-theme-mobile-bg);
}
.notebook-navigator-mobile .nn-navigation-pane {
border-right: none;
}
.nn-split-container.nn-orientation-vertical {
flex-direction: column;
}
.nn-split-container.nn-orientation-vertical .nn-navigation-pane {
width: 100%;
min-width: 0;
min-height: var(--nn-navigation-pane-min-height);
flex: 0 1 auto;
}
.nn-split-container.nn-orientation-vertical .nn-list-pane {
min-width: 0;
width: 100%;
min-height: var(--nn-list-pane-min-height);
}
.nn-split-container.nn-orientation-vertical .nn-navigation-pane {
border-right: none;
}
.nn-split-container.nn-orientation-vertical:not(.nn-single-pane) .nn-navigation-pane {
border-bottom: 1px solid var(--nn-theme-divider-border-color);
}
/* Pane divider resize handle - overlay on the left edge of list pane */
.nn-resize-handle {
width: 3px;
background-color: transparent;
cursor: col-resize;
position: absolute;
left: 0;
top: 0;
bottom: 0;
z-index: 10;
touch-action: none;
-webkit-tap-highlight-color: transparent;
}
.nn-split-container.nn-orientation-vertical .nn-resize-handle {
width: 100%;
height: 3px;
cursor: row-resize;
bottom: auto;
right: 0;
}
/* Pane divider resize handle hover state - provides visual feedback */
.nn-resize-handle:hover {
background-color: var(--nn-theme-divider-resize-handle-hover-bg);
}
/* Pane divider resize handle active state - maintains visibility during resize */
.nn-split-container.nn-resizing .nn-resize-handle {
background-color: var(--nn-theme-divider-resize-handle-hover-bg);
}
/* ========================================================================
Single-pane Layout
======================================================================== */
/* Single-pane container - use grid for consistent structure while allowing sliding */
.nn-split-container.nn-single-pane {
display: grid;
grid-template-columns: 100%;
grid-template-rows: minmax(0, 1fr) auto;
position: relative;
overflow: hidden;
height: 100%;
}
/* Single-pane panes - positioned in grid and animated with transforms */
.nn-split-container.nn-single-pane .nn-navigation-pane,
.nn-split-container.nn-single-pane .nn-list-pane {
width: 100% !important;
max-width: 100% !important;
height: 100%;
grid-column: 1;
grid-row: 1;
min-height: 0;
transition: transform var(--nn-pane-transition-duration) var(--nn-pane-transition-timing);
}
.nn-split-container.nn-single-pane .nn-single-pane-calendar {
grid-column: 1;
grid-row: 2;
}
/* Disable transitions for one-frame mode changes (dual-pane -> single-pane) */
.nn-split-container.nn-single-pane.nn-suppress-pane-transitions .nn-navigation-pane,
.nn-split-container.nn-single-pane.nn-suppress-pane-transitions .nn-list-pane {
transition: none;
}
.nn-split-container.nn-single-pane.nn-pane-transitioning .nn-navigation-pane,
.nn-split-container.nn-single-pane.nn-pane-transitioning .nn-list-pane {
will-change: transform;
}
/* Single-pane view states - show navigation view */
.nn-split-container.nn-single-pane.show-navigation .nn-navigation-pane {
transform: none;
}
.nn-split-container.nn-single-pane.show-navigation .nn-list-pane {
transform: translateX(100%);
}
/* Single-pane view states - show files view */
.nn-split-container.nn-single-pane.show-files .nn-navigation-pane {
transform: translateX(-100%);
}
.nn-split-container.nn-single-pane.show-files .nn-list-pane {
transform: none;
}
/* ========================================================================
Mobile Layout
======================================================================== */
/* Make navigation pane flexible on mobile to handle resize gracefully */
.notebook-navigator-mobile .nn-navigation-pane {
flex: 1;
background-color: var(--nn-theme-nav-bg) !important;
}
/* Hide resize handle on mobile */
.notebook-navigator-mobile .nn-resize-handle {
display: none !important;
}
/* Add touch-action to prevent browser gestures interfering */
.notebook-navigator-mobile .nn-split-container {
touch-action: pan-y;
}
/* Source: src/styles/sections/ui-headers.css */
/* ========================================================================
Header Styles
======================================================================== */
/* Pane headers - consistent header styling for both panes */
.nn-pane-header {
padding: 8px 8px;
display: flex;
justify-content: flex-end;
align-items: center;
min-height: 32px;
height: 32px;
}
/* File pane header needs flex layout for title and buttons */
.nn-list-pane .nn-pane-header > .nn-header-actions {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
/* Navigation pane header - matches folder tree background for visual consistency */
.nn-navigation-pane .nn-pane-header {
background-color: var(--nn-theme-nav-bg);
}
/* File list pane header */
.nn-list-pane .nn-pane-header {
background-color: var(--nn-theme-list-bg);
}
/* Header actions container - groups action buttons in headers */
.nn-header-actions {
display: flex;
gap: 2px;
align-items: center;
}
.nn-header-actions-profile {
gap: 8px;
flex: 1 1 auto;
overflow: hidden;
}
.nn-pane-header-profile {
gap: 4px;
padding-right: 0;
justify-content: flex-start;
display: inline-flex;
align-items: center;
}
.nn-pane-header-profile[role='button'] {
cursor: pointer;
}
.nn-pane-header-profile:focus-visible {
outline: 1px solid var(--interactive-accent);
outline-offset: 1px;
border-radius: 6px;
}
.nn-pane-header-profile-chevron {
width: var(--nn-nav-icon-size);
height: var(--nn-nav-icon-size);
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--nn-theme-list-header-breadcrumb-color);
}
.nn-pane-header-title {
font-size: var(--nn-desktop-header-font-size);
font-weight: var(--nn-theme-list-header-breadcrumb-font-weight);
color: var(--nn-theme-list-header-breadcrumb-color);
padding-left: 12px;
flex: 1;
min-width: 0;
display: flex;
align-items: center;
}
.nn-pane-header-title.nn-pane-header-profile {
padding-left: 0;
}
.nn-single-pane .nn-list-pane .nn-pane-header-title {
padding-left: 2px;
}
.nn-pane-header-icon {
width: var(--nn-nav-icon-size);
height: var(--nn-nav-icon-size);
margin-inline-end: 8px;
flex-shrink: 0;
display: flex;
align-items: center;
color: var(--nn-theme-list-header-icon-color);
overflow: visible;
}
.nn-pane-header-icon svg {
width: var(--nn-nav-icon-size);
height: var(--nn-nav-icon-size);
}
.nn-pane-header-icon.nn-emoji-icon {
font-size: var(--nn-nav-icon-size);
line-height: var(--nn-nav-icon-size);
text-align: center;
justify-content: center;
}
.nn-pane-header-icon.nn-iconfont {
font-size: var(--nn-nav-icon-size);
line-height: var(--nn-nav-icon-size);
}
.nn-pane-header-icon[data-has-color='true'] svg {
stroke-width: 2.4;
}
.nn-pane-header-text {
line-height: var(--nn-nav-line-height);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--nn-theme-list-header-breadcrumb-color);
flex: 1;
min-width: 0;
}
.nn-pane-header-profile .nn-pane-header-text {
flex: 0 1 auto;
}
.nn-pane-header-folder-note {
text-decoration: var(--nn-theme-navitem-folder-note-name-decoration) !important;
}
.nn-pane-header-folder-note:hover {
cursor: pointer;
text-decoration: var(--nn-theme-navitem-folder-note-name-hover-decoration) !important;
}
/* ========================================================================
Mobile Headers + Breadcrumb
======================================================================== */
/* Mobile header - adjust for back button */
.notebook-navigator-mobile .nn-pane-header {
flex-shrink: 0;
min-height: 48px;
display: flex;
align-items: center;
padding: 0 var(--nn-file-item-padding-horizontal);
background-color: var(--nn-theme-list-bg);
}
/* Simplified mobile headers */
.notebook-navigator-mobile .nn-pane-header-simple {
justify-content: center;
text-align: center;
}
.notebook-navigator-mobile .nn-navigation-pane .nn-pane-header-simple {
justify-content: center;
text-align: center;
}
.notebook-navigator-mobile .nn-pane-header-simple .nn-pane-header-profile {
width: 100%;
flex: 1 1 auto;
justify-content: center;
text-align: center;
}
.notebook-navigator-mobile .nn-pane-header-simple .nn-pane-header-title {
font-size: var(--nn-mobile-header-font-size);
font-weight: var(--nn-theme-mobile-list-header-breadcrumb-font-weight);
color: var(--nn-theme-mobile-list-header-breadcrumb-color);
width: 100%;
text-align: center;
}