From 1d6254b615b48ceef85267045e8fce976a7eafd5 Mon Sep 17 00:00:00 2001
From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
Date: Tue, 8 Aug 2023 16:03:56 +0530
Subject: [PATCH] fix(theme): dont show transparent navbar other than home
(#2742)
---
.../theme-default/components/VPNavBar.vue | 21 ++++++++++++-------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/src/client/theme-default/components/VPNavBar.vue b/src/client/theme-default/components/VPNavBar.vue
index a0f258f2..f6fdcd5f 100644
--- a/src/client/theme-default/components/VPNavBar.vue
+++ b/src/client/theme-default/components/VPNavBar.vue
@@ -1,6 +1,7 @@
@@ -77,7 +83,7 @@ const classes = computed(() => ({
padding: 0;
}
- .VPNavBar.fill:not(.has-sidebar) {
+ .VPNavBar:not(.has-sidebar):not(.top) {
border-bottom-color: var(--vp-c-gutter);
background-color: var(--vp-nav-bg-color);
}
@@ -162,8 +168,7 @@ const classes = computed(() => ({
}
@media (min-width: 960px) {
- .VPNavBar.has-sidebar .content-body,
- .VPNavBar.fill .content-body {
+ .VPNavBar:not(.top) .content-body{
position: relative;
background-color: var(--vp-nav-bg-color);
}