Lukas W.
Well-known member
I'm not that well versed in less. Is there a way to compress the following into a loop? The counter goes from 1 to 30.
CSS:
.color-code-2 {
.memberHeader-main {
background: @xf-klUIUsernameColor2;
.pairs > dt,
.username--color-2,
.kl-ui-username-change-button-wrapper .button.button--link,
a {
color: white;
}
}
.block-tabHeader {
background: @xf-klUIUsernameColor2;
color: white;
}
.block-tabHeader .tabs-tab.is-active {
color: white;
border-color: white;
}
}
.color-code-3 {
.memberHeader-main {
background: @xf-klUIUsernameColor3;
.pairs > dt,
.username--color-3,
.kl-ui-username-change-button-wrapper .button.button--link,
a {
color: white;
}
}
.block-tabHeader {
background: @xf-klUIUsernameColor3;
color: white;
}
.block-tabHeader .tabs-tab.is-active {
color: white;
border-color: white;
}
}