From 631e7e3c47cf402759a9208f338220405d3cb570 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 25 Dec 2018 20:53:36 +0800 Subject: [PATCH] [improvement] Loading: optimize circular icon (#1154) --- packages/button/index.wxml | 2 +- packages/loading/index.less | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/button/index.wxml b/packages/button/index.wxml index 63817067..68f22736 100644 --- a/packages/button/index.wxml +++ b/packages/button/index.wxml @@ -20,8 +20,8 @@ > diff --git a/packages/loading/index.less b/packages/loading/index.less index ead57aec..83ce7c43 100644 --- a/packages/loading/index.less +++ b/packages/loading/index.less @@ -2,7 +2,6 @@ .van-loading { z-index: 0; - font-size: 0; line-height: 0; position: relative; display: inline-block; @@ -24,8 +23,8 @@ &--circular { border: 1px solid; border-radius: 100%; - border-color: currentColor; - border-top-color: transparent; + border-color: transparent; + border-top-color: currentColor } } @@ -48,7 +47,6 @@ } } - .generate(@n, @i: 1) when (@i =< @n) { .van-loading__dot:nth-of-type(@{i}) { opacity: 1 - (0.75 / 12) * (@i - 1);