@voidzero-dev/vitepress-theme 4.0.4 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/components/oss/Footer.vue +2 -2
- package/src/components/oss/Header.vue +2 -0
- package/src/components/oss/TopBanner.vue +2 -2
- package/src/components/vitepress-default/Layout.vue +12 -4
- package/src/components/vitepress-default/VPDoc.vue +0 -1
- package/src/layouts/VPLayout.vue +4 -1
- package/src/styles/marketing.css +1 -1
- package/src/styles/vitepress-default/components/vp-code-group.css +10 -0
- package/src/styles/vitepress-default/components/vp-doc.css +5 -0
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Shared VitePress theme for VoidZero projects, including Vite+, Vite, Vitest, Rol
|
|
|
6
6
|
|
|
7
7
|
Make to sure to in latest commit
|
|
8
8
|
|
|
9
|
-
1. Update version in `package.json`
|
|
9
|
+
1. Update version in `package.json` and commit it (don't push yet)
|
|
10
10
|
2. Add tag locally `git tag vx.y.z` (matching version in package.json)
|
|
11
11
|
3. Push changes `git push origin`
|
|
12
12
|
4. Push to remote `git push origin vx.y.z`
|
package/package.json
CHANGED
|
@@ -95,8 +95,8 @@ const getSocialLabel = (social: SocialLink): string => {
|
|
|
95
95
|
class="absolute inset-0 w-full h-full object-cover z-0"/>
|
|
96
96
|
<div
|
|
97
97
|
class="relative z-10 w-full sm:w-2xl flex flex-col justify-start items-center gap-5 px-5 sm:px-0 py-10 md:py-30 mx-auto">
|
|
98
|
-
<h2 class="text-center text-white text-balance">{{ heading }}</h2>
|
|
99
|
-
<p class="text-white max-w-md text-balance text-center">{{ subheading }}</p>
|
|
98
|
+
<h2 class="text-center text-white text-balance drop-shadow-md/70">{{ heading }}</h2>
|
|
99
|
+
<p class="text-white max-w-md text-balance text-center drop-shadow-md/70">{{ subheading }}</p>
|
|
100
100
|
<a :href="buttonLink"
|
|
101
101
|
class="button button--white mt-5">
|
|
102
102
|
{{ buttonText }}
|
|
@@ -197,8 +197,10 @@ onUnmounted(() => {
|
|
|
197
197
|
<!-- Left side: Logo + Nav -->
|
|
198
198
|
<div class="flex items-center gap-10">
|
|
199
199
|
<a href="/" class="shrink-0">
|
|
200
|
+
<slot name="nav-bar-title-before" />
|
|
200
201
|
<img class="h-4 block dark:hidden" :src="logoDark" :alt="logoAlt" />
|
|
201
202
|
<img class="h-4 hidden dark:block" :src="logoLight" :alt="logoAlt" />
|
|
203
|
+
<slot name="nav-bar-title-after" />
|
|
202
204
|
</a>
|
|
203
205
|
|
|
204
206
|
<!-- Desktop navigation -->
|
|
@@ -62,11 +62,11 @@ function dismiss() {
|
|
|
62
62
|
<div class="relative z-10 w-full h-10 flex px-4">
|
|
63
63
|
<div class="flex items-center gap-2 w-full max-w-360 mx-auto px-4">
|
|
64
64
|
<!-- Left: Variant icon -->
|
|
65
|
-
<img :src="monoIcon" :alt="`${logoAlt} icon`" class="w-5 h-5 shrink-0 hidden sm:block" />
|
|
65
|
+
<img :src="monoIcon" :alt="`${logoAlt} icon`" class="w-5 h-5 shrink-0 hidden sm:block drop-shadow-md/70" />
|
|
66
66
|
|
|
67
67
|
<!-- Text -->
|
|
68
68
|
<span
|
|
69
|
-
class="text-xs font-medium font-mono leading-snug tracking-wide uppercase whitespace-nowrap overflow-hidden text-ellipsis">
|
|
69
|
+
class="text-xs font-medium font-mono leading-snug tracking-wide uppercase whitespace-nowrap overflow-hidden text-ellipsis text-shadow-md/50">
|
|
70
70
|
{{ bannerText }}
|
|
71
71
|
</span>
|
|
72
72
|
|
|
@@ -34,7 +34,10 @@ provide(layoutInfoInjectionKey, { heroImageSlotExists })
|
|
|
34
34
|
<slot name="layout-top" />
|
|
35
35
|
<VPSkipLink />
|
|
36
36
|
<VPBackdrop class="backdrop" :show="isSidebarOpen" @click="closeSidebar" />
|
|
37
|
-
<OSSHeader
|
|
37
|
+
<OSSHeader>
|
|
38
|
+
<template #nav-bar-title-before><slot name="nav-bar-title-before" /></template>
|
|
39
|
+
<template #nav-bar-title-after><slot name="nav-bar-title-after" /></template>
|
|
40
|
+
</OSSHeader>
|
|
38
41
|
|
|
39
42
|
<div class="flex flex-col min-h-screen">
|
|
40
43
|
<!-- Content wrapper with borders -->
|
|
@@ -154,15 +157,20 @@ provide(layoutInfoInjectionKey, { heroImageSlotExists })
|
|
|
154
157
|
position: relative;
|
|
155
158
|
margin: 0 auto;
|
|
156
159
|
width: 100%;
|
|
157
|
-
max-width: calc(100vw - 2rem);
|
|
158
|
-
border-left: 1px solid var(--color-stroke);
|
|
159
|
-
border-right: 1px solid var(--color-stroke);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.dark .content-wrapper {
|
|
163
163
|
border-color: var(--color-nickel);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
+
@media (min-width: 768px) {
|
|
167
|
+
.content-wrapper {
|
|
168
|
+
max-width: calc(100vw - 2rem);
|
|
169
|
+
border-left: 1px solid var(--color-stroke);
|
|
170
|
+
border-right: 1px solid var(--color-stroke);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
166
174
|
@media (min-width: 90rem) {
|
|
167
175
|
.content-wrapper {
|
|
168
176
|
max-width: 90rem;
|
package/src/layouts/VPLayout.vue
CHANGED
|
@@ -44,7 +44,10 @@ const useVPLayout = computed(() => {
|
|
|
44
44
|
</div>
|
|
45
45
|
<div v-else class="marketing-layout" :data-theme="frontmatter.theme" :data-variant="variant">
|
|
46
46
|
<TopBanner />
|
|
47
|
-
<OSSHeader
|
|
47
|
+
<OSSHeader>
|
|
48
|
+
<template #nav-bar-title-before><slot name="nav-bar-title-before" /></template>
|
|
49
|
+
<template #nav-bar-title-after><slot name="nav-bar-title-after" /></template>
|
|
50
|
+
</OSSHeader>
|
|
48
51
|
<Content />
|
|
49
52
|
</div>
|
|
50
53
|
</template>
|
package/src/styles/marketing.css
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
|
|
54
54
|
/* Marketing component classes - prefixed with .vz- to avoid conflicts */
|
|
55
55
|
.wrapper {
|
|
56
|
-
@apply max-w-[calc(100vw-2rem)] min-[90rem]:max-w-[90rem] mx-auto border-l border-r border-stroke dark:border-nickel divide-stroke dark:divide-nickel relative overflow-x-clip;
|
|
56
|
+
@apply md:max-w-[calc(100vw-2rem)] min-[90rem]:max-w-[90rem] mx-auto md:border-l md:border-r border-stroke dark:border-nickel divide-stroke dark:divide-nickel relative overflow-x-clip;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.wrapper--ticks::before, .tick-left::before {
|
|
@@ -94,3 +94,13 @@
|
|
|
94
94
|
.vp-block {
|
|
95
95
|
padding: 20px 24px;
|
|
96
96
|
}
|
|
97
|
+
|
|
98
|
+
.vp-code-block-title > .vp-code-block-title-bar {
|
|
99
|
+
border-radius: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media (min-width: 640px) {
|
|
103
|
+
.vp-code-block-title > .vp-code-block-title-bar {
|
|
104
|
+
border-radius: 8px 8px 0 0;
|
|
105
|
+
}
|
|
106
|
+
}
|