Skip to content

Commit 43987a4

Browse files
committed
style(docs): Vertically align badge with code text in {tool} links
why: Badge sat slightly higher/lower than the adjacent code element inside {tool} cross-reference links. what: - Add vertical-align: middle to both .sd-badge and code inside a.reference:has(.sd-badge) - No inline-flex on the <a> — avoids inflating line box height
1 parent b48987d commit 43987a4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/_static/css/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,11 @@ code.docutils + .sd-badge,
332332
/* ── Link behavior: underline code only, on hover ───────── */
333333
a.reference .sd-badge {
334334
text-decoration: none;
335+
vertical-align: middle;
336+
}
337+
338+
a.reference:has(.sd-badge) code {
339+
vertical-align: middle;
335340
}
336341

337342
a.reference:has(.sd-badge) {

0 commit comments

Comments
 (0)