Skip to content

Commit

Permalink
fix: add background color in navbar to avoid contrast issues (#695)
Browse files Browse the repository at this point in the history
Co-authored-by: Kia Ishii <[email protected]>
  • Loading branch information
brc-dd and kiaking authored Jun 6, 2022
1 parent 59df105 commit 305bcc0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/client/theme-default/components/VPNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ provide('close-screen', closeScreen)
}
.VPNav.no-sidebar {
backdrop-filter: saturate(50%) blur(8px);
-webkit-backdrop-filter: saturate(50%) blur(8px);
backdrop-filter: saturate(50%) blur(8px);
background: rgba(255, 255, 255, 0.7);
}
.dark .VPNav.no-sidebar {
background: rgba(36, 36, 36, 0.7);
}
@supports not (backdrop-filter: saturate(50%) blur(8px)) {
Expand Down
7 changes: 6 additions & 1 deletion src/client/theme-default/components/VPNavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,13 @@ const { hasSidebar } = useSidebar()
}
.VPNavBar.has-sidebar .content {
backdrop-filter: saturate(50%) blur(8px);
-webkit-backdrop-filter: saturate(50%) blur(8px);
backdrop-filter: saturate(50%) blur(8px);
background: rgba(255, 255, 255, 0.7);
}
.dark .VPNavBar.has-sidebar .content {
background: rgba(36, 36, 36, 0.7);
}
@supports not (backdrop-filter: saturate(50%) blur(8px)) {
Expand Down

0 comments on commit 305bcc0

Please sign in to comment.