Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/stylesheets/locus.css
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,30 @@ html {
.md-drawer .md-header__source.md-header__github {
color: #FFFFFF;
}

/* Header right slot — PyPI version badge (shields.io image) sits to the
right of the GitHub icon. Matches the OCI/GitHub vertical rhythm. */
.md-header__source.md-header__pypi {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.4rem;
margin-left: 0.25rem;
border-radius: 6px;
transition: background-color 0.15s, transform 0.15s;
}
.md-header__source.md-header__pypi:hover {
background-color: rgba(199, 70, 52, 0.08);
transform: translateY(-1px);
}
.md-header__pypi-badge {
height: 20px;
width: auto;
display: block;
}
@media (max-width: 60em) {
.md-header__source.md-header__pypi { padding: 0.15rem 0.25rem; margin-left: 0.15rem; }
.md-header__pypi-badge { height: 18px; }
}
.md-nav--primary .md-header__source.md-header__github:hover {
color: #FFFFFF;
opacity: 0.8;
Expand Down
11 changes: 11 additions & 0 deletions overrides/partials/source.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@
<path fill="currentColor" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.467-2.381 1.235-3.221-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.4 3-.405 1.02.005 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.911 1.23 3.221 0 4.609-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/>
</svg>
</a>

<a
href="https://pypi.org/project/locus-sdk/"
title="locus-sdk on PyPI"
class="md-header__source md-header__pypi"
target="_blank"
rel="noopener"
aria-label="locus-sdk on PyPI"
>
<img class="md-header__pypi-badge" src="https://img.shields.io/pypi/v/locus-sdk.svg?label=PyPI&color=C74634&style=flat-square" alt="PyPI version">
</a>