Browse Source
Merge pull request #807 from mrfelton/fix/login-button-styles
fix(ui): improve login button style
renovate/lint-staged-8.x
JimmyMow
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
29 additions and
42 deletions
-
app/components/Onboarding/Login/Login.js
-
app/components/Onboarding/Login/Login.scss
|
|
@ -32,15 +32,17 @@ const Login = ({ |
|
|
|
|
|
|
|
<section className={styles.buttons}> |
|
|
|
<div> |
|
|
|
<span |
|
|
|
className={`${!unlockingWallet ? styles.active : undefined} ${styles.button}`} |
|
|
|
onClick={() => unlockWallet(password)} |
|
|
|
> |
|
|
|
{unlockingWallet ? ( |
|
|
|
<i className={styles.spinner} /> |
|
|
|
) : ( |
|
|
|
<FormattedMessage {...messages.unlock} /> |
|
|
|
)} |
|
|
|
<span className={styles.button}> |
|
|
|
<span |
|
|
|
className={`${!unlockingWallet ? styles.active : undefined} ${styles.button}`} |
|
|
|
onClick={() => unlockWallet(password)} |
|
|
|
> |
|
|
|
{unlockingWallet ? ( |
|
|
|
<i className={styles.spinner} /> |
|
|
|
) : ( |
|
|
|
<FormattedMessage {...messages.unlock} /> |
|
|
|
)} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
|
|
@ -43,42 +43,27 @@ |
|
|
|
|
|
|
|
div { |
|
|
|
color: var(--primaryText); |
|
|
|
|
|
|
|
&:nth-child(1) { |
|
|
|
text-align: center; |
|
|
|
margin-bottom: 40px; |
|
|
|
|
|
|
|
span { |
|
|
|
padding: 15px 35px; |
|
|
|
background: var(--lightningOrange); |
|
|
|
font-size: 14px; |
|
|
|
opacity: 0.5; |
|
|
|
transition: all 0.25s; |
|
|
|
border-radius: 5px; |
|
|
|
|
|
|
|
&.button { |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
|
|
|
|
&.active { |
|
|
|
opacity: 1; |
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
&:hover { |
|
|
|
opacity: 0.5; |
|
|
|
} |
|
|
|
} |
|
|
|
text-align: center; |
|
|
|
margin-bottom: 40px; |
|
|
|
|
|
|
|
.button { |
|
|
|
padding: 15px 35px; |
|
|
|
background: var(--lightningOrange); |
|
|
|
font-size: 14px; |
|
|
|
transition: all 0.25s; |
|
|
|
border-radius: 5px; |
|
|
|
|
|
|
|
&.button { |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
&:nth-child(2), |
|
|
|
&:nth-child(3) { |
|
|
|
font-size: 12px; |
|
|
|
cursor: pointer; |
|
|
|
margin: 10px 0; |
|
|
|
&.active { |
|
|
|
opacity: 1; |
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
&:hover { |
|
|
|
text-decoration: underline; |
|
|
|
&:hover { |
|
|
|
opacity: 0.5; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|