privateboard 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,15 +49,21 @@
49
49
  as PingFang globally (user preference). Songti SC remains as a
50
50
  last-resort fallback for headless contexts that can't reach
51
51
  PingFang's font directory. */
52
- --serif: "Charter", "Source Serif Pro", "Iowan Old Style", Georgia,
52
+ /* CJK dispatch handles lead each cascade · see report.html
53
+ @font-face block. Without "cjk-*" first, Chrome's print pipeline
54
+ lands on Arial mid-cascade and renders Chinese as .notdef. */
55
+ --serif: "cjk-serif",
56
+ "Charter", "Source Serif Pro", "Iowan Old Style", Georgia,
53
57
  "PingFang SC", "PingFang TC", "Hiragino Sans GB",
54
58
  "Source Han Sans CN", "Noto Sans CJK SC",
55
59
  "Songti SC", "STSong", serif;
56
- --sans: "Inter", "Helvetica Neue", "Arial", -apple-system, BlinkMacSystemFont,
60
+ --sans: "cjk-sans",
61
+ "Inter", "Helvetica Neue", "Arial", -apple-system, BlinkMacSystemFont,
57
62
  "PingFang SC", "PingFang TC", "Hiragino Sans GB",
58
63
  "Source Han Sans CN", "Noto Sans CJK SC",
59
64
  "Songti SC", "STSong", sans-serif;
60
- --mono: "SF Mono", "JetBrains Mono", "Menlo",
65
+ --mono: "cjk-mono",
66
+ "SF Mono", "JetBrains Mono", "Menlo",
61
67
  "PingFang SC", "PingFang TC", "Hiragino Sans GB",
62
68
  "Source Han Sans CN", "Songti SC", "STSong", monospace;
63
69
  }
@@ -1086,9 +1092,8 @@ html, body {
1086
1092
  background: transparent;
1087
1093
  border-top: 1px solid var(--gold);
1088
1094
  border-bottom: 1px solid var(--rule);
1089
- padding: 22px 0 18px;
1095
+ padding: 18px 0 14px;
1090
1096
  margin: 20px 0 26px;
1091
- min-height: 360px;
1092
1097
  text-align: center;
1093
1098
  font-family: var(--mono);
1094
1099
  font-size: 11px;
@@ -32,15 +32,22 @@
32
32
  /* Latin remains serif (Tiempos / Charter — anthropic signature).
33
33
  CJK falls to PingFang SC first per global preference; Songti
34
34
  remains as a last-resort fallback. */
35
- --serif: "Tiempos Headline", "Tiempos", "Source Serif Pro", "Charter",
35
+ /* CJK dispatch handles (cjk-serif/sans/mono) lead each cascade so
36
+ Chrome's print pipeline routes CJK code points to PingFang/Songti
37
+ via @font-face unicode-range. Without these, Chrome lands on
38
+ Arial mid-cascade and renders Chinese as .notdef glyphs in PDFs. */
39
+ --serif: "cjk-serif",
40
+ "Tiempos Headline", "Tiempos", "Source Serif Pro", "Charter",
36
41
  "Iowan Old Style", "Palatino", Georgia,
37
42
  "PingFang SC", "PingFang TC", "Hiragino Sans GB",
38
43
  "Source Han Sans CN", "Noto Sans CJK SC",
39
44
  "Songti SC", "STSong", serif;
40
- --sans: "Söhne", "Styrene B", "Inter", "Helvetica Neue", -apple-system,
45
+ --sans: "cjk-sans",
46
+ "Söhne", "Styrene B", "Inter", "Helvetica Neue", -apple-system,
41
47
  BlinkMacSystemFont, system-ui,
42
48
  "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "Noto Sans CJK SC", sans-serif;
43
- --mono: "Söhne Mono", "JetBrains Mono", "SF Mono",
49
+ --mono: "cjk-mono",
50
+ "Söhne Mono", "JetBrains Mono", "SF Mono",
44
51
  "PingFang SC", "Source Han Sans CN", monospace;
45
52
  }
46
53
 
@@ -602,7 +609,7 @@ html, body {
602
609
  .body section.section-methodology strong { color: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 600; }
603
610
 
604
611
  .body pre.codeblock { background: var(--surface); border: 1px solid var(--rule); padding: 14px; font-family: var(--mono); font-size: 14px; color: var(--ink-mid); border-radius: 3px; }
605
- .body pre.mermaid { background: var(--surface); border-top: 2px solid var(--clay); border-bottom: 1px solid var(--rule); padding: 28px 24px 24px; margin: 22px 0 28px; min-height: 380px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
612
+ .body pre.mermaid { background: var(--surface); border-top: 2px solid var(--clay); border-bottom: 1px solid var(--rule); padding: 20px 18px 18px; margin: 22px 0 28px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
606
613
  .body pre.mermaid svg text { font-family: var(--serif) !important; }
607
614
 
608
615
  .foot-rule {
@@ -51,12 +51,17 @@
51
51
  of every cascade — they're guaranteed-present on Mac and serve
52
52
  as a last-resort glyph source if the preferred CJK families
53
53
  aren't available (some print / headless contexts). */
54
- --mono: "Human Sans", "Inter", -apple-system, BlinkMacSystemFont,
54
+ /* CJK dispatch handles lead each cascade · see report.html
55
+ @font-face block. Without "cjk-*" first, Chrome's print pipeline
56
+ lands on Arial mid-cascade and renders Chinese as .notdef. */
57
+ --mono: "cjk-mono",
58
+ "Human Sans", "Inter", -apple-system, BlinkMacSystemFont,
55
59
  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
56
60
  "Source Han Sans CN", "Noto Sans CJK SC",
57
61
  "Songti SC", "STSong",
58
62
  "Segoe UI", system-ui, sans-serif;
59
- --sans: "Human Sans", "Inter", -apple-system, BlinkMacSystemFont,
63
+ --sans: "cjk-sans",
64
+ "Human Sans", "Inter", -apple-system, BlinkMacSystemFont,
60
65
  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
61
66
  "Source Han Sans CN", "Noto Sans CJK SC",
62
67
  "Songti SC", "STSong",
@@ -69,7 +74,8 @@
69
74
  fall through to PingFang SC first (sans) — user preference is
70
75
  that Chinese reads in PingFang globally. Songti / Source Han
71
76
  Serif sit deep as last-resort fallbacks. */
72
- --serif: "Charter", "Source Serif Pro", "Iowan Old Style",
77
+ --serif: "cjk-serif",
78
+ "Charter", "Source Serif Pro", "Iowan Old Style",
73
79
  "Georgia",
74
80
  "PingFang SC", "PingFang TC", "Hiragino Sans GB",
75
81
  "Source Han Sans CN", "Noto Sans CJK SC",
@@ -1047,7 +1053,7 @@ html, body {
1047
1053
  background: var(--panel-2);
1048
1054
  border-top: 2px solid var(--text);
1049
1055
  border-bottom: 1px solid var(--line-bright);
1050
- padding: 28px 24px 24px;
1056
+ padding: 20px 18px 18px;
1051
1057
  margin: 22px 0 28px;
1052
1058
  text-align: center;
1053
1059
  overflow-x: auto;
@@ -1055,7 +1061,11 @@ html, body {
1055
1061
  font-size: 11px;
1056
1062
  color: var(--text-faint);
1057
1063
  line-height: 1.4;
1058
- min-height: 360px;
1064
+ /* No min-height · the chart's own dimensions (set in mermaid init)
1065
+ drive the frame size. Forcing 360px left empty bands above /
1066
+ below smaller diagrams (sequence, journey, mindmap) and pushed
1067
+ the design toward "presentation slide" rather than "inline
1068
+ exhibit". Refined-compact = the frame sizes to its content. */
1059
1069
  }
1060
1070
  .body pre.mermaid svg {
1061
1071
  max-width: 100%;
@@ -28,10 +28,15 @@
28
28
  /* Cross-spine token aliases · used by the unified design system. */
29
29
  --accent: var(--brand);
30
30
  --warn: var(--red);
31
- --sans: "Inter", "Helvetica Neue", "Arial", -apple-system, BlinkMacSystemFont,
31
+ /* CJK dispatch handles lead each cascade · see report.html
32
+ @font-face block. Without "cjk-*" first, Chrome's print pipeline
33
+ lands on Arial mid-cascade and renders Chinese as .notdef. */
34
+ --sans: "cjk-sans",
35
+ "Inter", "Helvetica Neue", "Arial", -apple-system, BlinkMacSystemFont,
32
36
  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN",
33
37
  "Noto Sans CJK SC", sans-serif;
34
- --mono: "SF Mono", "JetBrains Mono", "Menlo",
38
+ --mono: "cjk-mono",
39
+ "SF Mono", "JetBrains Mono", "Menlo",
35
40
  "PingFang SC", "Source Han Sans CN", monospace;
36
41
  }
37
42
 
@@ -431,7 +436,7 @@ html, body {
431
436
  .body section.section-methodology strong { color: var(--ink-soft); font-family: var(--mono); font-size: 12px; }
432
437
 
433
438
  .body pre.codeblock { background: var(--bg-soft); border: 1px solid var(--rule); padding: 12px 14px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
434
- .body pre.mermaid { background: var(--bg); border-top: 2px solid var(--brand); border-bottom: 1px solid var(--rule); padding: 28px 24px 24px; margin: 22px 0 28px; min-height: 380px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
439
+ .body pre.mermaid { background: var(--bg); border-top: 2px solid var(--brand); border-bottom: 1px solid var(--rule); padding: 20px 18px 18px; margin: 22px 0 28px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
435
440
  .body pre.mermaid svg text { font-family: var(--sans) !important; }
436
441
 
437
442
  .foot-rule {
@@ -30,10 +30,15 @@
30
30
  report.html. */
31
31
  --accent: var(--blue);
32
32
  --warn: var(--red);
33
- --sans: "Inter", "Helvetica Neue", "Arial", -apple-system, BlinkMacSystemFont,
33
+ /* CJK dispatch handles lead each cascade · see report.html
34
+ @font-face block. Without "cjk-*" first, Chrome's print pipeline
35
+ lands on Arial mid-cascade and renders Chinese as .notdef. */
36
+ --sans: "cjk-sans",
37
+ "Inter", "Helvetica Neue", "Arial", -apple-system, BlinkMacSystemFont,
34
38
  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN",
35
39
  "Noto Sans CJK SC", sans-serif;
36
- --mono: "SF Mono", "JetBrains Mono", "Menlo",
40
+ --mono: "cjk-mono",
41
+ "SF Mono", "JetBrains Mono", "Menlo",
37
42
  "PingFang SC", "Source Han Sans CN", monospace;
38
43
  }
39
44
 
@@ -419,7 +424,7 @@ html, body {
419
424
  .body section.section-methodology strong { color: var(--ink-soft); font-family: var(--mono); font-size: 12px; }
420
425
 
421
426
  .body pre.codeblock { background: var(--soft); border: 1px solid var(--rule); padding: 14px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
422
- .body pre.mermaid { background: var(--bg); border-top: 2px solid var(--navy); border-bottom: 1px solid var(--rule); padding: 28px 24px 24px; margin: 22px 0 28px; min-height: 380px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
427
+ .body pre.mermaid { background: var(--bg); border-top: 2px solid var(--navy); border-bottom: 1px solid var(--rule); padding: 20px 18px 18px; margin: 22px 0 28px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
423
428
  .body pre.mermaid svg text { font-family: var(--sans) !important; }
424
429
 
425
430
  .foot-rule {
@@ -21,10 +21,15 @@
21
21
  /* Cross-spine token aliases · used by the unified design system. */
22
22
  --accent: var(--teal);
23
23
  --warn: var(--red);
24
- --sans: "Söhne", "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, system-ui,
24
+ /* CJK dispatch handles lead each cascade · see report.html
25
+ @font-face block. Without "cjk-*" first, Chrome's print pipeline
26
+ lands on Arial mid-cascade and renders Chinese as .notdef. */
27
+ --sans: "cjk-sans",
28
+ "Söhne", "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, system-ui,
25
29
  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN",
26
30
  "Noto Sans CJK SC", sans-serif;
27
- --mono: "Söhne Mono", "JetBrains Mono", "SF Mono", "Menlo",
31
+ --mono: "cjk-mono",
32
+ "Söhne Mono", "JetBrains Mono", "SF Mono", "Menlo",
28
33
  "PingFang SC", "Source Han Sans CN", monospace;
29
34
  }
30
35
 
@@ -412,7 +417,7 @@ html, body {
412
417
  .body section.section-methodology strong { color: var(--ink-soft); font-family: var(--mono); }
413
418
 
414
419
  .body pre.codeblock { background: var(--paper); border: 1px solid var(--rule); padding: 14px 16px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); border-radius: 4px; }
415
- .body pre.mermaid { background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); border-radius: 4px; padding: 28px 24px 24px; margin: 22px 0 28px; min-height: 380px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
420
+ .body pre.mermaid { background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); border-radius: 4px; padding: 20px 18px 18px; margin: 22px 0 28px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
416
421
  .body pre.mermaid svg text { font-family: var(--sans) !important; }
417
422
 
418
423
  .foot-rule {