From 9de9a4f24824b10d1c26b4d8add2eb7acd7bb15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Sat, 11 May 2019 17:21:43 +0800 Subject: [PATCH] update document --- docs/markdown/design.zh-CN.md | 4 ++-- docs/markdown/intro.en-US.md | 1 - docs/markdown/intro.zh-CN.md | 3 +-- docs/src/DocsApp.vue | 13 +++---------- docs/src/WapApp.vue | 6 +++--- docs/src/components/DemoList.vue | 22 +++++++++++----------- docs/src/components/DemoPages.vue | 16 ++++++++-------- docs/src/components/MobileNav.vue | 6 +++--- package.json | 1 - 9 files changed, 31 insertions(+), 41 deletions(-) diff --git a/docs/markdown/design.zh-CN.md b/docs/markdown/design.zh-CN.md index 0c06404a9..cfc2505dd 100644 --- a/docs/markdown/design.zh-CN.md +++ b/docs/markdown/design.zh-CN.md @@ -21,11 +21,11 @@ diff --git a/docs/src/WapApp.vue b/docs/src/WapApp.vue index a0ff5a598..645acd8af 100644 --- a/docs/src/WapApp.vue +++ b/docs/src/WapApp.vue @@ -68,10 +68,10 @@ export default { @import '../../packages/style/var'; body { - line-height: 1; color: @text-color; - background-color: #f2f3f5; font-family: 'PingFang SC', Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, Arial, sans-serif; + line-height: 1; + background-color: #f2f3f5; -webkit-font-smoothing: antialiased; } @@ -90,9 +90,9 @@ body { } .van-icon { + color: @gray-dark; font-size: 24px; cursor: pointer; - color: @gray-dark; } } diff --git a/docs/src/components/DemoList.vue b/docs/src/components/DemoList.vue index fbaccdbc5..882d42376 100644 --- a/docs/src/components/DemoList.vue +++ b/docs/src/components/DemoList.vue @@ -71,15 +71,15 @@ export default { @import '../../../packages/style/var'; .side-nav { - width: 100%; box-sizing: border-box; + width: 100%; padding: 64px 20px 20px; .vant-title, .vant-desc { + padding-left: 15px; font-weight: normal; user-select: none; - padding-left: 15px; } .vant-title { @@ -96,16 +96,16 @@ export default { } span { - font-size: 36px; - font-weight: 500; margin-left: 15px; + font-weight: 500; + font-size: 36px; } } .vant-desc { - font-size: 14px; - color: #7d7e80; margin: 0 0 40px; + color: #7d7e80; + font-size: 14px; } } @@ -113,19 +113,19 @@ export default { position: absolute; top: 24px; right: 24px; + overflow: hidden; color: @blue; font-size: 12px; cursor: pointer; - overflow: hidden; span { - color: @gray-dark; + display: inline-block; width: 48px; + color: @gray-dark; line-height: 22px; text-align: center; - display: inline-block; - border: 1px solid #dcdee0; background-color: #f7f8fa; + border: 1px solid #dcdee0; &:first-child { border-right: none; @@ -139,8 +139,8 @@ export default { &.active { color: @white; - border-color: @blue; background-color: @blue; + border-color: @blue; } } } diff --git a/docs/src/components/DemoPages.vue b/docs/src/components/DemoPages.vue index f367ec5b1..fcec30f34 100644 --- a/docs/src/components/DemoPages.vue +++ b/docs/src/components/DemoPages.vue @@ -99,10 +99,10 @@ export default { } &__item { - width: 28%; - text-align: center; - margin-bottom: 40px; display: inline-block; + width: 28%; + margin-bottom: 40px; + text-align: center; &:nth-child(3n+1), &:nth-child(3n+2) { @@ -110,23 +110,23 @@ export default { } h4 { + font-weight: normal; font-size: 14px; line-height: 20px; - font-weight: normal; } img { width: 100%; - cursor: pointer; - border-radius: 3px; background-color: #f8f8f8; + border-radius: 3px; box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); + cursor: pointer; } a { - font-size: 12px; - margin: 4px 0 7px; display: inline-block; + margin: 4px 0 7px; + font-size: 12px; } &--active { diff --git a/docs/src/components/MobileNav.vue b/docs/src/components/MobileNav.vue index ce5f519d0..9f69dd1ec 100644 --- a/docs/src/components/MobileNav.vue +++ b/docs/src/components/MobileNav.vue @@ -61,10 +61,10 @@ export default { } .van-collapse-item__title { - font-size: 16px; - font-weight: 500; - line-height: 40px; align-items: center; + font-weight: 500; + font-size: 16px; + line-height: 40px; border-radius: 2px; } } diff --git a/package.json b/package.json index db4901e99..c4ab912b7 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,6 @@ "url": "git@github.com:youzan/vant.git" }, "keywords": [ - "youzan", "vue", "component" ],