0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-10 22:22:45 -05:00

style(ui): update text link styling

update text link styling
This commit is contained in:
simeng-li 2022-11-10 16:28:56 +08:00
parent 55ca9e5a92
commit b2a3f2fbdf
No known key found for this signature in database
GPG key ID: 14EA7BB1541E8075
3 changed files with 11 additions and 7 deletions

View file

@ -9,11 +9,9 @@
color: var(--color-brand-default);
text-decoration: none;
font: var(--font-label-2);
border-radius: _.unit(1);
padding: _.unit(1) _.unit(0.5);
&:active {
background: var(--color-overlay-brand-pressed);
color: var(--color-brand-hover);
}
}
@ -27,7 +25,7 @@
:global(body.desktop) {
.link {
&.primary:hover {
background: var(--color-overlay-brand-hover);
color: var(--color-brand-hover);
}
&.primary:focus-visible {

View file

@ -23,11 +23,16 @@
}
}
.link {
margin-top: _.unit(3);
.message,
.link,
.switch {
width: auto;
align-self: start;
}
.switch {
margin-top: _.unit(3);
}
}
:global(body.mobile) {

View file

@ -59,6 +59,7 @@ const PasscodeValidation = ({ type, method, className, hasPasswordButton, target
</div>
) : (
<TextLink
className={styles.link}
text="description.resend_passcode"
onClick={() => {
clearErrorMessage();
@ -67,7 +68,7 @@ const PasscodeValidation = ({ type, method, className, hasPasswordButton, target
/>
)}
{type === UserFlow.signIn && hasPasswordButton && (
<PasswordSignInLink method={method} target={target} className={styles.link} />
<PasswordSignInLink method={method} target={target} className={styles.switch} />
)}
</form>
);