Skip to content

Commit 8f5c02a

Browse files
authored
Merge pull request #38 from 42devops/fix/annotation-showcase-overlap
fix: resolve annotation label overlap in showcase card
2 parents 30b3c8c + a60aa54 commit 8f5c02a

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

‎_posts/2026-07-23-neat-annotations-guide.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ When annotating inline body text, use **highlight-only** markers without floatin
2323
When you want to point arrows at code tokens, parameters, or specifications, give lines generous line-height (`3.4em`) so hand-drawn labels sit cleanly around the target text:
2424

2525
<div class="ann-showcase-card">
26-
<div style="color: var(--text-light); font-size: 0.8rem; line-height: 1; margin-bottom: 3.8rem; display: flex; align-items: center; gap: 0.5rem;">
26+
<div style="color: var(--text-light); font-size: 0.8rem; line-height: 1; margin-bottom: 4.5rem; display: flex; align-items: center; gap: 0.5rem;">
2727
<span style="color: #ff5f56;">●</span><span style="color: #ffbd2e;">●</span><span style="color: #27c93f;">●</span>
2828
<span style="margin-left: 0.5rem;">docs/specs/cli.md</span>
2929
</div>
3030

31-
<div style="margin-bottom: 2.5rem;">
31+
<div style="margin-bottom: 4rem; line-height: 3.2em;">
3232
- <span class="ann ann-amber ann-s" data-note="open task">[ ]</span>
33-
<span class="ann ann-blue ann-s" data-note="stable ID">CLI-042</span> Add export command
34-
<span class="ann ann-green ann-se" data-note="tag">#cli</span>
33+
<span class="ann ann-blue ann-se" data-note="stable ID">CLI-042</span> Add export command
34+
<span class="ann ann-green ann-s" data-note="tag">#cli</span>
3535
<span class="ann ann-red ann-sw" data-note="priority">!high</span>
3636
<span class="ann ann-purple ann-nw" data-note="custom field">@blocked_by:CLI-041</span>
3737
</div>
3838

39-
<div style="margin-top: 2rem;">
39+
<div style="margin-top: 2rem; margin-bottom: 1.5rem; line-height: 3.2em;">
4040
Write task output as <span class="ann ann-n ann-amber" data-note="description">JSON</span> for scripts and agents
4141
</div>
4242
</div>

‎css/screen.css‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,17 @@ pre code {
822822
overflow: hidden;
823823
}
824824

825+
/* Annotation Showcase Card Container */
826+
.ann-showcase-card {
827+
position: relative;
828+
background: var(--bg-card);
829+
border: 1px solid var(--border-color);
830+
border-radius: var(--radius-md);
831+
padding: 1.75rem 2rem 3.5rem 2rem;
832+
margin: 2rem 0 3.5rem 0;
833+
box-shadow: var(--shadow-sm);
834+
overflow: visible;
835+
}
825836
/* Responsive Rules */
826837
@media (max-width: 640px) {
827838
.site { padding: 1.25rem 1rem 3rem 1rem; }

0 commit comments

Comments
 (0)