mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
style: add & update button hover stylings
This commit is contained in:
@@ -85,6 +85,13 @@ const { data } = await getEntry('i18n', lang ?? 'en');
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: var(--sl-text-sm);
|
font-size: var(--sl-text-sm);
|
||||||
background: var(--sl-color-text-accent);
|
background: var(--sl-color-text-accent);
|
||||||
|
transition: var(--button-transition);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
top: unset;
|
||||||
|
transform: var(--button-transform);
|
||||||
|
transition: var(--button-transition);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,10 @@ import SubscriptionForm from '../../components/SubscriptionForm.astro';
|
|||||||
---
|
---
|
||||||
|
|
||||||
<div class="article-footer">
|
<div class="article-footer">
|
||||||
<a href="https://github.com/sponsors/tomalaforge" alt="Sponsor link">
|
<a
|
||||||
|
class="action"
|
||||||
|
href="https://github.com/sponsors/tomalaforge"
|
||||||
|
alt="Sponsor link">
|
||||||
<MyIcon name="fillHeart" size="1.2rem" color="white" />
|
<MyIcon name="fillHeart" size="1.2rem" color="white" />
|
||||||
Sponsor the Project
|
Sponsor the Project
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
--color-btn: var(--sl-color-white);
|
--color-btn: var(--sl-color-white);
|
||||||
--color-chip: rgb(35, 38, 47);
|
--color-chip: rgb(35, 38, 47);
|
||||||
--color-chip-border: rgba(240, 246, 252, 0.1);
|
--color-chip-border: rgba(240, 246, 252, 0.1);
|
||||||
|
|
||||||
|
--button-transform: translateY(-1px);
|
||||||
|
--button-transition: all 100ms ease-in-out 30ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[data-theme='light'],
|
:root[data-theme='light'],
|
||||||
@@ -50,6 +53,18 @@
|
|||||||
margin: 0px 2px;
|
margin: 0px 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.action,
|
||||||
|
.article-footer > a,
|
||||||
|
.action-footer > a.action-button {
|
||||||
|
transition: var(--button-transition);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
opacity: 0.9;
|
||||||
|
transform: var(--button-transform);
|
||||||
|
transition: var(--button-transition);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.article-footer {
|
.article-footer {
|
||||||
margin-top: 3rem !important;
|
margin-top: 3rem !important;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user