mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #3332 from danjm/MM-onboarding-flow-style-improvements
[NewUI] Onboarding flow style improvements
This commit is contained in:
commit
6c472b73eb
@ -59,7 +59,6 @@ class CreatePasswordScreen extends Component {
|
|||||||
? <LoadingScreen loadingMessage="Creating your new account" />
|
? <LoadingScreen loadingMessage="Creating your new account" />
|
||||||
: (
|
: (
|
||||||
<div>
|
<div>
|
||||||
<h2 className="alpha-warning">Warning: This is Experimental software and is a Developer BETA</h2>
|
|
||||||
<div className="first-view-main">
|
<div className="first-view-main">
|
||||||
<div className="mascara-info">
|
<div className="mascara-info">
|
||||||
<Mascot
|
<Mascot
|
||||||
|
@ -4,13 +4,15 @@
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alpha-warning {
|
.alpha-warning {
|
||||||
background: #f7861c;
|
background: #f7861c;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
padding-left: 2em;
|
padding-left: 10vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.first-view-main {
|
.first-view-main {
|
||||||
@ -23,7 +25,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
margin-top: 70px;
|
margin-top: 70px;
|
||||||
margin-right: 10vw;
|
|
||||||
width: 35vw;
|
width: 35vw;
|
||||||
max-width: 550px;
|
max-width: 550px;
|
||||||
}
|
}
|
||||||
@ -48,6 +49,10 @@
|
|||||||
max-width: 35rem;
|
max-width: 35rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.create-password {
|
||||||
|
margin: 67px 0 50px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.import-account {
|
.import-account {
|
||||||
max-width: initial;
|
max-width: initial;
|
||||||
}
|
}
|
||||||
|
@ -239,6 +239,9 @@ App.prototype.renderAppBar = function () {
|
|||||||
showNetworkDropdown,
|
showNetworkDropdown,
|
||||||
hideNetworkDropdown,
|
hideNetworkDropdown,
|
||||||
currentView,
|
currentView,
|
||||||
|
isInitialized,
|
||||||
|
betaUI,
|
||||||
|
isPopup,
|
||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
if (window.METAMASK_UI_TYPE === 'notification') {
|
if (window.METAMASK_UI_TYPE === 'notification') {
|
||||||
@ -285,6 +288,8 @@ App.prototype.renderAppBar = function () {
|
|||||||
// metamask name
|
// metamask name
|
||||||
h('h1', 'MetaMask'),
|
h('h1', 'MetaMask'),
|
||||||
|
|
||||||
|
h('div.beta-label', 'BETA'),
|
||||||
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
h('div.header__right-actions', [
|
h('div.header__right-actions', [
|
||||||
@ -317,6 +322,9 @@ App.prototype.renderAppBar = function () {
|
|||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
!isInitialized && !isPopup && betaUI && h('h2.alpha-warning',
|
||||||
|
'Please be aware that this version is still under development'),
|
||||||
|
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -76,6 +76,21 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.beta-label {
|
||||||
|
font-family: Roboto;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
padding-left: 9px;
|
||||||
|
color: $buttercup;
|
||||||
|
align-self: flex-start;
|
||||||
|
margin-top: 10px;
|
||||||
|
|
||||||
|
@media screen and (max-width: 575px) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
h2.page-subtitle {
|
h2.page-subtitle {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: #aeaeae;
|
color: #aeaeae;
|
||||||
|
@ -290,3 +290,27 @@ $wallet-view-bg: $alabaster;
|
|||||||
.token-balance__amount {
|
.token-balance__amount {
|
||||||
padding-right: 6px;
|
padding-right: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// first time
|
||||||
|
.first-view-main {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
@media screen and (max-width: 575px) {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 576px) {
|
||||||
|
width: 85vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 769px) {
|
||||||
|
width: 80vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1281px) {
|
||||||
|
width: 62vw;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user