aboutsummaryrefslogtreecommitdiffstats
path: root/mascara
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-08 00:17:33 +0800
committerDan <danjm.com@gmail.com>2018-03-08 00:17:33 +0800
commitb8dec6827127ebd5a1fba19a389a361ebc3a9a4d (patch)
treee8e19caa81f634c243b9d8262c8853407d19a66a /mascara
parent5ebdb215ae37d62bd1757c17b58ce08fb833ff8c (diff)
downloadtangerine-wallet-browser-b8dec6827127ebd5a1fba19a389a361ebc3a9a4d.tar
tangerine-wallet-browser-b8dec6827127ebd5a1fba19a389a361ebc3a9a4d.tar.gz
tangerine-wallet-browser-b8dec6827127ebd5a1fba19a389a361ebc3a9a4d.tar.bz2
tangerine-wallet-browser-b8dec6827127ebd5a1fba19a389a361ebc3a9a4d.tar.lz
tangerine-wallet-browser-b8dec6827127ebd5a1fba19a389a361ebc3a9a4d.tar.xz
tangerine-wallet-browser-b8dec6827127ebd5a1fba19a389a361ebc3a9a4d.tar.zst
tangerine-wallet-browser-b8dec6827127ebd5a1fba19a389a361ebc3a9a4d.zip
Make new-ui create password screen responsive.
Diffstat (limited to 'mascara')
-rw-r--r--mascara/src/app/first-time/create-password-screen.js2
-rw-r--r--mascara/src/app/first-time/index.css56
2 files changed, 57 insertions, 1 deletions
diff --git a/mascara/src/app/first-time/create-password-screen.js b/mascara/src/app/first-time/create-password-screen.js
index 450d6a479..ff56542d7 100644
--- a/mascara/src/app/first-time/create-password-screen.js
+++ b/mascara/src/app/first-time/create-password-screen.js
@@ -60,7 +60,7 @@ class CreatePasswordScreen extends Component {
: (
<div>
<div className="first-view-main">
- <div className="mascara-info">
+ <div className="mascara-info first-view-phone-invisible">
<Mascot
animationEventEmitter={this.animationEventEmitter}
width="225"
diff --git a/mascara/src/app/first-time/index.css b/mascara/src/app/first-time/index.css
index f59eb4ce1..a1e1a8200 100644
--- a/mascara/src/app/first-time/index.css
+++ b/mascara/src/app/first-time/index.css
@@ -21,6 +21,24 @@
justify-content: space-between;
}
+@media screen and (min-width: 576px) {
+ .first-view-main {
+ width: 85vw;
+ }
+}
+
+@media screen and (min-width: 769px) {
+ .first-view-main {
+ width: 80vw;
+ }
+}
+
+@media screen and (min-width: 1281px) {
+ .first-view-main {
+ width: 62vw;
+ }
+}
+
.mascara-info {
display: flex;
flex-flow: column;
@@ -81,6 +99,44 @@
width: initial !important;
}
+ .alpha-warning {
+ line-height: 1em;
+ padding: 8px 12px;
+ }
+
+ .first-view-main {
+ height: 100%;
+ flex-direction: column;
+ align-items: center;
+ justify-content: space-evenly;
+ margin-top: 12px;
+ }
+
+ .first-view-main .create-password {
+ margin-top: 0px;
+ }
+
+ .mascara-info {
+ margin-top: 0px;
+ width: 100%;
+ align-items: center;
+ }
+
+ .mascara-info .info {
+ text-align: center;
+ font-size: 16px;
+ margin: 0 10px;
+ padding-left: 0px;
+ }
+
+ .mascara-info :first-child {
+ align-self: center;
+ }
+
+ .first-view-phone-invisible {
+ display: none;
+ }
+
.first-time-flow__input {
width: initial !important;
font-size: 14px !important;