<div class="index-ctas">
<ul>
<li>
<a
href="/service-repair-<%=TXT_SEF_URL_VEH_TYPES%>dealership--service"
title="Service in <%=TXT_SEO_LOCATION%>"
>
<span class="text-wrapper">
<span class="first-line">Service</span>
<span class="second-line">Request an Appointment</span>
</span>
</a>
</li>
<li>
<a
href="/--xpss#/categories/Parts"
title="Apparel & Accessories in <%=TXT_SEO_LOCATION%>"
>
<span class="text-wrapper">
<span class="first-line">Pro Shop</span>
<span class="second-line">Shop Gear & Accessories</span>
</span>
</a>
</li>
<li>
<a
href="/parts-<%=TXT_SEF_URL_VEH_TYPES%>dealership--parts"
title="Parts in <%=TXT_SEO_LOCATION%>"
>
<span class="text-wrapper">
<span class="first-line">Parts</span>
<span class="second-line">Request OEM Parts</span>
</span>
</a>
</li>
</ul>
</div>
@index-primary: #FF0003;
.index-ctas {
> ul {
.ul-zero-out;
@media (min-width: @screen-sm-min) {
.display-flex();
.flex-align-items(center);
.flex-justify-content(space-between);
}
> li {
.cta-bg-image(bg-cta, jpg, 3);
@media (min-width: @screen-sm-min) {
width: 33.334%;
}
& + li {
a {
@media (max-width: @screen-xs-max) {
border-top: none;
}
@media (min-width: @screen-sm-min) {
border-left: none;
}
}
}
> a {
display: block;
background-color: @black;
position: relative;
border: 2px solid @white;
&:before {
.transition(0.3s ease-in-out opacity);
.opacity(0.22);
filter: grayscale(100%);
}
.text-wrapper {
.display-flex();
.flex-direction(column);
.flex-align-items(center);
.flex-justify-content(center);
height: 186px;
position: relative;
z-index: 1;
@media (min-width: @screen-sm-min) {
height: 286px;
}
@media (min-width: @screen-lg-min) {
height: 559px;
}
> span {
.fix-hover;
.transition(0.3s ease-in-out color);
line-height: 1;
text-transform: uppercase;
}
}
.first-line {
font-weight: 800;
font-size: 28px;
color: @white;
@media (min-width: @screen-lg-min) {
font-size: 55px;
}
}
.second-line {
font-weight: 700;
font-size: 12px;
letter-spacing: 0.3em;
color: @index-primary;
margin-top: 15px;
@media (min-width: @screen-sm-min) {
font-size: 10px;
margin-top: 17px;
}
@media (min-width: @screen-lg-min) {
font-size: 14px;
margin-top: 37px;
}
@media (min-width: @screen-xl-min) {
font-size: 18px;
}
}
&:hover,
&:active,
&:focus {
&:before {
.opacity(0.1);
}
.first-line {
color: @index-primary;
}
.second-line {
color: @white;
}
}
}
}
}
}
.cta-bg-image(@cta-bg-name, @cta-bg-filetype, @n, @i: 1) when (@i =< @n) {
&:nth-child(@{i}) {
> a {
&:before {
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-image: url("@{img-path}@{cta-bg-name}@{i}.@{cta-bg-filetype}");
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
}
}
.cta-bg-image(@cta-bg-name, @cta-bg-filetype, @n, (@i + 1));
}
.fix-hover {
-webkit-backface-visibility: hidden;
-ms-backface-visibility: hidden;
backface-visibility: hidden;
transform: translate3d(0, 0, 0);
transform-style: preserve-3d;
_::-webkit-:not(:root:root),
&:not(*:root) {
-ms-transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
transform: translate(0, 0, 0);
-ms-transform: translate2d(0, 0, 0) ~"\9";
-webkit-transform: translate2d(0, 0, 0) ~"\9";
transform: translate2d(0, 0, 0) ~"\9";
}
}