From 2e243a8cca07e50b2e5e4deb9e15ea5cb90ed191 Mon Sep 17 00:00:00 2001 From: mixflavor <31689802+mixflavor@users.noreply.github.com> Date: Sat, 13 Jun 2026 21:55:53 +0900 Subject: [PATCH] =?UTF-8?q?release=200.0.65=20=E2=80=94=20Seasoned=20colou?= =?UTF-8?q?r=20palette=20refresh=20+=20heading=20indent-guide=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: chodaict Co-Authored-By: Claude Opus 4.8 (1M context) --- manifest.json | 2 +- styles.css | 14 +++++++++++--- versions.json | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index a96dbd5..0546fe6 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "marktile", "name": "marktile", - "version": "0.0.64", + "version": "0.0.65", "minAppVersion": "1.4.0", "description": "A Markdown editor where the markers never hide — headings grow while ## stays put. Pairs with tugtile. CJK-friendly.", "author": "CVER Inc.", diff --git a/styles.css b/styles.css index f2557ca..8733ca3 100644 --- a/styles.css +++ b/styles.css @@ -603,6 +603,14 @@ body.is-phone .tugtile-ed-bar { padding-top: 6px; padding-bottom: 4px; } background-position: 1ch center; /* one cell in; tab is 2 cells, so one cell of space after the rule */ padding-block: 0.35em; } +/* A leading tab on a heading line must NOT inflate the indent guide — its 1ch position / 100% height / 0.35em + padding are all font-size-relative, so on a grown heading the thin rule balloons. Counter-scale the tab's own + font-size by the heading's scale so its metrics fall back to the base text size (the guide stays thin). */ +.marktile-ed .tg-h1 .tg-tab { font-size: calc(1em / 1.7); } +.marktile-ed .tg-h2 .tg-tab { font-size: calc(1em / 1.45); } +.marktile-ed .tg-h3 .tg-tab { font-size: calc(1em / 1.25); } +.marktile-ed .tg-h4 .tg-tab { font-size: calc(1em / 1.12); } +.marktile-ed .tg-h5 .tg-tab, .marktile-ed .tg-h6 .tg-tab { font-size: calc(1em / 1.05); } /* ── Table of contents (marktile only). A toggle side panel of H1–H3; click a heading to scroll to it. Absolute overlay anchored (top set in JS) to the editor content, so the toolbar + the TOC toggle button @@ -678,12 +686,12 @@ body.is-phone .tugtile-ed-rich { padding-bottom: 55vh; } /* Seasoned "彩色" palette — opt-in via settings (seasonedColor → .marktile-palette-color on the editor mount). Each syntax token gets its own hue instead of the single accent tint. Obsidian theme color vars (hex fallbacks for the web host) so it tracks light/dark + custom themes. quote/strike/date/check keep their base styling. */ -.marktile-palette-color .tugtile-ed-rich .tg-h { color: var(--color-cyan, #56b6c2); } -.marktile-palette-color .tugtile-ed-rich .tg-b { color: var(--color-orange, #d19a66); } +.marktile-palette-color .tugtile-ed-rich .tg-h { color: var(--color-orange, #d19a66); } +.marktile-palette-color .tugtile-ed-rich .tg-b { color: var(--color-yellow, #e5c07b); } .marktile-palette-color .tugtile-ed-rich .tg-i { color: var(--color-purple, #c678dd); } .marktile-palette-color .tugtile-ed-rich .tg-code { color: var(--color-green, #98c379); } .marktile-palette-color .tugtile-ed-rich .tg-tag, -.marktile-palette-color .tugtile-ed-rich .tg-link { color: var(--color-blue, #61afef); } +.marktile-palette-color .tugtile-ed-rich .tg-link { color: var(--color-cyan, #56b6c2); } /* Textarea for card editing */ .tugtile__tile-edit { width: 100%; diff --git a/versions.json b/versions.json index 8bbbb62..8d59b3d 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,3 @@ { - "0.0.64": "1.4.0" + "0.0.65": "1.4.0" }