themekit-js 1.1.12 → 1.1.13
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/dist/client/theme-default/components/blocks/Doc.vue +2 -2
- package/dist/client/theme-default/components/blocks/Features.vue +15 -1
- package/dist/client/theme-default/components/blocks/Hero.vue +2 -3
- package/dist/client/theme-default/styles/components/vp-doc.css +5 -3
- package/dist/node/cli.js +1 -1
- package/dist/node/index.js +2 -2
- package/dist/node/{serve-DC3J-CoM.js → serve-CFnipkLI.js} +1 -1
- package/package.json +1 -1
|
@@ -10,10 +10,10 @@ const docStyles= computed(() => {
|
|
|
10
10
|
|
|
11
11
|
let styles:any=[ vw ? { '--vp-offset': "calc(50% - "+vw.value/2+"px)"} : {}];
|
|
12
12
|
if(block['background-color']){
|
|
13
|
-
styles.push({
|
|
13
|
+
styles.push({ 'background-color':block['background-color']})
|
|
14
14
|
}
|
|
15
15
|
if(block['background-image']){
|
|
16
|
-
|
|
16
|
+
styles.push({ 'background-image':"url("+block['background-image']+")"})
|
|
17
17
|
}
|
|
18
18
|
return styles
|
|
19
19
|
})
|
|
@@ -15,6 +15,20 @@ const props = defineProps<{
|
|
|
15
15
|
block: any
|
|
16
16
|
}>()
|
|
17
17
|
|
|
18
|
+
|
|
19
|
+
const docStyles= computed(() => {
|
|
20
|
+
|
|
21
|
+
let styles:any=[];
|
|
22
|
+
if(props.block['background-color']){
|
|
23
|
+
styles.push({ 'background-color':props.block['background-color']})
|
|
24
|
+
}
|
|
25
|
+
if(props.block['background-image']){
|
|
26
|
+
styles.push({'background-image':"url("+props.block['background-image']+")"})
|
|
27
|
+
}
|
|
28
|
+
return styles
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
|
|
18
32
|
const blockClass= computed(() => {
|
|
19
33
|
if(props.block["class"]){
|
|
20
34
|
return [props.block["class"]]
|
|
@@ -48,7 +62,7 @@ const grids = computed(() => {
|
|
|
48
62
|
|
|
49
63
|
<template >
|
|
50
64
|
<template v-for="(ul,index) in block.children" >
|
|
51
|
-
<div v-if="ul.block_type=='ul'" class="VPFeatures" :class="blockClass">
|
|
65
|
+
<div v-if="ul.block_type=='ul'" class="VPFeatures" :class="blockClass" :style="docStyles">
|
|
52
66
|
<div class="container">
|
|
53
67
|
<div class="items">
|
|
54
68
|
<div
|
|
@@ -60,9 +60,8 @@ const styles= computed(() => {
|
|
|
60
60
|
if(props.block['background-color']){
|
|
61
61
|
styles.push({ 'background-color':props.block['background-color']})
|
|
62
62
|
}
|
|
63
|
-
if(props.block['background-image']){
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
if(props.block['background-image']){
|
|
64
|
+
styles.push({'background-image':"url("+props.block['background-image']+")"})
|
|
66
65
|
}
|
|
67
66
|
return styles
|
|
68
67
|
})
|
|
@@ -14,15 +14,17 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.vp-doc h1 {
|
|
17
|
+
margin: 48px 0 16px;
|
|
17
18
|
letter-spacing: -0.02em;
|
|
18
19
|
line-height: 40px;
|
|
19
20
|
font-size: 28px;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.vp-doc h2 {
|
|
23
|
-
|
|
24
|
-
border-
|
|
25
|
-
padding-
|
|
24
|
+
|
|
25
|
+
border-bottom: 1px solid var(--vp-c-divider);
|
|
26
|
+
padding-bottom: 12px;
|
|
27
|
+
padding-top: 18px;
|
|
26
28
|
letter-spacing: -0.02em;
|
|
27
29
|
line-height: 32px;
|
|
28
30
|
font-size: 24px;
|
package/dist/node/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-
|
|
1
|
+
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-CFnipkLI.js';
|
|
2
2
|
import { createLogger } from 'vite';
|
|
3
3
|
import 'path';
|
|
4
4
|
import 'shiki';
|
package/dist/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizePath } from 'vite';
|
|
2
2
|
export { loadEnv } from 'vite';
|
|
3
|
-
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-
|
|
4
|
-
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-
|
|
3
|
+
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-CFnipkLI.js';
|
|
4
|
+
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-CFnipkLI.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -46715,7 +46715,7 @@ function escapeHtml(string) {
|
|
|
46715
46715
|
|
|
46716
46716
|
var escape$1 = /*@__PURE__*/getDefaultExportFromCjs(escapeHtml_1);
|
|
46717
46717
|
|
|
46718
|
-
var version = "1.1.
|
|
46718
|
+
var version = "1.1.13";
|
|
46719
46719
|
|
|
46720
46720
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46721
46721
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|