Допустим ли такой формат ?
А именно "&_bank &-img ?
Или правильнее будет:
&__payment_bank &__payment-img {
background: url('../img/general/bank_creditCard.svg') no-repeat;
width: 18px;
height: 16px;
}
<a href="#" class="checkout__payment checkout__payment_bank">
<div class="checkout__payment-img"></div>
<span>PAY WITH <br>bank card</span>
</a>
<a href="#" class="checkout__payment checkout__payment_paypal">
<div class="checkout__payment-img"></div>
<span>PAY WITH <br>paypal</span>
</a>
.checkout {
background-color: rgba(255, 255, 255, 0.988);
box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.1);
padding: 4rem 1.5rem;
&__payment {
text-align: center;
width: 100px;
border: 1px solid #1e88e5;
border-radius: 3px;
padding: .6rem 0;
line-height: 1;
&_bank &-img {
background: url('../img/general/bank_creditCard.svg') no-repeat;
width: 18px;
height: 16px;
}
&_paypal &-img {
background: url('../img/general/bank_paypal.svg') no-repeat;
width: 18px;
height: 16px;
}
... и тд
}
}