hd-garden 0.5.7 → 0.5.9

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.
@@ -111,7 +111,7 @@ function CompareLine({ line }: { line: string }) {
111
111
  if (!split) return <p><Rich text={line} /></p>;
112
112
  return (
113
113
  <p className="g-cmp-line">
114
- <span className="g-cmp-t"><Rich text={split.title} />{split.separator}</span>
114
+ <span className="g-cmp-h"><span className="g-cmp-t"><Rich text={split.title} /></span><span className="g-cmp-sep">{split.separator}</span></span>
115
115
  <Rich text={split.text} />
116
116
  </p>
117
117
  );
package/app/globals.css CHANGED
@@ -1521,6 +1521,11 @@ button {
1521
1521
  border: 1px solid var(--line);
1522
1522
  }
1523
1523
 
1524
+ /* A thought opened from a link: only the border changes, in the ink accent. */
1525
+ .thought-card:target {
1526
+ border-color: var(--accent);
1527
+ }
1528
+
1524
1529
  .thought-card > header {
1525
1530
  display: flex;
1526
1531
  justify-content: space-between;
package/app/styles/a2.css CHANGED
@@ -804,6 +804,14 @@ html[data-theme="dark"] .markdown-body .markdown-alert code {
804
804
  visibility: hidden;
805
805
  transition: transform 0.3s ease, visibility 0s 0.3s;
806
806
  }
807
+
808
+ /* A hidden TOC slides just past the right edge; clip it there so it does not
809
+ widen the page. clip (unlike hidden) keeps the sticky TOC working. Not tied
810
+ to data-toc-yield: the attribute goes as the TOC starts sliding back, and
811
+ the page would widen for that 0.3s. */
812
+ #main-content:has(.toc) {
813
+ overflow-x: clip;
814
+ }
807
815
  }
808
816
 
809
817
  @media (prefers-reduced-motion: reduce) {
@@ -991,8 +999,9 @@ html[data-theme="dark"] .markdown-body .markdown-alert code {
991
999
  margin-bottom: 0;
992
1000
  }
993
1001
 
994
- /* One-line cell 「X:Y」: X sits on its own line like a title, colon kept. */
995
- .g-cmp .g-cmp-t {
1002
+ /* One-line cell 「X:Y」: X sits on its own line like a title, colon kept.
1003
+ .g-cmp-t holds the title only; the colon and its spaces are .g-cmp-sep. */
1004
+ .g-cmp .g-cmp-h {
996
1005
  display: block;
997
1006
  margin: 0 0 8px;
998
1007
  font: 600 16px / 1.4 var(--sans);
@@ -199,7 +199,6 @@ html[data-theme="dark"] .sh-rail{color:var(--muted)}
199
199
  .sh-prose ul{margin:0;padding-left:1.2em}
200
200
  .sh-prose li{margin:.35em 0}
201
201
  .sh-prose a{color:var(--blue);text-underline-offset:4px;text-decoration-thickness:1px}
202
- .sh-note{font-size:var(--fs-meta);color:var(--muted);margin-top:12px}
203
202
 
204
203
  /* ---------- 404 ---------- */
205
204
  .sh-404{padding:96px 0 24px;max-width:var(--list)}
@@ -325,38 +324,10 @@ html[data-theme="dark"] .sh-pal-scrim{background:rgba(0,0,0,.55)}
325
324
  .sh-notice strong{color:var(--ink)}
326
325
  .sh-month > h2{font:700 var(--fs-lead)/1.3 var(--sans);color:var(--ink);margin:40px 0 0;padding:0 0 12px;border-bottom:1px solid var(--rule-strong);display:flex;align-items:baseline;gap:10px}
327
326
  .sh-month > h2 .n{font:400 var(--fs-meta)/1 var(--sans);color:var(--muted)}
328
- .sh-note{padding:28px 0 26px;border-bottom:1px solid var(--rule)}
329
- .sh-note:target{background:linear-gradient(var(--blue-tint),var(--blue-tint)) no-repeat;background-size:100% 100%;box-shadow:-16px 0 0 var(--blue-tint),16px 0 0 var(--blue-tint)}
330
- .sh-note h3{margin:0 0 6px;font:700 var(--fs-body)/1.55 var(--sans);color:var(--ink)}
331
- .sh-note-body p{margin:0 0 .7em;font-size:var(--fs-body);line-height:1.8;color:var(--text)}
332
- .sh-note-body p:last-child{margin-bottom:0}
333
- .sh-note-imgs{display:grid;gap:6px;margin:16px 0 0;border-radius:var(--r);overflow:hidden}
334
- .sh-note-imgs img{display:block;width:100%;height:100%;object-fit:cover;background:var(--well)}
335
- .sh-note-imgs.one img{aspect-ratio:3/2}
336
- .sh-note-imgs.two{grid-template-columns:1fr 1fr}.sh-note-imgs.two img{aspect-ratio:1/1}
337
- .sh-note-imgs.three{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;aspect-ratio:3/2}
338
- .sh-note-imgs.three img:first-child{grid-row:1 / 3}
339
- .sh-note-video{display:block;width:100%;aspect-ratio:16/9;margin:16px 0 0;border-radius:var(--r);background:#000;object-fit:cover}
340
- .sh-note-audio{margin:16px 0 0;padding:12px 14px;border:1px solid var(--rule);border-radius:var(--r);background:var(--card)}
341
- .sh-note-audio figcaption{font-size:var(--fs-meta);color:var(--muted);margin:0 0 8px}
342
- .sh-note-audio audio{display:block;width:100%;height:36px}
343
- .sh-note-link{display:grid;gap:2px;margin:16px 0 0;padding:14px 16px;border:1px solid var(--rule);border-radius:var(--r);background:var(--card);text-decoration:none;transition:background-color .15s ease,box-shadow .15s ease}
344
- @media (hover:hover){.sh-note-link:hover{background:var(--card-hover);box-shadow:var(--card-shadow)}}
345
- .sh-note-link .h{font-size:var(--fs-meta);color:var(--muted)}
346
- .sh-note-link .t{font:600 15px/1.5 var(--sans);color:var(--ink)}
347
- .sh-note-link .t::after{content:" ↗";color:var(--muted);font-weight:400}
348
- .sh-note-link .d{font-size:var(--fs-small);line-height:1.6;color:var(--soft)}
349
- .sh-note footer{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin-top:14px;font-size:var(--fs-meta);color:var(--muted)}
350
- .sh-note .when{color:var(--muted);text-decoration:none;font-variant-numeric:tabular-nums;padding:4px 0}
351
- .sh-note .when:hover{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
352
- .sh-note .tag{color:var(--soft)}
353
- .sh-note .ex{font-size:12px;line-height:1;color:var(--muted);border:1px dashed var(--rule-strong);border-radius:6px;padding:3px 6px}
354
- html[data-theme="dark"] .sh-note-imgs img,html[data-theme="dark"] .sh-note-video{filter:brightness(.92)}
355
327
 
356
328
  @media (max-width:820px){
357
329
  .sh-subs{flex-wrap:nowrap;overflow-x:auto;margin:6px -20px 4px;padding:12px 20px 0;scrollbar-width:none}
358
330
  .sh-subs::-webkit-scrollbar{display:none}
359
- .sh-note:target{box-shadow:-20px 0 0 var(--blue-tint),20px 0 0 var(--blue-tint)}
360
331
  }
361
332
 
362
333
 
@@ -437,5 +408,5 @@ html[data-theme="dark"] .sh-repos > li.sk::after{background:linear-gradient(90de
437
408
 
438
409
  /* Cards answer hover with a warm fill and a faint shadow; nothing moves. */
439
410
  @media (prefers-reduced-motion:reduce){
440
- .sh-col,.sh-note-link,.sh-repos > li,.sh-tagchip{transition:none}
411
+ .sh-col,.sh-repos > li,.sh-tagchip{transition:none}
441
412
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hd-garden",
3
- "version": "0.5.7",
3
+ "version": "0.5.9",
4
4
  "private": false,
5
5
  "description": "用 Markdown 写作、用 GitHub Pages 发布的个人博客引擎。",
6
6
  "license": "MIT",