Original source from https://utsa-asc.github.io/college-dls/college-dls/reference/card-tiles.html#highlight-card_content
This is a smaller level component and is not designed to be used stand alone. TODO: Create a separate preview template for this component to pop into a col-3 or col-4 width size.
To use a component of this type, please see the corresponding Content List components.
<div class="highlight-card blue-bg">
<div class="highlight-card-img">
<img src="../../college-dls/college/images/content-highland-card.png" alt="Card Image" />
</div>
<div class="highlight-card-content"><a class="highlight-card-link href=" #">Lorem ipsum dolor sit amet, consectetur</a></div>
</div>
/* components/02-components/01-card/03-content-card/content-card.scss */
/* BEGIN content-card.scss */
.highlight-card {
--notchSize: 3.8rem;
clip-path: polygon(100% 0,
100% calc(100% - var(--notchSize)),
calc(100% - var(--notchSize)) 100%,
0 100%,
0 0);
-webkit-clip-path: polygon(100% 0,
100% calc(100% - var(--notchSize)),
calc(100% - var(--notchSize)) 100%,
0 100%,
0 0);
height: 100%;
.highlight-card-img img {
width: 100%;
}
.highlight-card-content {
padding: 25px 22px 56px 22px;
border-top: 6px solid $orange;
a.highlight-card-link {
display: block;
font-size: 1.6rem;
line-height: 1.2;
font-weight: 600;
&:hover {
color: $white;
background-color: $blue;
}
}
}
&.blue-bg {
.highlight-card-content>a.highlight-card-link {
color: $white;
&:hover {
color: $orange-a11y;
background-color: $grey;
}
}
}
&.white-bg {
.highlight-card-content>a.highlight-card-link {
color: $blue;
&:hover {
color: $white;
}
}
}
.highlight-card-content a.highlight-card-link {
text-decoration: none;
}
}
@include media-breakpoint-down(lg) {
.highlight-card {
.highlight-card-content {
padding: 15px 15px 30px 15px;
}
}
}
/* END content-card.scss */
<div class="highlight-card blue-bg">
<div class="highlight-card-img">
<img src="{{ path content-card.image }}" alt="Card Image" />
</div>
<div class="highlight-card-content"><a class="highlight-card-link href="#">{{ content-card.heading }}</a></div>
</div>