Skip to content

Commit c2e79aa

Browse files
authored
feat(theme): make navbar logo's height customizable by css variable (#2644)
1 parent f3a4597 commit c2e79aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: src/client/theme-default/components/VPNavBarTitle.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ const { currentLang } = useLangs()
4747
4848
:deep(.logo) {
4949
margin-right: 8px;
50-
height: 24px;
50+
height: var(--vp-nav-logo-height);
5151
}
5252
</style>

Diff for: src/client/theme-default/styles/vars.css

+1
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@
361361
--vp-nav-height: 64px;
362362
--vp-nav-bg-color: var(--vp-c-bg);
363363
--vp-nav-screen-bg-color: var(--vp-c-bg);
364+
--vp-nav-logo-height: 24px;
364365
}
365366

366367
/**

0 commit comments

Comments
 (0)