@hanology/cham-browser 0.4.53 → 0.4.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanology/cham-browser",
3
- "version": "0.4.53",
3
+ "version": "0.4.55",
4
4
  "description": "CHAM — browser-compatible parser, serializer, and site generator for Classical Han Annotated Markdown",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -475,17 +475,13 @@ function tcy(n: number): string {
475
475
 
476
476
  <nav class="v-nav">
477
477
  <button v-if="adjacent.prev !== null" class="v-nav-btn" @click="navigate(-1)">
478
- <span class="v-nav-content">
479
- <span class="v-nav-info"><span class="v-nav-dir">▲</span><span class="v-nav-label">{{ t('piece.previous') }}</span></span>
480
- <span class="v-nav-title">{{ getPiece(adjacent.prev)?.title }}</span>
481
- </span>
478
+ <span class="v-nav-dir">▲</span>
479
+ <span class="v-nav-title">{{ getPiece(adjacent.prev)?.title }}</span>
482
480
  </button>
483
481
  <div v-else class="v-nav-spacer" />
484
482
  <button v-if="adjacent.next !== null" class="v-nav-btn" @click="navigate(1)">
485
- <span class="v-nav-content">
486
- <span class="v-nav-info"><span class="v-nav-dir">▼</span><span class="v-nav-label">{{ t('piece.next') }}</span></span>
487
- <span class="v-nav-title">{{ getPiece(adjacent.next)?.title }}</span>
488
- </span>
483
+ <span class="v-nav-dir">▼</span>
484
+ <span class="v-nav-title">{{ getPiece(adjacent.next)?.title }}</span>
489
485
  </button>
490
486
  </nav>
491
487
  </div>
@@ -841,38 +837,30 @@ function tcy(n: number): string {
841
837
  }
842
838
  .v-nav-spacer { flex: 1; }
843
839
  .v-nav-btn {
840
+ writing-mode: vertical-rl;
841
+ text-orientation: mixed;
844
842
  padding: 20px 14px;
845
843
  background: var(--surface);
846
844
  border: 1px solid var(--border-light);
847
845
  border-radius: 6px;
848
846
  cursor: pointer;
849
847
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
848
+ line-height: 1.6;
850
849
  }
851
850
  .v-nav-btn:hover {
852
851
  border-color: var(--gold);
853
852
  box-shadow: 0 4px 20px rgba(var(--shadow-rgb), 0.1);
854
853
  }
855
854
  .v-nav-btn:hover .v-nav-title { color: var(--vermillion); }
856
- .v-nav-content {
857
- display: flex;
858
- flex-direction: column;
859
- writing-mode: vertical-rl;
860
- text-orientation: mixed;
861
- line-height: 1.6;
862
- }
863
- .v-nav-info {
864
- display: block;
865
- }
866
855
  .v-nav-dir {
867
856
  font-size: 16px; color: var(--vermillion);
868
857
  margin-bottom: 0.3em;
869
858
  }
870
- .v-nav-label {
871
- font-size: 11px; color: var(--ink-faint);
872
- font-family: var(--sans); letter-spacing: 2px;
873
- }
874
859
  .v-nav-title {
875
- display: block;
860
+ display: inline-block;
861
+ writing-mode: vertical-rl;
862
+ text-orientation: mixed;
863
+ min-height: 120px;
876
864
  font-size: 18px; font-weight: 700;
877
865
  letter-spacing: 3px; color: var(--ink);
878
866
  transition: color 0.25s ease;