Skip to content

Commit d2047e8

Browse files
committed
wip: try
1 parent b3a17c2 commit d2047e8

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed
Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="old-document">
33
<p>
4-
This documentation covers Vite 5 <strong>(old version)</strong>. For the
4+
This documentation covers Vite 2 <strong>(old version)</strong>. For the
55
latest version, see
66
<a href="https://vite.dev" class="new-document-link">https://vite.dev</a>.
77
</p>
@@ -19,21 +19,16 @@
1919
padding: 4px 32px;
2020
justify-content: center;
2121
align-items: center;
22-
color: var(--vp-c-text-1);
23-
background: var(--vp-c-brand-lightest);
24-
z-index: var(--vp-z-index-layout-top);
22+
color: var(--c-text);
23+
background: var(--c-brand-lightest);
24+
z-index: calc(var(--z-index-navbar) + 1);
2525
2626
.new-document-link {
2727
text-decoration: underline;
28-
color: var(--vp-c-text-1);
28+
color: var(--c-text);
2929
&:hover {
30-
color: var(--vp-c-text-2);
30+
color: var(--c-text-light);
3131
}
3232
}
3333
}
34-
.dark {
35-
.old-document {
36-
background: var(--vp-c-brand-darker);
37-
}
38-
}
3934
</style>

docs/.vitepress/theme/custom.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
:root {
2020
--c-brand: #646cff;
2121
--c-brand-light: #747bff;
22+
--c-brand-lightest: #bcc0ff;
2223
}
2324

2425
.custom-block.tip {
@@ -45,15 +46,15 @@
4546
@media (min-width: 455px) {
4647
--vp-layout-top-height: 64px;
4748
}
48-
@media (min-width: 960px) {
49+
@media (min-width: 768px) {
4950
--vp-layout-top-height: 32px;
5051
}
5152

5253
--header-height: calc(3.6rem + var(--vp-layout-top-height));
5354
}
5455

5556
.nav-bar {
56-
padding-top: var(--vp-layout-top-height);
57+
padding-top: calc(0.7rem + var(--vp-layout-top-height)) !important;
5758
}
5859
.sidebar-button {
5960
top: calc(0.6rem + var(--vp-layout-top-height));

0 commit comments

Comments
 (0)