book-index-ui 0.66.11 → 0.66.12

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.
package/dist/index.cjs CHANGED
@@ -635,15 +635,17 @@ button.bim-rd-pg:hover { border-color: ${s.bim("accent")}; }
635
635
  }
636
636
  .guji-text-reflow-view {
637
637
  width: 100%;
638
- max-width: 760px;
638
+ /* 随字号走:与外层 .bim-rd-col 同为 50em,不再卡死窄宽度(宽屏时两侧留白过大);--bimrd-fs 未设时 18px(同 DEFAULT_FONT_SIZE;原先写死 20px,字号设置对它无效) */
639
+ max-width: 50em;
639
640
  margin: 0 auto;
641
+ font-size: var(--bimrd-fs, 18px);
640
642
  user-select: text;
641
643
  }
642
644
  .guji-reflow-paragraph {
643
- margin: 0 0 1.4rem 0;
644
- text-indent: 2.7rem;
645
+ margin: 0 0 1.1em 0;
646
+ text-indent: 2.16em;
645
647
  font-family: var(--bimrd-ff, var(--bim-font-serif, "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif));
646
- font-size: 1.25rem;
648
+ font-size: 1em; /* 继承 .guji-text-reflow-view 的 --bimrd-fs,字号设置才生效 */
647
649
  letter-spacing: 0.02em;
648
650
  color: ${s.bim("ink")};
649
651
  text-align: justify;
@@ -655,13 +657,13 @@ button.bim-rd-pg:hover { border-color: ${s.bim("accent")}; }
655
657
  font-family: var(--bimrd-ff, var(--bim-font-serif, "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif));
656
658
  color: ${s.bim("ink")};
657
659
  font-weight: 700;
658
- margin: 2rem 0 1rem;
660
+ margin: 1.6em 0 0.8em;
659
661
  scroll-margin-top: 96px;
660
662
  }
661
- .guji-reflow-heading.guji-reflow-h1 { font-size: 1.6rem; letter-spacing: 0.08em; }
662
- .guji-reflow-heading.guji-reflow-h2 { font-size: 1.4rem; letter-spacing: 0.05em; }
663
- .guji-reflow-heading.guji-reflow-h3 { font-size: 1.25rem; letter-spacing: 0.02em; margin: 1.6rem 0 0.8rem; }
664
- .guji-reflow-heading.guji-reflow-h4, .guji-reflow-heading.guji-reflow-h5, .guji-reflow-heading.guji-reflow-h6 { font-size: 1.25rem; letter-spacing: 0.02em; font-weight: 600; margin: 1.4rem 0 0.7rem; }
663
+ .guji-reflow-heading.guji-reflow-h1 { font-size: 1.28em; letter-spacing: 0.08em; }
664
+ .guji-reflow-heading.guji-reflow-h2 { font-size: 1.12em; letter-spacing: 0.05em; }
665
+ .guji-reflow-heading.guji-reflow-h3 { font-size: 1em; letter-spacing: 0.02em; margin: 1.3em 0 0.65em; }
666
+ .guji-reflow-heading.guji-reflow-h4, .guji-reflow-heading.guji-reflow-h5, .guji-reflow-heading.guji-reflow-h6 { font-size: 1em; letter-spacing: 0.02em; font-weight: 600; margin: 1.1em 0 0.55em; }
665
667
  .guji-text-scroll-v {
666
668
  writing-mode: vertical-rl;
667
669
  text-orientation: upright;
@@ -675,7 +677,7 @@ button.bim-rd-pg:hover { border-color: ${s.bim("accent")}; }
675
677
  display: inline-block;
676
678
  vertical-align: top;
677
679
  font-family: var(--bimrd-ff, var(--bim-font-serif, "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif));
678
- font-size: 1.35rem;
680
+ font-size: calc(var(--bimrd-fs, 18px) * 1.08);
679
681
  letter-spacing: 0;
680
682
  margin-left: 18px;
681
683
  user-select: text;
package/dist/index.js CHANGED
@@ -4400,15 +4400,17 @@ button.bim-rd-pg:hover { border-color: ${o("accent")}; }
4400
4400
  }
4401
4401
  .guji-text-reflow-view {
4402
4402
  width: 100%;
4403
- max-width: 760px;
4403
+ /* 随字号走:与外层 .bim-rd-col 同为 50em,不再卡死窄宽度(宽屏时两侧留白过大);--bimrd-fs 未设时 18px(同 DEFAULT_FONT_SIZE;原先写死 20px,字号设置对它无效) */
4404
+ max-width: 50em;
4404
4405
  margin: 0 auto;
4406
+ font-size: var(--bimrd-fs, 18px);
4405
4407
  user-select: text;
4406
4408
  }
4407
4409
  .guji-reflow-paragraph {
4408
- margin: 0 0 1.4rem 0;
4409
- text-indent: 2.7rem;
4410
+ margin: 0 0 1.1em 0;
4411
+ text-indent: 2.16em;
4410
4412
  font-family: var(--bimrd-ff, var(--bim-font-serif, "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif));
4411
- font-size: 1.25rem;
4413
+ font-size: 1em; /* 继承 .guji-text-reflow-view 的 --bimrd-fs,字号设置才生效 */
4412
4414
  letter-spacing: 0.02em;
4413
4415
  color: ${o("ink")};
4414
4416
  text-align: justify;
@@ -4420,13 +4422,13 @@ button.bim-rd-pg:hover { border-color: ${o("accent")}; }
4420
4422
  font-family: var(--bimrd-ff, var(--bim-font-serif, "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif));
4421
4423
  color: ${o("ink")};
4422
4424
  font-weight: 700;
4423
- margin: 2rem 0 1rem;
4425
+ margin: 1.6em 0 0.8em;
4424
4426
  scroll-margin-top: 96px;
4425
4427
  }
4426
- .guji-reflow-heading.guji-reflow-h1 { font-size: 1.6rem; letter-spacing: 0.08em; }
4427
- .guji-reflow-heading.guji-reflow-h2 { font-size: 1.4rem; letter-spacing: 0.05em; }
4428
- .guji-reflow-heading.guji-reflow-h3 { font-size: 1.25rem; letter-spacing: 0.02em; margin: 1.6rem 0 0.8rem; }
4429
- .guji-reflow-heading.guji-reflow-h4, .guji-reflow-heading.guji-reflow-h5, .guji-reflow-heading.guji-reflow-h6 { font-size: 1.25rem; letter-spacing: 0.02em; font-weight: 600; margin: 1.4rem 0 0.7rem; }
4428
+ .guji-reflow-heading.guji-reflow-h1 { font-size: 1.28em; letter-spacing: 0.08em; }
4429
+ .guji-reflow-heading.guji-reflow-h2 { font-size: 1.12em; letter-spacing: 0.05em; }
4430
+ .guji-reflow-heading.guji-reflow-h3 { font-size: 1em; letter-spacing: 0.02em; margin: 1.3em 0 0.65em; }
4431
+ .guji-reflow-heading.guji-reflow-h4, .guji-reflow-heading.guji-reflow-h5, .guji-reflow-heading.guji-reflow-h6 { font-size: 1em; letter-spacing: 0.02em; font-weight: 600; margin: 1.1em 0 0.55em; }
4430
4432
  .guji-text-scroll-v {
4431
4433
  writing-mode: vertical-rl;
4432
4434
  text-orientation: upright;
@@ -4440,7 +4442,7 @@ button.bim-rd-pg:hover { border-color: ${o("accent")}; }
4440
4442
  display: inline-block;
4441
4443
  vertical-align: top;
4442
4444
  font-family: var(--bimrd-ff, var(--bim-font-serif, "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif));
4443
- font-size: 1.35rem;
4445
+ font-size: calc(var(--bimrd-fs, 18px) * 1.08);
4444
4446
  letter-spacing: 0;
4445
4447
  margin-left: 18px;
4446
4448
  user-select: text;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "book-index-ui",
3
- "version": "0.66.11",
3
+ "version": "0.66.12",
4
4
  "description": "React components for browsing and editing ancient book index metadata",
5
5
  "author": "Li Shaodong",
6
6
  "repository": {