From 10696e3c32795a7afefe81b8a8f01011e289956a Mon Sep 17 00:00:00 2001 From: xjzhang <> Date: Wed, 8 Sep 2021 17:17:55 +0800 Subject: [PATCH] fix: modal opacity --- src/app/modules/header/header.component.css | 41 ++++++++++++++++++++ src/app/modules/header/header.component.html | 20 +++++----- src/app/modules/header/header.component.ts | 1 - src/app/wallet/wallet.component.html | 2 +- 4 files changed, 52 insertions(+), 12 deletions(-) diff --git a/src/app/modules/header/header.component.css b/src/app/modules/header/header.component.css index 30c7bb11..3c197dde 100644 --- a/src/app/modules/header/header.component.css +++ b/src/app/modules/header/header.component.css @@ -21,6 +21,7 @@ .modal-content { position: relative; top: 200px; + margin: 0 auto; height: 210px; background-color: #fff; @@ -30,6 +31,13 @@ flex-direction: column; } +.width-448 { + width: 448px; +} +.width-370 { + width: 370px; +} + .main-title, .ass-title { font-family: "PingFangSC-Regular", "PingFang SC"; } @@ -87,3 +95,36 @@ .popup-jump-modal-hidden { display: none; } + +@media (max-width: 767px) { + .modal-content { + padding: 26px 20px; + } + .main-title { + font-size: 18px; + line-height: 25px; + } + .ass-title { + font-size: 12px; + line-height: 17px; + margin-top: 12px; + } + .btn-wrapper { + display: flex; + flex-direction: column-reverse; + } + .cancel-btn, .jump-btn { + height: 34px; + padding: 9px 18px; + font-size: 12px; + font-weight: 400; + line-height: 17px; + } + .cancel-btn { + margin-right: 0; + margin-top: 12px; + } + .width-448, .width-370 { + width: 290px; + } +} diff --git a/src/app/modules/header/header.component.html b/src/app/modules/header/header.component.html index e2c4b9ed..435c40eb 100644 --- a/src/app/modules/header/header.component.html +++ b/src/app/modules/header/header.component.html @@ -76,16 +76,16 @@