From a96d52ad7c3a1635d981ff096bbd391c67e8918e Mon Sep 17 00:00:00 2001 From: Broltes Date: Fri, 10 Jun 2016 08:09:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E8=BF=9B=E5=BA=A6=E6=9D=A1?= =?UTF-8?q?=E6=95=88=E6=9E=9C=E4=B8=8D=E5=8D=A0=E7=94=A8=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/touch-loader.less | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/touch-loader.less b/src/touch-loader.less index fdc6ce4..d0a04b8 100644 --- a/src/touch-loader.less +++ b/src/touch-loader.less @@ -35,22 +35,24 @@ } } .progress { - z-index: 1000; - position: absolute; - top: 0; - left: 0; - height: 2px; - width: 100%; - background-color: @progress-color; - - &.on{ - width: 99%; - animation: progressing 9s ease-out; - } + &:before{ + content: ""; + z-index: 1000; + position: absolute; + top: 0; + left: 0; + height: 2px; + width: 100%; + background-color: @progress-color; - &.ed{ - opacity: 0; - animation: progressed 1s; + .on&{ + width: 99%; + animation: progressing 9s ease-out; + } + .ed&{ + opacity: 0; + animation: progressed 1s; + } } }