In this example you have a .title
element. And in it I am putting first-child
with margin-top:20px;
.
When compiling and saving is not working. Do not apply the top margin on the first element of that type.
LESS
What happens?
.linha-infantil{
background-color: #44A5D7;
border-radius: 10px;
padding: 10px;
box-sizing: border-box;
.faixa-amarela{
line-height: 40px;
color: #000;
width: 100%;
background-color: #FFF;
text-align: center;
border-radius: 10px;
font-size: 20px;
}
.title{
font-size: 46px;
color: #FFF;
text-align: center;
font-family: "Candara";
&:first-child{
margin-top: 20px;
}
}
.owl-carousel{
.item{
padding: 30px;
}
}
}
HTML
<div class="linha-infantil">
<div class="faixa-amarela">
Linha Infantil
</div>
<div class="title">DIA</div>
<div class="owl-carousel">
<div class="item">{{ HTML::image('img/marcas/') }} </div>
<div class="item">{{ HTML::image('img/marcas/') }} </div>
<div class="item">{{ HTML::image('img/marcas/') }}</div>
<div class="item">{{ HTML::image('img/marcas/') }} </div>
</div>
<div class="title">EQUATE</div>
<div class="owl-carousel">
<div class="item">{{ HTML::image('img/marcas/') }} </div>
<div class="item">{{ HTML::image('img/marcas/') }} </div>
</div>
</div>