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
parent
commit
77fb024928
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      app/components/Onboarding/Login/Login.js
  2. 51
      app/components/Onboarding/Login/Login.scss

20
app/components/Onboarding/Login/Login.js

@ -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>

51
app/components/Onboarding/Login/Login.scss

@ -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;
}
}
}
}

Loading…
Cancel
Save