diff --git a/.claude/settings.local.json b/.claude/settings.local.json deleted file mode 100644 index dc3909f..0000000 --- a/.claude/settings.local.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "permissions": { - "allow": [ - "Bash(git init:*)", - "Bash(git add:*)", - "Bash(git commit:*)", - "Bash(git remote add:*)", - "Bash(npm install:*)", - "Bash(npm run build:*)" - ], - "deny": [], - "ask": [] - } -} diff --git a/.gitignore b/.gitignore index 2549c4f..4223406 100644 --- a/.gitignore +++ b/.gitignore @@ -13,5 +13,8 @@ main.js .vscode .idea +# Claude Code +.claude + # Obsidian data.json diff --git a/counter-plugin-v1.1.0.zip b/counter-plugin-v1.1.0.zip new file mode 100644 index 0000000..2b5f5b5 Binary files /dev/null and b/counter-plugin-v1.1.0.zip differ diff --git a/release/manifest.json b/release/manifest.json new file mode 100644 index 0000000..8ca8db0 --- /dev/null +++ b/release/manifest.json @@ -0,0 +1,10 @@ +{ + "id": "counter-plugin", + "name": "Counter Plugin", + "version": "1.1.0", + "minAppVersion": "0.15.0", + "description": "Create interactive counters with +/- buttons using ~ ( ) syntax", + "author": "crib", + "authorUrl": "https://git.cribdev.com/crib", + "isDesktopOnly": false +} diff --git a/release/styles.css b/release/styles.css new file mode 100644 index 0000000..b183925 --- /dev/null +++ b/release/styles.css @@ -0,0 +1,63 @@ +.counter-container { + display: inline-flex; + align-items: center; + gap: 4px; + padding: 2px 6px; + background-color: var(--background-secondary); + border-radius: 4px; + margin: 2px 0; + font-family: var(--font-interface); + vertical-align: middle; +} + +.counter-button { + width: 16px; + height: 16px; + padding: 0; + border: 1px solid var(--background-modifier-border); + background-color: var(--interactive-normal); + color: var(--text-normal); + border-radius: 3px; + cursor: pointer; + font-size: 12px; + font-weight: bold; + display: flex; + align-items: center; + justify-content: center; + transition: all 0.15s ease; + line-height: 1; +} + +.counter-button:hover { + background-color: var(--interactive-hover); + border-color: var(--interactive-accent); +} + +.counter-button:active { + background-color: var(--interactive-accent); + color: var(--text-on-accent); + transform: scale(0.9); +} + +.counter-display { + min-width: 20px; + text-align: center; + font-weight: 600; + font-size: 13px; + color: var(--text-normal); + font-variant-numeric: tabular-nums; +} + +.counter-label { + margin-left: 2px; + color: var(--text-normal); + font-size: 14px; +} + +.counter-minus { + line-height: 1; +} + +.counter-plus { + line-height: 1; +}