0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

style(ui): update link button styling (#2269)

This commit is contained in:
simeng-li 2022-10-28 18:55:36 +08:00 committed by GitHub
parent 02ea86d844
commit 537b5cd577
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,12 @@
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);
}
}
&.secondary {
@ -21,10 +27,15 @@
:global(body.desktop) {
.link {
&.primary:hover {
text-decoration: underline;
background: var(--color-overlay-brand-hover);
}
&.secondary:hover {
&.primary:focus-visible {
outline: _.border(var(--color-overlay-brand-focused));
}
&.secondary:hover,
&.secondary:active {
color: var(--color-brand-default);
}
}