Skip to content

Commit bdd2492

Browse files
committed
Add support for footer in the Hero component
Can be added via the collection's description as HTML.
1 parent 6c98fd0 commit bdd2492

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/astro/styles/components/_hero.scss

+26
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,32 @@
4646
}
4747
}
4848

49+
footer {
50+
// Override generic `footer` styles here.
51+
display: block;
52+
padding-block: var(--spacing-8) 0;
53+
color: var(--color-text-lighter);
54+
55+
// Make the text smaller and align it to the right.
56+
font-size: var(--font-sm);
57+
58+
> a {
59+
// Remove underline from links.
60+
--link_color-underline: transparent;
61+
// Ensure that the links are displayed as inline blocks.
62+
display: inline-block;
63+
64+
transition: color var(--animation-duration-short) ease;
65+
66+
@media (hover: hover) {
67+
// Only apply hover styles on devices that support hover.
68+
&:is(:hover, :focus) {
69+
color: var(--color-text);
70+
}
71+
}
72+
}
73+
}
74+
4975
// Adjust the layout based on user font size choice.
5076
@media (max-width: 40rem) {
5177
// If the viewport isn't wide enough, switch to a column layout.

0 commit comments

Comments
 (0)