<div class="optional-title white-font ">
<h2 class="optional-title__title">Grassroots Inititives</h2>
<a href="#" class="optional-title__view-button">view all</a>
</div>
No notes defined.
{
"additional-class1": "white-font",
"additional-class2": "",
"title": "Grassroots Inititives"
}
.optional-title {
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
max-width: calc(100% - 3.2rem);
margin: 0 auto 2rem auto;
&__title {
font-family: var(--brand-heading--font-family);
font-style: var(--brand-heading-3--font-style);
font-weight: var(--brand-heading-3--font-weight);
color: $blue;
font-size: 2.8rem;
line-height: 4.2rem;
padding-bottom: 1.3rem;
text-transform: capitalize;
&::after,
&::before {
content: '';
height: 0.4rem;
width: 100%;
display: block;
background-color: rgba(187, 193, 206, 0.5);
position: absolute;
bottom: 0;
}
&::before {
background-color: $bold-red;
width: 23.4rem;
z-index: 1;
}
}
&__view-button {
font-family: var(--brand-text--font-family);
font-size: 1.4rem;
font-weight: 500;
line-height: 4.4rem;
color: $color-interface-light;
text-transform: uppercase;
text-decoration: none;
&::after {
content: '';
width: 2.2rem;
height: 2.2rem;
display: inline-block;
background: url('./assets/images/view-all-arrow.svg') no-repeat center;
position: relative;
top: 0.6rem;
left: 0.7rem;
}
&:hover {
color: $blue;
}
}
&.white-font {
.optional-title__title {
color: $white;
}
}
&.white-highlighter {
.optional-title__title {
&::before {
background-color: $white;
}
}
}
@media screen and (min-width: $mq-medium) {
max-width: 114.4rem;
margin: 0 auto 5.2rem auto;
&__title {
font-size: 4.8rem;
}
}
}
.common-template__row-container {
@media screen and (max-width: $mq-medium) {
.optional-title {
max-width: 100%;
}
}
}
.common-template__news-container {
@media screen and (max-width: $mq-medium) {
.optional-title {
max-width: 100%;
}
}
}
<div class="optional-title {{additional-class1}} {{additional-class2}}">
<h2 class="optional-title__title">{{title}}</h2>
<a href="#" class="optional-title__view-button">view all</a>
</div>