-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
4673 lines (3915 loc) · 144 KB
/
styles.css
File metadata and controls
4673 lines (3915 loc) · 144 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
/* Workflowy Plugin Styles - Properly Isolated */
/* All styles are scoped within .workflowy-container to prevent leaking into native Obsidian views */
/* Workflowy Enhanced Styles */
.workflowy-container {
/* 使用 Obsidian 原生 CSS 变量,跟随用户全局设置 */
/* --font-text-size 和 --line-height-normal 由 Obsidian 设置控制 */
/* 圆点大小使用 em 单位,会自动跟随字体大小变化 */
--workflowy-font-family: var(--font-text);
font-family: var(--workflowy-font-family);
font-size: var(--font-text-size);
line-height: var(--line-height-normal);
color: var(--text-normal);
background: var(--background-primary);
padding: 20px;
height: 100%;
overflow-y: auto;
}
/* 禁用动画时移除所有过渡效果 */
.workflowy-container:not(.animations-enabled) * {
transition: none !important;
animation: none !important;
}
/* 导航头部样式(面包屑+搜索框) */
.workflowy-container .workflowy-navigation-header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 20px;
padding: 12px 16px;
background: var(--background-secondary);
border-radius: 8px;
border: 1px solid var(--background-modifier-border);
transition: all 0.2s ease;
position: relative;
/* 为绝对定位的菜单提供定位上下文 */
}
.workflowy-container .workflowy-navigation-header:hover {
border-color: var(--text-accent);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
/* 面包屑导航 */
.workflowy-container .workflowy-breadcrumbs {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
flex: 1;
min-width: 0;
}
.workflowy-container .workflowy-breadcrumb-item {
display: inline-flex;
align-items: center;
padding: 4px 10px;
border-radius: 4px;
font-size: 13px;
color: var(--text-muted);
text-decoration: none;
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 200px;
background: var(--background-primary);
border: 1px solid transparent;
}
.workflowy-container .workflowy-breadcrumb-item:hover {
color: var(--text-normal);
background: var(--background-modifier-hover);
border-color: var(--background-modifier-border);
transform: translateY(-1px);
}
.workflowy-container .workflowy-breadcrumb-item:active {
transform: translateY(0);
}
.workflowy-container .workflowy-breadcrumb-item.current {
color: var(--text-accent);
font-weight: 500;
background: rgba(var(--color-accent-rgb), 0.1);
border-color: var(--text-accent);
cursor: default;
}
.workflowy-container .workflowy-breadcrumb-item.current:hover {
transform: none;
}
.workflowy-container .workflowy-breadcrumb-delimiter {
color: var(--text-faint);
font-size: 12px;
margin: 0 2px;
opacity: 0.6;
}
/* 搜索框样式(在导航头部中) */
.workflowy-container .workflowy-navigation-header .workflowy-search {
padding: 8px 12px;
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
background: var(--background-primary);
color: var(--text-normal);
font-size: 13px;
width: 200px;
transition: all 0.2s ease;
}
.workflowy-container .workflowy-navigation-header .workflowy-search:focus {
outline: none;
border-color: var(--text-accent);
box-shadow: 0 0 0 2px rgba(var(--color-accent-rgb), 0.1);
width: 250px;
}
/* 旧工具栏样式(保留以防需要) */
.workflowy-container .workflowy-toolbar {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 24px;
padding-bottom: 12px;
border-bottom: 1px solid var(--background-modifier-border);
}
.workflowy-container .workflowy-btn {
padding: 8px 16px;
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
background: var(--background-secondary);
color: var(--text-normal);
cursor: pointer;
font-size: 13px;
font-weight: 500;
transition: all 0.2s ease;
}
.workflowy-container .workflowy-btn:hover {
background: var(--background-modifier-hover);
border-color: var(--text-accent);
}
.workflowy-container .workflowy-search {
padding: 8px 12px;
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
background: var(--background-primary);
color: var(--text-normal);
font-size: 14px;
flex: 1;
max-width: 300px;
transition: border-color 0.2s ease;
}
.workflowy-container .workflowy-search:focus {
outline: none;
border-color: var(--text-accent);
}
.workflowy-container .workflowy-editor {
outline: none;
min-height: 400px;
}
.workflowy-container .workflowy-item {
position: relative;
margin: 0;
padding: 0;
transition: background-color 0.15s ease;
}
.workflowy-container .workflowy-item:hover {
background: rgba(var(--mono-rgb-0), 0.03);
border-radius: 4px;
}
.workflowy-container .workflowy-item.focused {
background: rgba(var(--color-accent-rgb), 0.08);
border-radius: 4px;
}
.workflowy-container .workflowy-item.hovered {
background: rgba(var(--mono-rgb-0), 0.05);
border-radius: 4px;
}
.workflowy-container .workflowy-content-line {
display: flex;
align-items: var(--workflowy-bullet-align, flex-start);
min-height: 2em;
padding: 2px 0;
}
.workflowy-container .workflowy-collapse {
width: 1.1em;
height: 1.1em;
display: flex;
align-items: center;
justify-content: center;
/*
* 对齐计算:让折叠指示器中心与文字第一行中心对齐
* 文字 padding-top: 4px,行高约 1.5em,第一行中心 ≈ 4px + 0.75em
* 折叠指示器高度 1.1em,中心在 0.55em
* margin-top = 4px + 0.75em - 0.55em = 4px + 0.2em
*/
margin: calc(4px + 0.2em) 0.3em 0 0;
cursor: pointer;
color: var(--text-muted);
border-radius: 2px;
transition: all 0.2s ease;
flex-shrink: 0;
}
/* 折叠指示器 SVG 样式 */
.workflowy-container .workflowy-collapse svg {
width: 0.7em;
height: 0.7em;
transition: transform 0.2s ease;
}
/* 展开状态:SVG 旋转 90° */
.workflowy-container .workflowy-collapse:not(.collapsed) svg {
transform: rotate(90deg);
}
.workflowy-container .workflowy-collapse:hover {
background: var(--background-modifier-hover);
color: var(--text-normal);
}
.workflowy-container .workflowy-collapse-placeholder {
width: 1.1em;
height: 1.1em;
margin: calc(4px + 0.2em) 0.3em 0 0;
flex-shrink: 0;
}
.workflowy-container .workflowy-bullet {
/* 使用 em 单位让圆点大小跟随字体大小变化 */
width: 0.4em;
height: 0.4em;
border-radius: 50%;
background: var(--text-muted);
/*
* 对齐计算:让圆点中心与文字第一行中心对齐
* 文字 padding-top: 4px,行高约 1.5em,第一行中心 ≈ 4px + 0.75em
* 圆点高度 0.4em,中心在 0.2em
* margin-top = 4px + 0.75em - 0.2em = 4px + 0.55em
*/
margin: calc(4px + 0.55em) 0.7em 0 0;
flex-shrink: 0;
transition: all 0.2s ease;
cursor: pointer;
}
/* 有序列表序号样式 */
.workflowy-container .workflowy-order-number {
font-size: inherit;
color: var(--text-muted);
/*
* 对齐计算:让序号中心与圆点中心对齐
* 圆点 margin-top: calc(4px + 0.55em),圆点中心在 margin-top + 0.2em
* 序号高度约 1em(line-height: 1),中心在 0.5em
* 序号 margin-top = 圆点 margin-top + 圆点中心 - 序号中心
* = (4px + 0.55em) + 0.2em - 0.5em = 4px + 0.25em
*/
margin: calc(4px + 0.25em) -0.3em 0 0;
flex-shrink: 0;
font-weight: normal;
min-width: 1em;
line-height: 1;
}
/* 折叠状态的节点 bullet 添加外圈阴影效果(使用 em 单位) */
.workflowy-container .workflowy-item:has(.workflowy-collapse.collapsed) .workflowy-bullet {
box-shadow: 0 0 0 0.3em rgba(128, 128, 128, 0.15);
}
.workflowy-container .workflowy-item:hover .workflowy-bullet {
background: var(--text-accent);
transform: scale(1.3);
box-shadow: 0 0 0 2px rgba(var(--color-accent-rgb), 0.2);
}
.workflowy-container .workflowy-item.focused .workflowy-bullet {
background: var(--text-accent);
box-shadow: 0 0 0 2px rgba(var(--color-accent-rgb), 0.3);
}
/* 待办事项复选框样式 */
.workflowy-container .workflowy-checkbox {
width: 1.3em;
height: 1.3em;
border: 2px solid var(--text-muted);
border-radius: 4px;
/*
* 对齐计算:让复选框中心与文字第一行中心对齐
* 文字 padding-top: 4px,行高约 1.5em,第一行中心 ≈ 4px + 0.75em
* 复选框高度 1.3em,中心在 0.65em
* margin-top = 4px + 0.75em - 0.65em = 4px + 0.1em
*/
margin: calc(4px + 0.1em) 0.4em 0 0;
flex-shrink: 0;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
background: var(--background-primary);
}
/* 复选框内 SVG 图标样式 */
.workflowy-container .workflowy-checkbox svg {
width: 0.85em;
height: 0.85em;
}
.workflowy-container .workflowy-checkbox.completed {
background: var(--background-primary);
border-color: var(--text-faint);
color: var(--text-faint);
}
.workflowy-container .workflowy-checkbox:hover {
border-color: var(--text-accent);
transform: scale(1.05);
}
.workflowy-container .workflowy-item.focused .workflowy-checkbox {
border-color: var(--text-accent);
}
/* 已完成的待办事项文字样式 - 只应用于当前节点 */
/* 已完成的待办事项文字样式 - 源码模式 */
.workflowy-container .workflowy-item.todo-completed .workflowy-content {
text-decoration: line-through !important;
opacity: 0.5 !important;
color: var(--text-muted) !important;
}
/* 已完成的待办事项文字样式 - Live Preview 模式(显示层) */
.workflowy-container .workflowy-item.todo-completed .workflowy-content-display {
text-decoration: line-through !important;
opacity: 0.5 !important;
color: var(--text-muted) !important;
}
/* 已完成的待办事项文字样式 - Live Preview 模式(编辑层) */
.workflowy-container .workflowy-item.todo-completed .workflowy-content-editor {
text-decoration: line-through !important;
opacity: 0.5 !important;
color: var(--text-muted) !important;
}
/* 已完成待办的子节点只应用灰色半透明,不需要删除线 - 源码模式 */
.workflowy-container .workflowy-item.child-of-completed-todo .workflowy-content {
text-decoration: none !important;
opacity: 0.5 !important;
color: var(--text-muted) !important;
}
/* 已完成待办的子节点 - Live Preview 模式(显示层) */
.workflowy-container .workflowy-item.child-of-completed-todo .workflowy-content-display {
text-decoration: none !important;
opacity: 0.5 !important;
color: var(--text-muted) !important;
}
/* 已完成待办的子节点 - Live Preview 模式(编辑层) */
.workflowy-container .workflowy-item.child-of-completed-todo .workflowy-content-editor {
text-decoration: none !important;
opacity: 0.5 !important;
color: var(--text-muted) !important;
}
.workflowy-container .workflowy-content {
flex: 1;
outline: none;
border: none;
background: transparent;
font-size: var(--font-text-size);
line-height: var(--line-height-normal);
font-family: var(--workflowy-font-family, inherit);
padding: 4px 8px;
margin: 0;
color: var(--text-normal);
min-height: 20px;
word-wrap: break-word;
white-space: pre-wrap;
border-radius: 3px;
transition: all 0.2s ease;
}
.workflowy-container .workflowy-content:focus {
background: rgba(var(--color-accent-rgb), 0.05);
box-shadow: 0 0 0 1px rgba(var(--color-accent-rgb), 0.2);
}
.workflowy-container .workflowy-content:empty:before {
content: attr(data-placeholder);
color: var(--text-faint);
font-style: italic;
pointer-events: none;
}
.workflowy-container .workflowy-children {
margin-left: 0;
overflow: hidden;
transition: all 0.3s ease-out;
}
.workflowy-container .workflowy-children.collapsed {
max-height: 0;
opacity: 0;
margin: 0;
}
.workflowy-container .search-match {
background: rgba(var(--color-yellow-rgb), 0.3) !important;
border-radius: 4px;
}
/* 移除自动动画以防止重新渲染时所有内容抖动 */
/* .workflowy-container .workflowy-item {
animation: fadeInUp 0.2s ease-out;
} */
/* @keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
} */
/* 垂直缩进线样式 */
.workflowy-vertical-line {
pointer-events: auto !important;
position: absolute !important;
/* 使用 border 而不是 background 来绘制线条,确保统一渲染 */
width: 0 !important;
border-left: 1px solid var(--text-faint) !important;
z-index: 2 !important;
cursor: pointer !important;
background: transparent !important;
transition: border-color 0.15s ease !important;
border-right: none !important;
border-top: none !important;
border-bottom: none !important;
outline: none !important;
box-shadow: none !important;
/* 强制像素对齐,避免子像素渲染问题 */
transform: translateZ(0) !important;
will-change: auto !important;
}
.workflowy-vertical-line:hover {
border-left-color: var(--text-normal) !important;
border-left-width: 2px !important;
}
.workflowy-vertical-lines-scroller {
position: absolute !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
pointer-events: none !important;
z-index: 1 !important;
overflow: hidden !important;
}
/* 拖拽样式 */
.workflowy-container .workflowy-item[draggable="true"] {
cursor: move;
}
/* 被拖拽的节点 - 半透明灰色背景 */
.workflowy-container .workflowy-item.dragging {
opacity: 0.7;
background: rgba(128, 128, 128, 0.3) !important;
border: 1px solid var(--text-muted);
border-radius: 4px;
/* 不改变 position,避免影响布局和垂直线定位 */
}
/* 拖拽到上方 - 显示顶部插入线(使用 ::after 避免与 child 的 ::before 冲突) */
.workflowy-container .workflowy-item.drag-over-top {
position: relative;
}
.workflowy-container .workflowy-item.drag-over-top::after {
content: '';
position: absolute;
left: var(--drop-indent, 0);
right: 0;
top: -1px;
height: 2px;
background: #3498db;
z-index: 1000;
pointer-events: none;
}
/* 拖拽到下方 - 显示底部插入线 */
.workflowy-container .workflowy-item.drag-over-bottom {
position: relative;
}
.workflowy-container .workflowy-item.drag-over-bottom::after {
content: '';
position: absolute;
left: var(--drop-indent, 0);
right: 0;
bottom: -1px;
height: 2px;
background: #3498db;
z-index: 1000;
pointer-events: none;
}
/* 拖拽为子项 - 显示浅蓝色背景 */
.workflowy-container .workflowy-item.drag-over-child {
background: rgba(52, 152, 219, 0.1) !important;
border-radius: 4px;
position: relative;
}
.workflowy-container .workflowy-item .workflowy-content {
/* 防止文本编辑时拖拽 */
user-select: text;
}
.workflowy-container .workflowy-item .workflowy-bullet {
/* 通过bullet拖拽 */
cursor: grab;
transition: all 0.2s ease;
}
.workflowy-container .workflowy-item .workflowy-bullet:hover {
transform: scale(1.3);
box-shadow: 0 0 0 2px rgba(var(--color-accent-rgb), 0.3);
}
.workflowy-container .workflowy-item.dragging .workflowy-bullet {
cursor: grabbing;
}
/* 改进content-line的定位 */
.workflowy-container .workflowy-content-line {
position: relative;
}
@media (max-width: 768px) {
.workflowy-container {
padding: 12px;
/* 移动端跟随 Obsidian 设置,不再单独设置字体大小 */
}
.workflowy-container .workflowy-content {
font-size: var(--font-text-size);
padding: 6px 8px;
}
}
/* 多选功能样式 */
.workflowy-container .workflowy-selection-box {
position: absolute;
border: 2px dashed var(--text-accent);
background: rgba(66, 165, 245, 0.1);
pointer-events: none;
z-index: 1000;
display: none;
}
/* 选中状态 */
.workflowy-container .workflowy-item.workflowy-selected {
background: rgba(66, 165, 245, 0.15) !important;
border-radius: 4px;
}
.workflowy-container .workflowy-item.workflowy-selected .workflowy-bullet {
background: var(--text-accent);
transform: scale(1.1);
}
.workflowy-container .workflowy-item.workflowy-selected .workflowy-content {
background: rgba(66, 165, 245, 0.08);
}
/* 多选拖拽状态 */
.workflowy-container .workflowy-item.workflowy-selected.dragging {
opacity: 0.8;
background: rgba(66, 165, 245, 0.25) !important;
border: 2px solid var(--text-accent);
border-radius: 4px;
/* 移除倾斜效果,避免影响垂直线 */
}
/* 多选计数器 */
.workflowy-selection-counter {
position: fixed;
top: 20px;
right: 20px;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
padding: 8px 12px;
font-size: 12px;
color: var(--text-muted);
z-index: 1001;
display: none;
}
.workflowy-selection-counter.visible {
display: block;
}
/*
拖拽指示线 - 完全复用 obsidian-outliner 的实现 */
.workflowy-drop-zone {
width: 300px;
height: 4px;
background: var(--text-accent);
z-index: 999;
position: absolute;
pointer-events: none;
display: none;
}
.workflowy-drop-zone-padding {
position: absolute;
height: 4px;
background-repeat: repeat-x;
background-position: 0 0;
background-size: auto 4px;
}
/* ==================== 主题切换按钮和菜单 ==================== */
.workflowy-container .workflowy-theme-button {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 6px;
transition: all 0.2s ease;
color: var(--text-muted);
flex-shrink: 0;
position: relative;
z-index: 10;
}
.workflowy-container .workflowy-theme-button:hover {
background: var(--background-modifier-hover);
color: var(--text-normal);
transform: scale(1.05);
}
.workflowy-container .workflowy-theme-button svg {
display: block;
}
/* 主题菜单 */
.workflowy-container .workflowy-theme-menu {
position: absolute;
top: 100%;
right: 0;
margin-top: 8px;
background: var(--background-primary);
border: 1px solid var(--background-modifier-border);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
padding: 8px;
z-index: 1000;
max-height: 400px;
overflow-y: auto;
min-width: 280px;
}
/* 主题选项 */
.workflowy-container .workflowy-theme-option {
display: flex;
align-items: center;
gap: 12px;
padding: 8px;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
border: 2px solid transparent;
}
.workflowy-container .workflowy-theme-option:hover {
background: var(--background-modifier-hover);
}
.workflowy-container .workflowy-theme-option.active {
border-color: var(--text-accent);
background: rgba(var(--color-accent-rgb), 0.1);
}
/* 主题预览缩略图 */
.workflowy-container .workflowy-theme-preview {
width: 60px;
height: 45px;
border-radius: 4px;
border: 1px solid var(--background-modifier-border);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
overflow: hidden;
}
.workflowy-container .theme-preview-content {
display: flex;
align-items: center;
gap: 6px;
padding: 4px;
}
.workflowy-container .theme-preview-bullet {
width: 4px;
height: 4px;
border-radius: 50%;
background: currentColor;
flex-shrink: 0;
}
.workflowy-container .theme-preview-text {
font-size: 10px;
white-space: nowrap;
}
/* 主题信息 */
.workflowy-container .workflowy-theme-info {
flex: 1;
min-width: 0;
}
.workflowy-container .workflowy-theme-name {
font-size: 13px;
font-weight: 500;
color: var(--text-normal);
margin-bottom: 2px;
}
.workflowy-container .workflowy-theme-desc {
font-size: 11px;
color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* 主题预览样式 - 应用各主题的配色 */
.workflowy-container .workflowy-theme-preview.workflowy-theme-default {
background: var(--background-primary);
color: var(--text-normal);
}
.workflowy-container .workflowy-theme-preview.workflowy-theme-classic-white {
background: #ffffff;
color: #2c3e50;
}
.workflowy-container .workflowy-theme-preview.workflowy-theme-dark-orange-green {
background: #0a0a0a;
color: #ff9500;
}
.workflowy-container .workflowy-theme-preview.workflowy-theme-warm-beige {
background: #f5f5f0;
color: #4a4a4a;
}
.workflowy-container .workflowy-theme-preview.workflowy-theme-soft-purple {
background: #f0e6f6;
color: #5b4a6b;
}
.workflowy-container .workflowy-theme-preview.workflowy-theme-deep-blue {
background: #1e2a3a;
color: #e0e0e0;
}
.workflowy-container .workflowy-theme-preview.workflowy-theme-dark-gray {
background: #2a2a2a;
color: #e0e0e0;
}
.workflowy-container .workflowy-theme-preview.workflowy-theme-forest-green {
background: #e8f5e9;
color: #1b5e20;
}
.workflowy-container .workflowy-theme-preview.workflowy-theme-ocean-blue {
background: #e3f2fd;
color: #0d47a1;
}
.workflowy-container .workflowy-theme-preview.workflowy-theme-sunset-orange {
background: #fff3e0;
color: #e65100;
}
.workflowy-container .workflowy-theme-preview.workflowy-theme-cherry-pink {
background: #fce4ec;
color: #880e4f;
}
.workflowy-container .workflowy-theme-preview.workflowy-theme-midnight-black {
background: #000000;
color: #ffffff;
}
/* ==================== Workflowy 主题样式 - 12 种主题配色方案 ==================== */
/* 主题 1: 默认(跟随 Obsidian) */
.workflowy-container.workflowy-theme-default {
/* 使用 Obsidian 原生变量,无需额外定义 */
/* 添加透明属性避免空规则集警告 */
--theme-default-marker: 1;
}
/* 主题 2: 经典白 */
.workflowy-container.workflowy-theme-classic-white {
--theme-bg-primary: #ffffff;
--theme-bg-secondary: #f5f5f5;
--theme-text-normal: #2c3e50;
--theme-text-muted: #7f8c8d;
--theme-text-faint: #bdc3c7;
--theme-accent: #3498db;
--theme-bullet: #95a5a6;
--theme-line: #ecf0f1;
background: var(--theme-bg-primary) !important;
color: var(--theme-text-normal) !important;
}
.workflowy-container.workflowy-theme-classic-white .workflowy-content {
color: var(--theme-text-normal) !important;
}
.workflowy-container.workflowy-theme-classic-white .workflowy-content-display {
color: var(--theme-text-normal) !important;
}
.workflowy-container.workflowy-theme-classic-white .workflowy-content-display p {
color: var(--theme-text-normal) !important;
}
.workflowy-container.workflowy-theme-classic-white .workflowy-content-display em {
color: var(--theme-text-muted) !important;
}
.workflowy-container.workflowy-theme-classic-white .workflowy-content-editor {
color: var(--theme-text-normal) !important;
caret-color: #3498db !important;
/* 蓝色光标 */
}
.workflowy-container.workflowy-theme-classic-white .workflowy-bullet {
background: var(--theme-bullet) !important;
}
.workflowy-container.workflowy-theme-classic-white .workflowy-collapse {
color: var(--theme-text-muted) !important;
}
.workflowy-container.workflowy-theme-classic-white .workflowy-vertical-line {
border-left-color: var(--theme-line) !important;
}
.workflowy-container.workflowy-theme-classic-white .workflowy-navigation-header {
background: var(--theme-bg-secondary) !important;
}
/* 主题 3: 暗夜橙绿 */
.workflowy-container.workflowy-theme-dark-orange-green {
--theme-bg-primary: #0a0a0a;
--theme-bg-secondary: #1a1a1a;
--theme-text-normal: #ff9500;
--theme-text-muted: #4cd964;
--theme-text-faint: #2ecc71;
--theme-accent: #ff9500;
--theme-bullet: #4cd964;
--theme-line: #2ecc71;
background: var(--theme-bg-primary) !important;
color: var(--theme-text-normal) !important;
}
.workflowy-container.workflowy-theme-dark-orange-green .workflowy-content {
color: var(--theme-text-normal) !important;
}
.workflowy-container.workflowy-theme-dark-orange-green .workflowy-content-display {
color: var(--theme-text-normal) !important;
}
.workflowy-container.workflowy-theme-dark-orange-green .workflowy-content-display p {
color: var(--theme-text-normal) !important;
}
.workflowy-container.workflowy-theme-dark-orange-green .workflowy-content-display em {
color: var(--theme-text-muted) !important;
}
.workflowy-container.workflowy-theme-dark-orange-green .workflowy-content-editor {
color: var(--theme-text-normal) !important;
caret-color: #ff9500 !important;
/* 橙色光标,与主题文字颜色一致 */
}
.workflowy-container.workflowy-theme-dark-orange-green .workflowy-bullet {
background: var(--theme-bullet) !important;
}
.workflowy-container.workflowy-theme-dark-orange-green .workflowy-collapse {
color: var(--theme-text-muted) !important;
}
.workflowy-container.workflowy-theme-dark-orange-green .workflowy-vertical-line {
border-left-color: var(--theme-line) !important;
}
.workflowy-container.workflowy-theme-dark-orange-green .workflowy-navigation-header {
background: var(--theme-bg-secondary) !important;
border-color: #2a2a2a !important;
}
/* 主题 4: 米白灰 */
.workflowy-container.workflowy-theme-warm-beige {
--theme-bg-primary: #f5f5f0;
--theme-bg-secondary: #e8e8e0;
--theme-text-normal: #4a4a4a;
--theme-text-muted: #7a7a7a;
--theme-text-faint: #aaaaaa;
--theme-accent: #8b7355;
--theme-bullet: #9a9a9a;
--theme-line: #d0d0c8;
background: var(--theme-bg-primary) !important;
color: var(--theme-text-normal) !important;
}
.workflowy-container.workflowy-theme-warm-beige .workflowy-content {
color: var(--theme-text-normal) !important;
}
.workflowy-container.workflowy-theme-warm-beige .workflowy-content-display {
color: var(--theme-text-normal) !important;
}
.workflowy-container.workflowy-theme-warm-beige .workflowy-content-display p {
color: var(--theme-text-normal) !important;
}
.workflowy-container.workflowy-theme-warm-beige .workflowy-content-display em {
color: var(--theme-text-muted) !important;
}
.workflowy-container.workflowy-theme-warm-beige .workflowy-content-editor {
color: var(--theme-text-normal) !important;
caret-color: #8b7355 !important;
/* 棕色光标 */
}
.workflowy-container.workflowy-theme-warm-beige .workflowy-bullet {
background: var(--theme-bullet) !important;
}
.workflowy-container.workflowy-theme-warm-beige .workflowy-collapse {
color: var(--theme-text-muted) !important;
}
.workflowy-container.workflowy-theme-warm-beige .workflowy-vertical-line {
border-left-color: var(--theme-line) !important;
}
.workflowy-container.workflowy-theme-warm-beige .workflowy-navigation-header {
background: var(--theme-bg-secondary) !important;
}
/* 主题 5: 淡紫 */
.workflowy-container.workflowy-theme-soft-purple {
--theme-bg-primary: #f0e6f6;
--theme-bg-secondary: #e6d9f0;