From 1214a24d0cf4108d4da929f2b24f2e252dc425cf Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Fri, 29 Sep 2017 15:37:50 +0800 Subject: [PATCH] update docs style vol.2 --- examples/app.vue | 38 ++------ examples/components/demo-block.vue | 111 ++++++++++++++++------- examples/components/side-nav.vue | 28 +++++- examples/docs/en-US/badge.md | 2 +- examples/docs/en-US/carousel.md | 2 +- examples/docs/en-US/cascader.md | 2 +- examples/docs/en-US/color-picker.md | 2 +- examples/docs/en-US/container.md | 32 ++++--- examples/docs/en-US/custom-theme.md | 96 +------------------- examples/docs/en-US/installation.md | 14 +-- examples/docs/en-US/pagination.md | 2 +- examples/docs/en-US/quickstart.md | 26 ++++-- examples/docs/en-US/rate.md | 2 +- examples/docs/en-US/steps.md | 2 +- examples/docs/zh-CN/badge.md | 2 +- examples/docs/zh-CN/carousel.md | 2 +- examples/docs/zh-CN/cascader.md | 2 +- examples/docs/zh-CN/color-picker.md | 2 +- examples/docs/zh-CN/container.md | 32 ++++--- examples/docs/zh-CN/custom-theme.md | 98 +------------------- examples/docs/zh-CN/installation.md | 14 +-- examples/docs/zh-CN/pagination.md | 2 +- examples/docs/zh-CN/quickstart.md | 26 ++++-- examples/docs/zh-CN/rate.md | 2 +- examples/i18n/page.json | 4 +- examples/nav.config.json | 16 ++-- examples/pages/template/component.tpl | 10 +- examples/pages/template/resource.tpl | 56 ++++++------ packages/theme-chalk/src/common/var.scss | 8 +- packages/theme-chalk/src/slider.scss | 12 ++- 30 files changed, 268 insertions(+), 379 deletions(-) diff --git a/examples/app.vue b/examples/app.vue index 05d15bb6..f8d94f0f 100644 --- a/examples/app.vue +++ b/examples/app.vue @@ -23,7 +23,7 @@ width: 100%; left: 0; top: 0; - z-index: 1000; + z-index: 1500; border-bottom: solid 1px #ccc; } } @@ -60,7 +60,7 @@ font-family: Menlo, Monaco, Consolas, Courier, monospace; font-size: 12px; padding: 18px 24px; - background-color: #f9fafc; + background-color: #fafafa; border: solid 1px #eaeefb; margin-bottom: 25px; border-radius: 4px; @@ -123,7 +123,7 @@ background-color: #ECF8FF; border-radius: 4px; border-left: #50bfff 5px solid; - margin-top: 20px; + margin: 20px 0; code { background-color: rgba(255, 255, 255, .7); @@ -132,32 +132,12 @@ } .warning { - border-bottom-right-radius: 4px; - border-left: 4px solid #f66; - border-top-right-radius: 4px; - padding: 12px 24px 12px 30px; - position: relative; - background-color: #f8f8f8; - margin-top: 20px; - - &::before { - background-color: #f66; - border-radius: 100%; - color: #fff; - content: "!"; - font-family: Dosis,Source Sans Pro,Helvetica Neue,Arial,sans-serif; - font-size: 14px; - font-weight: 700; - left: -12px; - line-height: 20px; - position: absolute; - width: 20px; - height: 20px; - text-align: center; - top: 50%; - transform: translateY(-50%); - } - + padding: 8px 16px; + background-color: #fff6f7; + border-radius: 4px; + border-left: #FE6C6F 5px solid; + margin: 20px 0; + code { background-color: rgba(255, 255, 255, .7); color: #445368; diff --git a/examples/components/demo-block.vue b/examples/components/demo-block.vue index d92e9343..3e5a494c 100644 --- a/examples/components/demo-block.vue +++ b/examples/components/demo-block.vue @@ -5,30 +5,43 @@ @mouseenter="hovering = true" @mouseleave="hovering = false"> -
-
+
+
- - {{ langConfig['button-text'] }} -
-
+
{{ controlText }} + + + + {{ langConfig['button-text'] }} + + +
diff --git a/examples/components/side-nav.vue b/examples/components/side-nav.vue index 8abb0c3b..7fbc9ad1 100644 --- a/examples/components/side-nav.vue +++ b/examples/components/side-nav.vue @@ -3,6 +3,10 @@ width: 100%; box-sizing: border-box; padding-right: 30px; + transition: opacity .5s; + &:hover { + opacity: 1 !important; + } li { list-style: none; @@ -105,7 +109,10 @@ } + ``` ### Hello world -If you are using CDN, a hello-world page is easy with Element. [Online Demo](http://codepen.io/QingWei-Li/pen/vXwJrY) +If you are using CDN, a hello-world page is easy with Element. [Online Demo](https://jsfiddle.net/leopoldthecuber/hzfpyvg6/) ```html @@ -26,7 +26,7 @@ If you are using CDN, a hello-world page is easy with Element. [Online Demo](htt - +
@@ -39,7 +39,7 @@ If you are using CDN, a hello-world page is easy with Element. [Online Demo](htt - + + ``` ### Hello world -通过 CDN 的方式我们可以很容易地使用 Element 写出一个 Hello world 页面。[在线演示](http://codepen.io/QingWei-Li/pen/vXwJrY) +通过 CDN 的方式我们可以很容易地使用 Element 写出一个 Hello world 页面。[在线演示](https://jsfiddle.net/leopoldthecuber/hzfpyvg6/) ```html @@ -26,7 +26,7 @@ npm i element-ui -S - +
@@ -39,7 +39,7 @@ npm i element-ui -S - +