fix(theme): nav bg not being applied on some viewport

pull/1820/head
Kia Ishii 2 years ago
parent fa7254649a
commit 39294e0a4e

@ -66,8 +66,7 @@ const classes = computed(() => ({
pointer-events: none; pointer-events: none;
} }
.VPNavBar.has-sidebar, .VPNavBar.has-sidebar {
.VPNavBar.fill {
border-bottom-color: var(--vp-c-gutter); border-bottom-color: var(--vp-c-gutter);
} }
@ -82,6 +81,15 @@ const classes = computed(() => ({
border-bottom-color: transparent; border-bottom-color: transparent;
padding: 0; padding: 0;
} }
.VPNavBar.fill {
border-bottom-color: var(--vp-c-gutter);
background-color: var(--vp-nav-bg-color);
}
.VPNavBar.has-sidebar.fill {
background-color: transparent;
}
} }
.container { .container {
@ -109,10 +117,6 @@ const classes = computed(() => ({
transition: background-color 0.5s; transition: background-color 0.5s;
} }
.VPNavBar.fill .title {
background-color: var(--vp-nav-bg-color);
}
@media (min-width: 960px) { @media (min-width: 960px) {
.VPNavBar.has-sidebar .title { .VPNavBar.has-sidebar .title {
position: absolute; position: absolute;
@ -161,12 +165,9 @@ const classes = computed(() => ({
transition: background-color 0.5s; transition: background-color 0.5s;
} }
.VPNavBar.fill .content-body {
background-color: var(--vp-nav-bg-color);
}
@media (min-width: 960px) { @media (min-width: 960px) {
.VPNavBar.has-sidebar .content-body { .VPNavBar.has-sidebar .content-body,
.VPNavBar.fill .content-body {
position: relative; position: relative;
background-color: var(--vp-nav-bg-color); background-color: var(--vp-nav-bg-color);
} }

Loading…
Cancel
Save