Repository navigation
Set annotations off from their citations by default - #322
Conversation
Annotations now print a step smaller (0.9em), in a muted color (the text color at 72% via color-mix), in roman type, under the citation's hanging indent, following the usual annotated-bibliography convention. The rule sits under :where() like the heading's centering, so themes override it with a single class. Email output gets the smaller size inline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA3mvvkn8io7SnJ1CxT
Plugin readme previewOpen preview · Commit 37 passed · 0 warnings · 0 notes Passed checks (37)
Readme and PHP-header checks only; this does not test plugin runtime compatibility. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…-bz0xrg # Conflicts: # CHANGELOG.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA3mvvkn8io7SnJ1CxT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WPtgA3mvvkn8io7SnJ1CxT
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #322 +/- ##
=========================================
Coverage 87.39% 87.39%
Complexity 67 67
=========================================
Files 113 113
Lines 12760 12760
Branches 1341 1341
=========================================
Hits 11151 11151
Misses 489 489
Partials 1120 1120 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Requested by Dan · project thread
What
Annotations printed at the same size and color as their citation, so the note read as more of the reference. This gives them a default look that follows the usual annotated-bibliography convention (Chicago, MLA, APA):
font-size: 0.9emcolor: color-mix(in srgb, currentcolor 72%, transparent), which stays muted on light and dark backgrounds (about 7:1 for markup-value: real token counts and a citation-parser baseline #222 on white); browsers withoutcolor-mix()keep the text colorfont-style: normal, roman, since italics in a bibliography mark titlesThe new rule is
:where(.wp-block-bibliography-builder-bibliography) .bibliography-builder-annotation, the same zero-specificity wrapper as the heading's centering (#277), so it is (0,1,0) and a theme's own.bibliography-builder-annotationrule wins without!important. The class is the same in the editor's annotation spans, andstyle.scssloads in the editor, so the editor matches.Email output (
includes/email-output.php) addsfont-size:0.9emto the inline style; email clients can't mix colors, so the color is left alone.Files
src/style.scss: the new ruleincludes/email-output.php,tests/phpunit/AnnotationsTest.php: inline size for emailSPEC.md,CHANGELOG.md(Unreleased → Changed)save()is unchanged, so no deprecation.Testing
npm run build,npm run lint:css: passcomposer test:php -- tests/phpunit/AnnotationsTest.php: OK (9 tests)Generated by Claude Code