docs: update site nav theme (#4328)

This commit is contained in:
neverland 2019-09-02 22:28:38 +08:00 committed by GitHub
parent cda7bfc685
commit b28579cfdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 21 deletions

Binary file not shown.

View File

@ -15,7 +15,7 @@ export default {
'zh-CN': { 'zh-CN': {
header: { header: {
logo: { logo: {
image: 'https://img.yzcdn.cn/vant/logo.png', image: 'https://b.yzcdn.cn/vant/logo-white.png',
title: 'Vant', title: 'Vant',
href: '#/' href: '#/'
}, },
@ -123,7 +123,7 @@ export default {
}, },
{ {
groupName: '表单组件', groupName: '表单组件',
icon: 'https://img.yzcdn.cn/vant/form-0401.svg', icon: 'orders-o',
list: [ list: [
{ {
path: '/checkbox', path: '/checkbox',
@ -185,7 +185,7 @@ export default {
}, },
{ {
groupName: '反馈组件', groupName: '反馈组件',
icon: 'passed', icon: 'gift-card-o',
list: [ list: [
{ {
path: '/action-sheet', path: '/action-sheet',
@ -293,7 +293,7 @@ export default {
}, },
{ {
groupName: '导航组件', groupName: '导航组件',
icon: 'https://img.yzcdn.cn/vant/nav-0401.svg', icon: 'peer-pay',
list: [ list: [
{ {
path: '/grid', path: '/grid',
@ -331,7 +331,7 @@ export default {
}, },
{ {
groupName: '业务组件', groupName: '业务组件',
icon: 'ellipsis', icon: 'other-pay',
list: [ list: [
{ {
path: '/address-edit', path: '/address-edit',
@ -378,8 +378,7 @@ export default {
'en-US': { 'en-US': {
header: { header: {
logo: { logo: {
image: image: 'https://b.yzcdn.cn/vant/logo-white.png',
'https://img.yzcdn.cn/vant/logo.png',
title: 'Vant', title: 'Vant',
href: '#/' href: '#/'
}, },
@ -467,7 +466,7 @@ export default {
}, },
{ {
groupName: 'Form Components', groupName: 'Form Components',
icon: 'https://img.yzcdn.cn/vant/form-0401.svg', icon: 'orders-o',
list: [ list: [
{ {
path: '/checkbox', path: '/checkbox',
@ -529,7 +528,7 @@ export default {
}, },
{ {
groupName: 'Action Components', groupName: 'Action Components',
icon: 'passed', icon: 'gift-card-o',
list: [ list: [
{ {
path: '/action-sheet', path: '/action-sheet',
@ -637,7 +636,7 @@ export default {
}, },
{ {
groupName: 'Navigation Components', groupName: 'Navigation Components',
icon: 'https://img.yzcdn.cn/vant/nav-0401.svg', icon: 'peer-pay',
list: [ list: [
{ {
path: '/grid', path: '/grid',
@ -675,7 +674,7 @@ export default {
}, },
{ {
groupName: 'Business Components', groupName: 'Business Components',
icon: 'ellipsis', icon: 'other-pay',
list: [ list: [
{ {
path: '/address-edit', path: '/address-edit',

View File

@ -71,7 +71,7 @@
"@babel/preset-typescript": "^7.3.3", "@babel/preset-typescript": "^7.3.3",
"@types/jest": "^24.0.16", "@types/jest": "^24.0.16",
"@vant/cli": "^1.0.6", "@vant/cli": "^1.0.6",
"@vant/doc": "^2.5.5", "@vant/doc": "^2.5.6",
"@vant/eslint-config": "^1.2.5", "@vant/eslint-config": "^1.2.5",
"@vant/markdown-loader": "^2.2.0", "@vant/markdown-loader": "^2.2.0",
"@vant/markdown-vetur": "^1.0.0", "@vant/markdown-vetur": "^1.0.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "@vant/doc", "name": "@vant/doc",
"version": "2.5.5", "version": "2.5.6",
"description": "vant document template", "description": "vant document template",
"main": "./lib/index.js", "main": "./lib/index.js",
"publishConfig": { "publishConfig": {

View File

@ -117,21 +117,23 @@ export default {
a { a {
display: block; display: block;
margin: 0; margin: 0;
padding: 10px 10px 10px @van-doc-padding; padding: 10px 0 10px @van-doc-padding;
color: #455a64; color: #455a64;
font-size: 16px; font-size: 16px;
line-height: 24px; line-height: 24px;
transition: all 0.3s; transition: all 0.3s;
&.active { &.active {
color: @van-doc-blue; color: #000;
font-weight: 500;
font-size: 15px;
} }
} }
} }
&__item { &__item {
> a { > a {
font-weight: bold; font-weight: 500;
} }
} }
@ -140,7 +142,7 @@ export default {
font-size: 14px; font-size: 14px;
&:hover { &:hover {
color: @van-doc-blue; color: #000;
} }
} }
@ -171,6 +173,10 @@ export default {
a { a {
font-size: 13px; font-size: 13px;
} }
&:active {
font-size: 14px;
}
} }
} }
} }

View File

@ -1194,10 +1194,10 @@
shelljs "^0.8.2" shelljs "^0.8.2"
signale "^1.4.0" signale "^1.4.0"
"@vant/doc@^2.5.5": "@vant/doc@^2.5.6":
version "2.5.5" version "2.5.6"
resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.5.5.tgz#66592d745536c1414c0ccf31b928e158787b5fec" resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.5.6.tgz#789dc09dab86fd7a0e713aba17eafd8dfbde59f6"
integrity sha512-udMtqW2N5jFuyswzwhbPh55ViTYcK72fSRZaYlQUz1BuKGvk+Kjjfwt4onk/pnS8c/sZKHNhObWg2obBg2aRCg== integrity sha512-qSX3D+zvDljYoaBD3co7sH+aqO3AgHTtU4WOY5TUqFlapjG+3kw/N8icXDyF9jnRp6Q5WCZaedmhZvAEykL3cQ==
"@vant/eslint-config@^1.2.5": "@vant/eslint-config@^1.2.5":
version "1.2.5" version "1.2.5"