Skip to content

Commit 057107c

Browse files
committed
fix: align Star and PyPI buttons vertically (matching border box model)
1 parent be292a3 commit 057107c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

starlight/src/styles/custom.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,23 +265,26 @@ dialog::backdrop {
265265
.gh-pypi-button {
266266
display: inline-block;
267267
padding: 0.6rem 1.5rem;
268+
border: 2px solid transparent;
268269
border-radius: 0.5rem;
269270
font-weight: 700;
270271
font-size: var(--sl-text-sm);
271272
text-decoration: none !important;
272273
transition: transform 0.15s ease, box-shadow 0.15s ease;
273274
margin: 0.25rem;
275+
vertical-align: middle;
274276
}
275277

276278
.gh-star-button {
277279
background: var(--sl-color-accent);
280+
border-color: var(--sl-color-accent);
278281
color: #071a37 !important;
279282
}
280283

281284
.gh-pypi-button {
282285
background: transparent;
283286
color: var(--sl-color-accent) !important;
284-
border: 2px solid var(--sl-color-accent);
287+
border-color: var(--sl-color-accent);
285288
}
286289

287290
.gh-star-button:hover,

0 commit comments

Comments
 (0)