From 979ae94f36e67276ef7f7b12fe7b944d59a1b836 Mon Sep 17 00:00:00 2001 From: Nino Date: Thu, 22 Dec 2016 13:28:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Dialog=E6=B6=88=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/dialog/index.wxss | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/dist/dialog/index.wxss b/dist/dialog/index.wxss index 79eec609..36f4393c 100644 --- a/dist/dialog/index.wxss +++ b/dist/dialog/index.wxss @@ -1,41 +1,26 @@ -.zui-dialog, .zui-dialog__mask { - position: absolute; + position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10; -} - -.zui-dialog__mask { background: rgba(0, 0, 0, 0.7); + display: none; } - -@keyframes slideUp { - 0% { - transform: translateY(100%); - opacity: 0; - } - 10% { - opacity: 1; - } - 100% { - transform: translateY(0); - opacity: 1; - } -} - .zui-dialog__container { - position: absolute; + position: fixed; bottom: 0; width: 750rpx; background: white; - transform: translateY(0); - opacity: 0; + transform: translateY(150%); transition: all 0.4s ease; - animation: slideUp 0.4s ease ; - animation-fill-mode: forwards; - animation-delay: 0.1s; z-index: 11; } +.zui-dialog--show .zui-dialog__container { + transform: translateY(0); +} +.zui-dialog--show .zui-dialog__mask { + display: block; +} +