mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
style: update button hover effect
This commit is contained in:
@@ -85,10 +85,12 @@ const { data } = await getEntry('i18n', lang ?? 'en');
|
||||
text-decoration: none;
|
||||
font-size: var(--sl-text-sm);
|
||||
background: var(--sl-color-text-accent);
|
||||
transition: var(--button-transition);
|
||||
|
||||
&:hover {
|
||||
top: unset;
|
||||
opacity: unset;
|
||||
opacity: var(--button-hover-opacity);
|
||||
transition: var(--button-transition);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
--color-btn: var(--sl-color-white);
|
||||
--color-chip: rgb(35, 38, 47);
|
||||
--color-chip-border: rgba(240, 246, 252, 0.1);
|
||||
|
||||
--button-transition: opacity 100ms ease-in-out;
|
||||
--button-hover-opacity: 0.85;
|
||||
}
|
||||
|
||||
:root[data-theme='light'],
|
||||
@@ -50,6 +53,21 @@
|
||||
margin: 0px 2px;
|
||||
}
|
||||
|
||||
a.action,
|
||||
.article-footer > a,
|
||||
.action-footer > a.action-button {
|
||||
transition: var(--button-transition);
|
||||
|
||||
&:hover {
|
||||
opacity: var(--button-hover-opacity);
|
||||
transition: var(--button-transition);
|
||||
|
||||
&:not(.primary):not(.button-sponsor) {
|
||||
opacity: 0.66;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.article-footer {
|
||||
margin-top: 3rem !important;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user