fix(theme): don't let navbar obstruct clicks to top part of scrollbar (#1168)

pull/1170/head
Curt Grimes 2 years ago committed by GitHub
parent 4e4a21a0ee
commit 44953dcd1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -33,6 +33,7 @@ provide('close-screen', closeScreen)
left: 0; left: 0;
z-index: var(--vp-z-index-nav); z-index: var(--vp-z-index-nav);
width: 100%; width: 100%;
pointer-events: none;
} }
@media (min-width: 960px) { @media (min-width: 960px) {

@ -54,6 +54,11 @@ const { hasSidebar } = useSidebar()
padding: 0 8px 0 24px; padding: 0 8px 0 24px;
height: var(--vp-nav-height-mobile); height: var(--vp-nav-height-mobile);
transition: border-color 0.5s, background-color 0.5s; transition: border-color 0.5s, background-color 0.5s;
pointer-events: none;
}
.VPNavBar .container:deep(*) {
pointer-events: all;
} }
@media (min-width: 768px) { @media (min-width: 768px) {
@ -96,6 +101,7 @@ const { hasSidebar } = useSidebar()
justify-content: space-between; justify-content: space-between;
margin: 0 auto; margin: 0 auto;
max-width: calc(var(--vp-layout-max-width) - 64px); max-width: calc(var(--vp-layout-max-width) - 64px);
pointer-events: none;
} }
.content { .content {

Loading…
Cancel
Save