Skip to content

Commit 39390e3

Browse files
committed
chore: positioning adjustments
1 parent 7a7706b commit 39390e3

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

src/components/overrides/PageFrame.astro

+7-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ const { hasSidebar } = Astro.locals.starlightRoute;
4545
}
4646

4747
:global([data-has-sidebar]) .header {
48-
padding-inline-end: calc(var(--sl-nav-gap) + var(--sl-nav-pad-x) + var(--sl-menu-button-size));
48+
padding-inline-start: calc(var(--sl-nav-gap) + var(--sl-nav-pad-x) + var(--sl-menu-button-size));
49+
}
50+
51+
/* change MobileMenuToggle position */
52+
.sidebar :global(starlight-menu-button button) {
53+
inset-inline-start: var(--sl-nav-pad-x);
4954
}
5055

5156
.sidebar-pane {
@@ -97,7 +102,7 @@ const { hasSidebar } = Astro.locals.starlightRoute;
97102

98103
@media (min-width: 50rem) {
99104
:global([data-has-sidebar]) .header {
100-
padding-inline-end: var(--sl-nav-pad-x);
105+
padding-inline-start: var(--sl-nav-pad-x);
101106
}
102107
.sidebar-pane {
103108
--sl-sidebar-visibility: visible;

src/content/docs/misc/assets.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You may not:
3434
- Sell the PaperMC logomark on its own or as part of other products without explicit permission.
3535
- Alter the transparency of any elements within the PaperMC logomark.
3636

37-
![PaperMC logomark](https://assets.papermc.io/brand/papermc_logo.min.svg)
37+
<span style="display: flex; width: min(100%, 24rem);">![PaperMC logomark](https://assets.papermc.io/brand/papermc_logo.min.svg)</span>
3838

3939
## Velocity
4040

@@ -46,4 +46,4 @@ endorses some product or service. For instance, you may advertise a plugin as be
4646
compatible with Velocity, but you may not make the Velocity logo prominent in that
4747
advertising.
4848

49-
![Velocity logomark](https://assets.papermc.io/brand/velocity_logo_blue.min.svg)
49+
<span style="display: flex; width: min(100%, 24rem);">![Velocity logomark](https://assets.papermc.io/brand/velocity_logo_blue.min.svg)</span>

src/styles/custom.css

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
width: auto;
3333
}
3434

35+
/* use custom font first instead of system */
36+
.sl-badge {
37+
font-family: var(--__sl-font-mono);
38+
}
39+
3540
/* Safari fixes for logo sizing */
3641
.hero-html > img {
3742
object-fit: contain;

0 commit comments

Comments
 (0)