From c9433dcce539a7c50cf74bbdd4b7a41dca85878b Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Wed, 16 Nov 2016 15:26:51 +0800 Subject: [PATCH] optimize Timeline style --- src/styles/components/timeline.less | 16 ++++++++-------- test/routers/cascader.vue | 97 ++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------- 2 files changed, 56 insertions(+), 57 deletions(-) diff --git a/src/styles/components/timeline.less b/src/styles/components/timeline.less index a019683..8804ab1 100644 --- a/src/styles/components/timeline.less +++ b/src/styles/components/timeline.less @@ -14,9 +14,9 @@ &-tail { height: 100%; - border-left: 2px solid @timeline-color; + border-left: 1px solid @timeline-color; position: absolute; - left: 5px; + left: 6px; top: 0; } @@ -25,11 +25,11 @@ } &-head { - width: 12px; - height: 12px; + width: 13px; + height: 13px; background-color: #fff; - border-radius: 100px; - border: 2px solid transparent; + border-radius: 50%; + border: 1px solid transparent; position: absolute; &-blue { @@ -57,7 +57,7 @@ border-radius: 0; font-size: @font-size-base; position: absolute; - left: -14px; + left: -13px; .transform(translateY(-50%)); } @@ -78,7 +78,7 @@ &&-pending &-item:nth-last-of-type(2) { .@{timeline-prefix-cls}-item-tail { - border-left: 2px dotted @timeline-color; + border-left: 1px dotted @timeline-color; } .@{timeline-prefix-cls}-item-content { min-height: 48px; diff --git a/test/routers/cascader.vue b/test/routers/cascader.vue index e53aa79..c2c3bd5 100644 --- a/test/routers/cascader.vue +++ b/test/routers/cascader.vue @@ -1,63 +1,62 @@ \ No newline at end of file + -- libgit2 0.21.4