Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(banner): broken layout on smaller viewports #1536

Merged
merged 1 commit into from Oct 25, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/client/theme-default/components/VPContent.vue
Expand Up @@ -52,7 +52,7 @@ const NotFound = inject('NotFound')
.VPContent {
flex-grow: 1;
flex-shrink: 0;
margin: 0 auto;
margin: var(--vp-layout-top-height, 0px) auto 0;
width: 100%;
}
Expand All @@ -61,13 +61,17 @@ const NotFound = inject('NotFound')
max-width: 100%;
}
.VPContent.has-sidebar {
margin: 0;
}
@media (min-width: 960px) {
.VPContent {
padding-top: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px));
padding-top: var(--vp-nav-height);
}
.VPContent.has-sidebar {
margin: 0;
margin: var(--vp-layout-top-height, 0px) 0 0;
padding-left: var(--vp-sidebar-width);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/client/theme-default/components/VPLocalNav.vue
Expand Up @@ -48,6 +48,7 @@ function scrollToTop() {
width: 100%;
background-color: var(--vp-c-bg);
transition: border-color 0.5s, background-color 0.5s;
margin-top: var(--vp-layout-top-height, 0px);
}
@media (min-width: 960px) {
Expand Down