fix mobile style

This commit is contained in:
Sean Yesmunt 2020-06-15 10:41:59 -04:00
parent c3cdc742ab
commit 4bbd831a16
2 changed files with 16 additions and 2 deletions

View file

@ -205,7 +205,7 @@ function WalletSendTip(props: Props) {
key={amount}
disabled={amount > balance}
button="alt"
className={classnames('button-toggle', {
className={classnames('button-toggle button-toggle--expandformobile', {
'button-toggle--active': tipAmount === amount,
'button-toggle--disabled': amount > balance,
})}
@ -215,7 +215,7 @@ function WalletSendTip(props: Props) {
))}
<Button
button="alt"
className={classnames('button-toggle', {
className={classnames('button-toggle button-toggle--expandformobile', {
'button-toggle--active': !DEFAULT_TIP_AMOUNTS.includes(tipAmount),
})}
label={__('Custom')}

View file

@ -120,6 +120,20 @@ svg + .button__label,
}
}
.button-toggle--expandformobile {
@media (max-width: $breakpoint-small) {
display: block;
width: 100%;
text-align: center;
border-radius: var(--border-radius);
border: 1px solid var(--color-border);
&:not(:first-of-type) {
margin-top: var(--spacing-s);
}
}
}
.button-toggle--active {
color: var(--color-primary);
background-color: var(--color-primary-alt);