-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: show a warning in v1 docs (#7003)
Co-authored-by: Vladimir Sheremet <[email protected]>
- Loading branch information
1 parent
ef8cc00
commit 73cb696
Showing
6 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<template> | ||
<div class="old-document"> | ||
<p> | ||
This documentation covers Vitest v1 <strong>(old version)</strong>. For the | ||
latest version, see | ||
<a href="https://vitest.dev" class="new-document-link">https://vitest.dev</a>. | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
:root { | ||
--vp-layout-top-height: 96px; | ||
@media (min-width: 455px) { | ||
--vp-layout-top-height: 64px; | ||
} | ||
@media (min-width: 960px) { | ||
--vp-layout-top-height: 32px; | ||
} | ||
} | ||
.old-document { | ||
position: fixed; | ||
display: flex; | ||
height: var(--vp-layout-top-height); | ||
width: 100%; | ||
padding: 4px 32px; | ||
justify-content: center; | ||
align-items: center; | ||
color: var(--vp-c-old-document-text); | ||
background: var(--vp-c-old-document-bg); | ||
z-index: var(--vp-z-index-layout-top); | ||
.new-document-link { | ||
text-decoration: underline; | ||
color: var(--vp-c-text-1); | ||
&:hover { | ||
color: var(--vp-c-text-2); | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters