Add hover on Newsletter module links

This commit is contained in:
2021-10-18 23:57:31 +02:00
parent 1d6a3b9a93
commit 1aaa12f435
3 changed files with 19 additions and 3 deletions

View File

@@ -33,7 +33,7 @@
<div class="newsletter-form__bottom">
{#if past}
<a href="/subscribe" class="past-issues">
<svg width="20" height="16" viewBox="0 0 20 16" fill="#333" xmlns="http://www.w3.org/2000/svg" aria-label="Newsletter icon">
<svg width="20" height="16" viewBox="0 0 20 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" aria-label="Newsletter icon">
<path fill-rule="evenodd" clip-rule="evenodd" d="M18 2.346H2a.5.5 0 0 0-.5.5v11.102a.5.5 0 0 0 .5.5h16a.5.5 0 0 0 .5-.5V2.846a.5.5 0 0 0-.5-.5ZM2 .846a2 2 0 0 0-2 2v11.102a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2.846a2 2 0 0 0-2-2H2Zm13.75 4.25h-2v3h2v-3Zm-2-1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2ZM3.5 6.5a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1h-6Zm.25 3a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5Zm1.25 2a.5.5 0 0 0 0 1h6a.5.5 0 1 0 0-1H5Z" />
</svg>
<span>See past issues</span>

View File

@@ -53,7 +53,7 @@
}
// States
&.is-focused {
&.is-focused, &:hover {
box-shadow: inset 0 0 0 4px $color-secondary;
}
}
@@ -78,6 +78,9 @@
text-decoration: none;
color: $color-text;
&, span {
transition: color 0.2s, border-color 0.2s;
}
span {
display: block;
padding-bottom: 2px;

View File

@@ -33,9 +33,22 @@
margin-bottom: 40px;
}
}
.past-issues {
&:hover {
&, span {
color: $color-secondary;
}
span {
border-color: $color-secondary;
}
}
}
}
// Variants
/*
** Variants
*/
// Default color
&--default {
background: $color-tertiary 50% 0 / cover url(#{$dir-img}/newsletter-beige.jpg) no-repeat;