mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 05:42:44 +08:00
docs: update site nav theme (#4328)
This commit is contained in:
parent
cda7bfc685
commit
b28579cfdf
Binary file not shown.
@ -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',
|
||||
|
@ -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",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vant/doc",
|
||||
"version": "2.5.5",
|
||||
"version": "2.5.6",
|
||||
"description": "vant document template",
|
||||
"main": "./lib/index.js",
|
||||
"publishConfig": {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user