From e00f5ac9ea59d9dc51a59b16c1744e8b84c2f5e7 Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Sun, 18 Sep 2016 22:01:26 +0800 Subject: [PATCH] misc visual updates - round 2 --- examples/app.vue | 6 +++++- examples/components/demo-block.vue | 32 +++++++++++++++++++++++------- examples/components/footer-nav.vue | 4 ++-- examples/components/footer.vue | 2 +- examples/components/header.vue | 7 ++++++- examples/components/side-nav.vue | 1 + examples/docs/color.md | 17 ++++++++-------- examples/docs/icon.md | 20 ++++++++++++++----- examples/docs/layout.md | 3 +++ examples/pages/changelog.vue | 15 +++++++------- examples/pages/component.vue | 5 +++++ packages/slider/src/main.vue | 2 +- 12 files changed, 81 insertions(+), 33 deletions(-) diff --git a/examples/app.vue b/examples/app.vue index 826e9479..d8cff24f 100644 --- a/examples/app.vue +++ b/examples/app.vue @@ -25,8 +25,12 @@ } .hljs { - padding: 20px 25px; + line-height: 1.8; + font-family: Menlo, Monaco, Consolas, Courier, monospace; + font-size: 12px; + padding: 18px 24px; background-color: #f9fafc; + border: solid 1px #eaeefb; margin-bottom: 25px; border-radius: 2px; } diff --git a/examples/components/demo-block.vue b/examples/components/demo-block.vue index 553da863..11347e08 100644 --- a/examples/components/demo-block.vue +++ b/examples/components/demo-block.vue @@ -6,8 +6,12 @@ @mouseleave="hovering = false">
- - {{ controlText }} + + + + + {{ controlText }} +
@@ -58,8 +62,11 @@ color: #5e6d82; background-color: #e6effb; margin: 0 4px; - padding: 4px 8px; + transform: translateY(-2px); + display: inline-block; + padding: 1px 5px; font-size: 12px; + border-radius: 3px; } } @@ -72,11 +79,7 @@ } code.hljs { - font-size: 12px; - padding: 18px 24px; margin: 0; - line-height: 1.8; - background-color: #f9fafc; border: none; max-height: none; border-radius: 0; @@ -99,21 +102,36 @@ color: #d3dce6; cursor: pointer; transition: .2s; + position: relative; i { font-size: 12px; line-height: 36px; + transition: .3s; + &.hovering { + transform: translateX(-40px); + } } span { + position: absolute; + transform: translateX(-30px); font-size: 14px; line-height: 36px; + transition: .3s; + display: inline-block; } &:hover { color: #20a0ff; background-color: #f9fafc; } + + & .text-slide-enter, + & .text-slide-leave-active { + opacity: 0; + transform: translateX(10px); + } } } diff --git a/examples/components/footer-nav.vue b/examples/components/footer-nav.vue index 6e8905ba..1ef30751 100644 --- a/examples/components/footer-nav.vue +++ b/examples/components/footer-nav.vue @@ -41,10 +41,10 @@ transition: .3s; &:hover { - color: #5e6d82; + color: #20a0ff; & i { - color: #5e6d82; + color: #20a0ff; } } } diff --git a/examples/components/footer.vue b/examples/components/footer.vue index e4df4161..00338a77 100644 --- a/examples/components/footer.vue +++ b/examples/components/footer.vue @@ -3,7 +3,7 @@