Skip to content

Commit

Permalink
fixed header was hiding print content
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Sullivan committed Jun 19, 2023
1 parent 5a8e7a1 commit 819ea02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/starlight/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ const hasHero = Boolean(entry.data.hero);
scroll-padding-top: calc(1.5rem + var(--sl-nav-height));
}
}
@media print {
main {
padding-bottom: 0 !important;
}
}
</style>
</head>
<body>
Expand Down
5 changes: 4 additions & 1 deletion packages/starlight/layout/PageFrame.astro
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ const t = useTranslations(locale);
}

@media print {
header {
position: relative !important;
}
.main-frame {
padding-inline-start: 0 !important;
padding-block-start: 0 !important;
}
}
</style>

0 comments on commit 819ea02

Please sign in to comment.