diff --git a/docs/assets/logo.sketch b/docs/assets/logo.sketch index ad864f4f7..9edbf1948 100644 Binary files a/docs/assets/logo.sketch and b/docs/assets/logo.sketch differ diff --git a/docs/site/doc.config.js b/docs/site/doc.config.js index 9d75a5962..5ac86cacb 100644 --- a/docs/site/doc.config.js +++ b/docs/site/doc.config.js @@ -15,7 +15,7 @@ export default { 'zh-CN': { header: { logo: { - image: 'https://img.yzcdn.cn/vant/logo.png', + image: 'https://b.yzcdn.cn/vant/logo-white.png', title: 'Vant', href: '#/' }, @@ -123,7 +123,7 @@ export default { }, { groupName: '表单组件', - icon: 'https://img.yzcdn.cn/vant/form-0401.svg', + icon: 'orders-o', list: [ { path: '/checkbox', @@ -185,7 +185,7 @@ export default { }, { groupName: '反馈组件', - icon: 'passed', + icon: 'gift-card-o', list: [ { path: '/action-sheet', @@ -293,7 +293,7 @@ export default { }, { groupName: '导航组件', - icon: 'https://img.yzcdn.cn/vant/nav-0401.svg', + icon: 'peer-pay', list: [ { path: '/grid', @@ -331,7 +331,7 @@ export default { }, { groupName: '业务组件', - icon: 'ellipsis', + icon: 'other-pay', list: [ { path: '/address-edit', @@ -378,8 +378,7 @@ export default { 'en-US': { header: { logo: { - image: - 'https://img.yzcdn.cn/vant/logo.png', + image: 'https://b.yzcdn.cn/vant/logo-white.png', title: 'Vant', href: '#/' }, @@ -467,7 +466,7 @@ export default { }, { groupName: 'Form Components', - icon: 'https://img.yzcdn.cn/vant/form-0401.svg', + icon: 'orders-o', list: [ { path: '/checkbox', @@ -529,7 +528,7 @@ export default { }, { groupName: 'Action Components', - icon: 'passed', + icon: 'gift-card-o', list: [ { path: '/action-sheet', @@ -637,7 +636,7 @@ export default { }, { groupName: 'Navigation Components', - icon: 'https://img.yzcdn.cn/vant/nav-0401.svg', + icon: 'peer-pay', list: [ { path: '/grid', @@ -675,7 +674,7 @@ export default { }, { groupName: 'Business Components', - icon: 'ellipsis', + icon: 'other-pay', list: [ { path: '/address-edit', diff --git a/package.json b/package.json index f39aa1e35..1f94045b3 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "@babel/preset-typescript": "^7.3.3", "@types/jest": "^24.0.16", "@vant/cli": "^1.0.6", - "@vant/doc": "^2.5.5", + "@vant/doc": "^2.5.6", "@vant/eslint-config": "^1.2.5", "@vant/markdown-loader": "^2.2.0", "@vant/markdown-vetur": "^1.0.0", diff --git a/packages/vant-doc/package.json b/packages/vant-doc/package.json index 5218cae5f..d3b11042e 100644 --- a/packages/vant-doc/package.json +++ b/packages/vant-doc/package.json @@ -1,6 +1,6 @@ { "name": "@vant/doc", - "version": "2.5.5", + "version": "2.5.6", "description": "vant document template", "main": "./lib/index.js", "publishConfig": { diff --git a/packages/vant-doc/src/component/Nav.vue b/packages/vant-doc/src/component/Nav.vue index 9b2d70283..e38969731 100644 --- a/packages/vant-doc/src/component/Nav.vue +++ b/packages/vant-doc/src/component/Nav.vue @@ -117,21 +117,23 @@ export default { a { display: block; margin: 0; - padding: 10px 10px 10px @van-doc-padding; + padding: 10px 0 10px @van-doc-padding; color: #455a64; font-size: 16px; line-height: 24px; transition: all 0.3s; &.active { - color: @van-doc-blue; + color: #000; + font-weight: 500; + font-size: 15px; } } } &__item { > a { - font-weight: bold; + font-weight: 500; } } @@ -140,7 +142,7 @@ export default { font-size: 14px; &:hover { - color: @van-doc-blue; + color: #000; } } @@ -171,6 +173,10 @@ export default { a { font-size: 13px; } + + &:active { + font-size: 14px; + } } } } diff --git a/yarn.lock b/yarn.lock index 88d953dba..a2acaeb77 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1194,10 +1194,10 @@ shelljs "^0.8.2" signale "^1.4.0" -"@vant/doc@^2.5.5": - version "2.5.5" - resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.5.5.tgz#66592d745536c1414c0ccf31b928e158787b5fec" - integrity sha512-udMtqW2N5jFuyswzwhbPh55ViTYcK72fSRZaYlQUz1BuKGvk+Kjjfwt4onk/pnS8c/sZKHNhObWg2obBg2aRCg== +"@vant/doc@^2.5.6": + version "2.5.6" + resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.5.6.tgz#789dc09dab86fd7a0e713aba17eafd8dfbde59f6" + integrity sha512-qSX3D+zvDljYoaBD3co7sH+aqO3AgHTtU4WOY5TUqFlapjG+3kw/N8icXDyF9jnRp6Q5WCZaedmhZvAEykL3cQ== "@vant/eslint-config@^1.2.5": version "1.2.5"