<div class="text-link text-link--dark_grey">
<div class="text-link__section">
<div class="text-link__text">VISIT SHOP</div>
<div class="text-link__copy">
<a href="/">MENS</a>
<div class="text-link__seperator"></div>
<a href="/">WOMENS</a>
<div class="text-link__seperator"></div>
<a href="/">YOUTH</a>
<div class="text-link__seperator"></div>
<a href="/">ELIONS</a>
<div class="text-link__seperator"></div>
<a href="/">PARA</a>
<div class="text-link__seperator"></div>
</div>
</div>
</div>
No notes defined.
{
"text": "VISIT SHOP",
"modifier": "dark_grey",
"textlink": [
{
"href": "/",
"copy": "MENS"
},
{
"href": "/",
"copy": "WOMENS"
},
{
"href": "/",
"copy": "YOUTH"
},
{
"href": "/",
"copy": "ELIONS"
},
{
"href": "/",
"copy": "PARA"
}
]
}
.text-link {
&--blue,
&--light_grey,
&--red,
&--dark_grey,
&--white {
@include text-s--narrow;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 6.3rem;
}
&__section {
font-family: var(--brand-text--font-family);
text-align: center;
display: flex;
justify-content: center;
flex-direction: column;
padding: 1rem 0;
}
/* stylelint-disable no-descending-specificity */
&--blue {
background-color: $dark-blue;
.text-link__copy {
& > a {
color: $white;
&:focus {
border: 1.5px solid $white;
}
}
}
.text-link__seperator {
border-right: 1px solid $white;
}
.text-link__text {
color: $white;
}
}
&--light_grey {
background-color: $grey-light;
.text-link__copy {
& > a {
color: $color-interface-light;
&:focus {
border: 1.5px solid $blue;
}
}
}
.text-link__seperator {
border-right: 1px solid $blue;
}
.text-link__text {
color: $blue;
}
}
&--red {
background: $red;
.text-link__copy {
& > a {
color: $white;
&:focus {
border: 1.5px solid $white;
}
}
}
.text-link__seperator {
border-right: 1px solid $white;
}
.text-link__text {
color: $white;
}
}
&--dark_grey {
background-color: $color-interface-light;
.text-link__copy {
& > a {
color: $white;
&:focus {
border: 1.5px solid $white;
}
}
}
.text-link__seperator {
border-right: 1px solid $white;
}
.text-link__text {
color: $white;
}
}
&--white {
background-color: $white;
.text-link__copy {
& > a {
color: $color-interface-light;
&:focus {
border: 1.5px solid $blue;
}
}
}
.text-link__seperator {
border-right: 1px solid $blue;
}
.text-link__text {
color: $blue;
}
}
.text-link__copy {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
row-gap: 0.5rem;
*:last-child {
display: none;
}
}
.text-link__copy > a,
.text-link__text {
display: flex;
justify-content: space-around;
align-items: center;
font-weight: normal;
font-size: 1.6rem;
line-height: 2.4rem;
padding: 0 1.2rem;
text-decoration: none;
text-transform: uppercase;
transform: scale(1);
border: 1.5px solid transparent;
}
.text-link__copy > a {
&:focus {
outline: 0;
border-radius: 2px;
box-sizing: border-box;
display: inline-block;
}
&:hover {
text-decoration: underline;
font-weight: 700;
}
}
&__seperator {
opacity: 0.25;
width: 0.1rem;
height: 3.1rem;
}
@media screen and (min-width: $mq-medium) {
width: 100%;
max-height: 9.5rem;
&__section {
flex-direction: row;
padding: 0;
}
.text-link__copy > a {
margin: 0 1rem;
padding: 0 1rem;
}
}
}
<div class="text-link text-link--{{modifier}}">
<div class="text-link__section">
<div class="text-link__text">{{text}}</div>
<div class="text-link__copy">
{{#each textlink}}
<a href="{{href}}">{{copy}}</a>
<div class="text-link__seperator"></div>
{{/each}}
</div>
</div>
</div>