Skip to content

Commit f6247b1

Browse files
paulOsinskiclaude
andcommitted
Size Pro badge to one line-height of surrounding text
Switch the badge to inline-flex with `height: 1lh` and `box-sizing: border-box` so the badge box (including border) is exactly one line-height tall, matching the text it sits next to. Drops the hand-tuned `line-height: 1.4` and vertical padding that made it slightly taller than the adjacent text. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d7ebbe4 commit f6247b1

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

docs/assets/scss/common/_custom.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,20 @@ h1, h2, h3, h4, h5, h6,
211211
}
212212

213213
// Pro badge — appears next to sidebar items with audience: pro
214+
// Box height is `1lh` so it equals one line-height of the surrounding text.
214215
.pro-badge {
215-
display: inline-block;
216+
display: inline-flex;
217+
align-items: center;
218+
box-sizing: border-box;
219+
height: 1lh;
216220
margin-left: 0.5em;
217-
padding: 0.05em 0.45em;
221+
padding: 0 0.45em;
218222
border: 1px solid #F2561D;
219223
border-radius: 0.25rem;
220224
background-color: rgba(#F2561D, 0.72);
221225
color: #fff;
222226
font-size: 0.7em;
223227
font-weight: 500;
224-
line-height: 1.4;
225228
vertical-align: middle;
226229
white-space: nowrap;
227230
}

0 commit comments

Comments
 (0)