I have a list of 2 items per line and I need each item to be one color. However, the item below must be different than the item above.
Here's the image of what I need:
I'm not able to make this color change in the items, it follows what I have developed:
In a rough way, I need the third image to be white rather than blue and the fourth blue and so on.
Follow the CSS code I've developed:
.lista_servicos{
margin-top: 100px;
li{
margin-bottom: 50px;
.box{
padding: 50px;
box-shadow: 15px 25.981px 60px 0px rgba(23, 20, 15, 0.2);
.imagem{
margin-bottom: 50px;
}
.nome_servico{
font-family: $fonte;
font-size: 28px;
font-weight: 600;
margin-bottom: 35px;
min-height: 40px;
img{
margin-top: -3px;
margin-right: 15px;
}
}
.descricao{
padding: 0px;
margin-bottom: 50px;
min-height: 190px;
*{
text-align: center;
}
}
}
&:nth-of-type(odd){
.box{
background: $primaria;
.imagem{
img{
filter: grayscale(100%) brightness(10);
}
}
.nome_servico{
color: $branco;
}
.descricao{
*{
color: $branco;
}
}
.botao{
@extend .transparente;
}
}
}
&:nth-of-type(even){
.box{
background: $branco;
.nome_servico{
color: $primaria;
}
.descricao{
*{
color: $primaria;
}
}
.botao{
@extend .transparente_azul_escuro;
}
}
}
}
}