<a class="sfgov-topic-card" href="https://sf.gov">
<h5 class="title">Topic card title</h5>
<p class="description">
Topic card description describes this topic card. Use a descriptive description.
</p>
</a>
<a class="sfgov-topic-card" href="{{ url }}">
<h5 class="title">{{ title }}</h5>
<p class="description">
{{ description }}
</p>
</a>
{
"url": "https://sf.gov",
"title": "Topic card title",
"description": "Topic card description describes this topic card. Use a descriptive description."
}
.sfgov-topic-card {
@include rubik;
background: $grey-1;
border: 0;
border-radius: $radius;
color: $slate;
display: block;
text-decoration: none;
padding: $rhythm * 2;
@media screen and (min-width: $mq-narrow) {
padding: $rhythm * 4;
}
.title {
@include h3;
color: $bright-blue;
margin: 0 0 $rhythm 0;
}
.description {
@include body-short;
color: $slate;
margin: 0;
opacity: 0.6;
}
&:hover {
background: $grey-2;
.description {
opacity: 1;
}
}
}
There are no notes for this item.