<a href="#" class="link-tertiary">Tertiary Link Style<span class="arrow"></span></a>
<a href="#" class="link-tertiary">{{text}}<span class="arrow"></span></a>
{
"text": "Tertiary Link Style",
"url": "https://iastate.edu"
}
.link-tertiary {
display: inline-block;
appearance: none;
margin: rem(10) 0;
cursor: pointer;
color: $iastate-maroon;
font-family: $typeface-sans-serif;
font-weight: 700;
font-size: rem(16);
line-height: (26 / 18);
text-decoration: underline;
text-decoration-color: $iastate-maroon;
position: relative;
transition: 0.2s text-decoration-color ease-in-out;
.arrow {
opacity: 0;
transition: 0.2s opacity ease-in-out;
bottom: rem(11);
top: initial;
right: initial;
margin-left: rem(11);
}
&:hover {
text-decoration-color: transparent;
color: $iastate-maroon;
.arrow {
opacity: 1;
}
}
}
This is a custom component (no class prefix in place as it does not conflict with bootstrap)
<span class="arrow"></span>
is required after the button textindex.scss
file as @import "../components/link-tertiary/link-tertiary";
link-set
, which allows for multiple instances of the links to be output